Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual page 778

Table of Contents

Advertisement

directory of your virtual host (/srv/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 41.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://example.com/cgi-bin/test.cgi. You should see the "CGI/1.0 test
script report".
41.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.
778
Installation and Administration
1 root root
(page 784) for additional information). Because
Sec-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents