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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showing source instead of executing 1

Status
Not open for further replies.

Corwinsw

Programmer
Sep 28, 2005
117
BG
Noob question.
I have my first cgi script and when I run it the browser displays the source code of the script instead of executing it.
I added both:

Code:
ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"
AddHandler cgi-script .cgi .pl

My script is set to 755.
May be I should add some preferences to the proxy server?
Or should point the script some way. I am new to Apache and don't know if I should do something else except start it.
I would appreciate any clue.

Corwin
 
yup it looks like I haven't installed mod_cgi - httpd -l doesn't show it and it is not mentioned nowhere in the config file.

So i tried this:
Code:
LoadModule mod_cgi /usr/local/src/apache_1.3.26/src/modules/standard/mod_cgi.c
AddModule /usr/local/src/apache_1.3.26/src/modules/standard/mod_cgi.c
but nothing happened.
What is the exact syntax to add module in the config file?

Corwin
 
Not a typo.
I loaded after that mod_cgi.so.
Obviously I'll have to read about apache to continue.
10x for the help.

Corwin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top