HELP! CGI problem : HTTP 500 - Internal server error
when I tried to view my cgi test web site on the browser, it said: HTTP 500 - Internal server error
here is the story in more detail...>>
I have FreeBSD with IP of 10.0.0.1/8 and Apache2 installed on.
this is my 1st try to do some works on CGI.
here is what i did:-
1- i put my simple CGI script in /usr/local/apache/cgi-bin
2- then i run apache2
3- then i went to my workstation which is in the same LAN and i typed the following:-
here is my CGI code:-
NOTE: i didnt do any configuration to httpd.conf
this is my first CGI and I dont know whether if I have to configure httpd.conf or not, please tell me what should I do
waiting for answers..
have u set your script to have execute mod?
if not, set it:
chmod a+x my_first_cgi.cgi
besure your line seperator is unix type.
if not, change it with dos2unix.
try this: Content-Type:text/html;charset=iso-8859-1
and check your apache log files.
|All times are GMT -5. The time now is 04:44 PM.|