hi all
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:-
Code:
http://10.0.0.1/cgi-bin/my_first_cgi.cgi
4- then this message appeared:-
Code:
HTTP 500 - Internal server error
here is my CGI code:-
Quote:
#!/usr/bin/perl -wT
print "Content-type: text/html\n\n";
print "Hello, world!\n";
|
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..