Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI script and Apache

Status
Not open for further replies.

shahall

Technical User
Aug 7, 2001
1
US
I am running a cgi script on Linux and what is happening is that when I look at the scrit through the browser, I see the script text itself instead of the executable. It is reading the cgi as text instead of cgi. I don't know anything about apache, but everyone keeps telling me it's an apache issue. Can someone help?
 
check your httpd.conf file. Most likely you did have a configuration problem.

First make sure you enabled cgi by uncommenting the part in httpd.conf that shows cgi handler and the cgi/pl extension.

You will also want to make sure the directory you are running the cgi scrpt from has the proper permissions and that the script itself has proper permissions (755).

Lastly, are you running it in a virualhost container?



Hope this helps!!!


Rninja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top