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

RE: [cobalt-users] cgiwrap problem running cgi script



 --- Tom Cameron <tomcameron@xxxxxxxxxxxxxxx> wrote: >

> It seems to me that cgiwrap is denying access to the
> scripts because of some
> permission failure, but without any logs at all, I
> cant tell what the
> problem is. It seems extraordinary to me that there
> are not debugging logs
> at all for cgiwrap.

Debugging cgi is simple to set up, the following is
from the KB article:

There is an effective utility you can use to debug CGI
scripts, using the CGIWrapper feature. This is what
you need to do: 


Telnet into your server as root. 

Edit the following file: 

/etc/httpd/conf/srm.conf 

# The following lines add debugging features for CGI 
Action cgi-wrapperd /cgiwrapDir/cgiwrapd 
AddHandler cgi-wrapperd .cgid 
AddHandler cgi-wrapperd .pld 

Save the file, and restart the web server: 

/etc/rc.d/init.d/httpd.init stop 
/etc/rc.d/init.d/httpd.init start 

Copy or rename your CGI scripts with the extension,
cgid or pld, and execute the script through your
browser. 

This will provide debugging information about the
script, and aid in locating what the cause of a
failure of the script. 



=====

--

Ursula


http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper
- Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper!