Feb 25, 2014, 5:17 AM
I'm learning Perl . Currently I'm learning Perl CGI script,in this script i wrote one sample hello world program
How to Perl CGI script in apache web sever
I saved above script in /usr/local/apache2/cgi-bin/hello.pl
# hello.pl -- my first perl script!
print "Content-type: text/html\n\n";
print "Hello, world!\n";
For this I installed apache web server in my machine, I checked this web server by using http://localhost it works fine. Then i run my hello.pl program in my browser by using apache server
but above url showing error.
The requested URL /cgi-bin/hello.pl was not found on this server.
Apache/2.2.15 (CentOS) Server at localhost Port 80
why it showing this. Is there any thing wong in script or in apache? Did any one face this problem? Please let me know,try to resolve this problem
I also attached httpd.conf file
(This post was edited by rammohan on Feb 25, 2014, 9:12 PM)