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!

CGI can't write file outside of cgi-bin?

Status
Not open for further replies.

pcorchary

MIS
Feb 23, 2002
60
US
Subject sez it all ... why?

I'm new to Apache config (used Netscape and CERN).

I want all CGIs to write a log to another directory, and one CGI needs to create a text-file report in another directory.

I could have a periodic cron script that moves them, but why?

Thanks in advance.
 
Search your httpd.cong for the following and do what it says..

# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
#AddHandler cgi-script .cgi

Depending on your perl setup, you may also want to change it to

AddHandler cgi-script .cgi .pl

Hope this helps Wullie

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top