Results 1 to 2 of 2
I have cgi file helloworld.cgi in /usr/local/apache2/htdocs folder:
#!/usr/bin/perl
print "Content-type: text/html", "\n\n"; # MIME header.
print "Hello World";
I want to run this script on firefox with address: http://localhost/helloworld.cgi
...
- 06-30-2008 #1Just Joined!
- Join Date
- Jun 2008
- Posts
- 3
How to run CGI in localhost (Fedora Core 7)
I have cgi file helloworld.cgi in /usr/local/apache2/htdocs folder:
#!/usr/bin/perl
print "Content-type: text/html", "\n\n"; # MIME header.
print "Hello World";
I want to run this script on firefox with address: http://localhost/helloworld.cgi
But i didn't how to configure apache to run it. Please help me to solve this problem.
- 07-01-2008 #2
I don't know what's the problem?
1- default path of CGI
or
2-Apache not runnung
?
if the problem is related to Apache Running, try it :
1. /etc/rc.d/apache2 status
2. if result != "running" then :
/etc/rc.d/apache2 start
you'll see "done" result


Reply With Quote
