[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] found it! debug your scripts
- Subject: [cobalt-users] found it! debug your scripts
- From: "RHLinux- WHN" <rhlinux@xxxxxxxxxxx>
- Date: Fri Feb 18 02:47:33 2000
This document refers to all products
QuestionNum: 442
Product: All
Category Admin
Creation Date: Tue Feb 09 00:00:00 1999 PST
Question
Is there a way I can debug CGI scripts through the server?
Response
There is an effective utility you can use to debug CGI scripts, using the
CGIWrapper feature. This is what you need to do:
1. Telnet into your server as root.
2. Edit the following file:
/etc/httpd/conf/srm.conf
3. Locate the section, "# To use CGI scripts:", and add the following lines:
# The following lines add debugging features for CGI
Action cgi-wrapperd /cgiwrapDir/cgiwrapd
AddHandler cgi-wrapperd .cgid
AddHandler cgi-wrapperd .pld
4. Save the file, and restart the web server:
/etc/rc.d/init.d/httpd.init stop
/etc/rc.d/init.d/httpd.init start
5. 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.