[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Apache & cgi Problem



Thanks for the replys to this question, I got it working, not quite
sure how. For some reason I changed the permissions on the files in
/cgi-bin to 777 and it started working, so then I changed them back 
to 755 which is what they were and it still works.
Strange I know, and without any error messages in
/var/log/httpd/error_log it really made it hard to troubleshoot.

I do wish I knew what was wrong but at least it works now.


>>>>> "rc" == Ray Curtis <ray ray clark net> writes:

>>>>> "gf" == Greg Fall <gmf dweezil dyn ml org> writes:
>>> > I have installed Apache-1.3.1 on two machines locally and one works
>>> > with cgi's and the other doesn't.
>>> > I am using the same conf files and cgi's on both machines.
>>> > 
>>> did you restart the httpd daemon?

rc> Yes

gf> And did you check the permissions on the script?

rc> Yes

rc> I can point a browser at the script directly and it runs fine, 
rc> but it doesn't work or display anything on the webpage using 
rc> the browser when I put a line such as this on my page:

rc> <font color=#900000><h5> Vister Number:</h5></font>
rc> <!-- #exec cgi="/cgi-bin/counter.cgi" -->

rc> /etc/httpd/conf/access.conf:

rc> Options Indexes Includes ExecCGI FollowSymLinks

rc> /etc/httpd/conf/srm.conf:

rc> ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/

rc> # To use CGI scripts:
rc> AddHandler cgi-script .cgi
rc> AddHandler cgi-script .pl


-- 
mailto:ray ray clark net                        http://www.clark.net/pub/ray
============================================================================



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]