[Koha] Step by Step - ScriptAlias?

Robert Maynord maynord at terracom.net
Sat Aug 31 04:30:08 NZST 2002


Ron & Bill:

Thanks for your suggestions regarding the httpd.conf file.  I tried all 
of your ideas, and made the modifications (I learned & they were 
helpful) - but I found the source of the problem was elsewhere.  When I 
saw that the browser said "Forbidden: you do not have permission"  for 
the Intranet directory, it made me think.  I finally solved the problem 
by changing the file permissions on all the Intranet Koha directories. 
 Things work only when I give full permission to everybody: user, group 
and other. I'm not sure if this is a security risk - but it is a step, 
and both Intranet and Opac pages load.

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/
3) Double check all file permissions in the cgi-bin directory.
4) I don't know how to check ScriptAlias independently to see if it is 
working.
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.
6) search.pl does exist in /usr/local/koha/opac/cgi-bin/search.pl
7) Again - I am using Mandrake 8.2.  I have noticed that this means 
several things are different, such as the location of apachectl

Thanks again for your helpful suggestions!

Step by step I am making progress...

Robert Maynord







More information about the Koha mailing list