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

First time using Apache

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I just installed apache on my computer (win 98). i cant figure out how to just test cgi scripts on my page. any ideas?
 
You need to edit and configure your httpd.conf file for directories that you want to run cgi's from. Default it only setups up the directory such as /home/httpd/cgi-bin. If you need other directories to run cgi from you will need to add to what directories httpd will allow cgi's to run from. Such lines look like this:

<Directory /home/httpd/html/mail>
AllowOverride None
Options Includes ExecCGI
Order allow,deny
Allow from all
</Directory>

And you also need to make sure that this section is probably about the same as the follows.

# This may also be &quot;None&quot;, &quot;All&quot;, or any combination of &quot;Indexes&quot;,
# &quot;Includes&quot;, &quot;FollowSymLinks&quot;, &quot;ExecCGI&quot;, or &quot;MultiViews&quot;.
# Note that &quot;MultiViews&quot; must be named *explicitly* --- &quot;Options All&quot;
# doesn't give it to you.
Options FollowSymLinks Includes ExecCGI

Taking care of this and making sure you have permissions correct on running cgi's
(ie chmod 755 <filename.cgi) and other files that are written to by cgi's. (ie chmod 666 - which is your read/write access) also the directory permissions play a roll.

Hope this helps
Maxit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top