Novell LINUX ENTERPRISE SERVER 11 - ADMINISTRATION Administration Manual page 414

Hide thumbs Also See for LINUX ENTERPRISE SERVER 11 - ADMINISTRATION:
Table of Contents

Advertisement

directory of your virtual host (/srv/www/www.example.com/cgi-bin/) and
name it test.cgi.
Files accessible by the Web server should be owned by to the user root (see
tion 27.7, "Avoiding Security Problems"
the Web server runs with a different user, the CGI scripts must be world-executable
and world-readable. Change into the CGI directory and use the command chmod 755
test.cgi to apply the proper permissions.
Now call http://localhost/cgi-bin/test.cgi or
http://www.example.com/cgi-bin/test.cgi. You should see the "CGI/1.0
test script report".
27.5.3 Troubleshooting
If you do not see the output of the test program but an error message instead, check the
following:
CGI Troubleshooting
• Have you reloaded the server after having changed the configuration? Check with
rcapache2 probe.
• If you have configured your custom CGI directory, is it configured properly? If in
doubt, try the script within the default CGI directory /srv/www/cgi-bin/ and
call it with http://localhost/cgi-bin/test.cgi.
• Are the file permissions correct? Change into the CGI directory and execute the
ls -l test.cgi. Its output should start with
-rwxr-xr-x
• Make sure that the script does not contain programming errors. If you have not
changed test.cgi, this should not be the case, but if you are using your own programs,
always make sure that they do not contain programming errors.
400
Administration Guide
1 root root
(page 407) for additional information). Because
Sec-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11

Table of Contents