[Koha] Step by Step - ScriptAlias?

William Villanueva koha at purity.com.ph
Sat Aug 31 11:29:06 NZST 2002


Hello Robert,

> The dilemma I have now is that there is no access (in the browser) to
> the cgi-bin stuff.  For example, when I try to do a search in koha I get
> the message "Forbidden: You don't have permission to access
> /cgi-bin/koha/search.pl" (I have opened all the permissions on
> directories and files).  This tells me that for some reason the
> ScriptAlias command in the httpd.conf file is not working. I check
> httpd.conf and it reads: ScriptAlias /cgi-bin/koha/
> /usr/local/koha/opac/cgi-bin just like it should. But obviously
> ScriptAlias is not forwarding.

> I have tried several feeble tricks:
> 1) Delete the koha/ part so there is only /cgi-bin/
> 2) Create a directory in root called /cgi-bin/koha/

If you changed that, you'll have to change all the html files that points to
that link.

> 3) Double check all file permissions in the cgi-bin directory.

Just 755 permission on all.

> 4) I don't know how to check ScriptAlias independently to see if it is
> working.

Manually, type into the browser:
http://192.168.0.4:8080/cgi-bin/koha/search.pl
Then check the logs for what errors it reports

> 5) Although the browser says it can't "access /cgi-bin/koha/search.pl",
> the opac-error_log says "client denied by server configuration:
> /usr/local/koha/opac/cgi-bin/search.pl" implying that the ScriptAlias is
> trying to get through.

Aha!  Client denied would mean that your workstation was not given access to
the server.  Add to your commonhttpd.conf something like this:

<Directory /usr/local/koha>
    AllowOverride All
    Options MultiViews -Indexes Includes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

Restart apache then try again.

If not, this one is a far stretch since I didn't have to use it myself...
try checking commonhttpd.conf for something like this:

<Directory /var/www/cgi-bin>
    AllowOverride All
    Options ExecCGI
</Directory>

and point the directory to your koha cgi-bin  eg.  <Directory
/usr/local/koha/opac/cgi-bin>
and another for intranet/cgi-bin

This forces executability of the cgi in that directory.

God bless.

William
================================ icq #8313012 ====
  Get over yourself - Everyone else has --- John C. Maxwell





More information about the Koha mailing list