wicksy
03-20-2007, 01:28 PM
Hi all,
I am very new to cgi and perl and am struggling to debug a problem i'm having.
Basically i have been requested to update a website for a company that has previously been written by someone else that cannot be contacted.
What i thought i would do is download all the files from the current server and then upload them onto my university server where i can test and update the pages before putting them back onto the original server. But when i transferred them onto the new server and tried to run them i get a '500 internal server error'.
I have been through a lot of forums and i have checked that that #!/usr/bin/perl is correct and is on the first line which it is. I have also uploaded the cgi files as ascii and have set the file permission to 755.
What i don't understand is that it is exactly the same code that was the original server that worked fine.
I know that this is probably something really simple but cgi is still a bit over my head.
Also i have opened up the cgi files in notepad but they are unreadable. When i run this file i get an error saying "unrecognizeable character \x7F at content.cgi line 1. Would this be the problem??
Thankyou in advance to anyone who can provide me with some help.
cheers
wicksy
I am very new to cgi and perl and am struggling to debug a problem i'm having.
Basically i have been requested to update a website for a company that has previously been written by someone else that cannot be contacted.
What i thought i would do is download all the files from the current server and then upload them onto my university server where i can test and update the pages before putting them back onto the original server. But when i transferred them onto the new server and tried to run them i get a '500 internal server error'.
I have been through a lot of forums and i have checked that that #!/usr/bin/perl is correct and is on the first line which it is. I have also uploaded the cgi files as ascii and have set the file permission to 755.
What i don't understand is that it is exactly the same code that was the original server that worked fine.
I know that this is probably something really simple but cgi is still a bit over my head.
Also i have opened up the cgi files in notepad but they are unreadable. When i run this file i get an error saying "unrecognizeable character \x7F at content.cgi line 1. Would this be the problem??
Thankyou in advance to anyone who can provide me with some help.
cheers
wicksy