Server Error when trying to run CGI scripts
Hi all I'm new at this so bear with me please. I am installing Koha for a client (and a friend who is very patient...) I use RedHat 7.2 and ran the automatic install. The script seemed to work well -at least I think it did- but I am getting scripts problems. I can get to the Opac or the Intranet home pages fine, which means the httpd daemon works. I ran httpd -S to check and it returned the two Koha Hosts entries from httpd.conf with no syntax errors. However if I click on any links from either home page that requires running a script, I get a Server Error page. My setup is straight from the installer.pl with all default locations (/usr/local/koha/intranet/... and /usr/local/koha/opac/...). I have checked the following: - the httpd error log: no errors at start up or at any time afterwards. - the users rights: all users who access Koha are members of the group apache. - apache is the group owner of all the koha directory structure under /usr/local - all cgi-bin .pl scripts have world-execute rights (711) It looks like the ScriptAlias directive in the servers entries (httpd.conf) don't work and subsequently the koha pages can't find the CGI scripts to execute. Currently the ScriptAlias directives read: ScriptAlias /cgi-bin/koha/ "/usr/local/koha/opac/cgi-bin/" ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/" Any ideas??? Kind regards Pierre WISYWYG Data a.pparigot@xtra.co.nz 64-7-868-9806
On Fri, 25 Oct 2002, Pierrick wrote:
I'm new at this so bear with me please. I am installing Koha for a client (and a friend who is very patient...) I use RedHat 7.2 and ran the automatic install. The script seemed to work well -at least I think it did- but I am getting scripts problems.
I can get to the Opac or the Intranet home pages fine, which means the httpd daemon works. I ran httpd -S to check and it returned the two Koha Hosts entries from httpd.conf with no syntax errors. However if I click on any links from either home page that requires running a script, I get a Server Error page.
My setup is straight from the installer.pl with all default locations (/usr/local/koha/intranet/... and /usr/local/koha/opac/...). I have checked the following: - the httpd error log: no errors at start up or at any time afterwards. - the users rights: all users who access Koha are members of the group apache. - apache is the group owner of all the koha directory structure under /usr/local - all cgi-bin .pl scripts have world-execute rights (711)
It looks like the ScriptAlias directive in the servers entries (httpd.conf) don't work and subsequently the koha pages can't find the CGI scripts to execute. Currently the ScriptAlias directives read: ScriptAlias /cgi-bin/koha/ "/usr/local/koha/opac/cgi-bin/" ScriptAlias /cgi-bin/koha/ "/usr/local/koha/intranet/cgi-bin/"
Is there a file in your apache log directory called koha-error_log or opac-error_log. If so, so they contain any messages that you can post here? Steve.
Pierrick wrote: [--snip--]
- apache is the group owner of all the koha directory structure
[--snip--]
- all cgi-bin .pl scripts have world-execute rights (711)
[--snip--]
the koha pages can't find the CGI scripts to execute.
This may be obvious... but just in case... In above example, who is the script owner who gets the "7"? Shell scripts (including .pl) must be readable as well as executable. In other words, does apache have read rights to the scripts? R.
participants (3)
-
Pierrick -
Roger Buck -
Tonnesen Steve