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
Hello Robert, Giving all permission is a security risk. Try setting it to just 755 and see if it will still run. By default, Koha was installed on my system with the following permissions (sample for the intranet directory) drwxrwx--- 6 root apache 126 Aug 6 17:47 intranet drwxr-x--- 11 root apache 1650 Aug 6 17:47 cgi-bin drwxr-x--- 11 root apache 269 Aug 6 17:47 htdocs drwxr-x--- 3 root apache 53 Aug 6 17:47 modules drwxr-x--- 8 root apache 175 Aug 6 17:47 scripts drwxr-xr-x 2 root apache 61 Aug 6 17:47 acquisitions drwxr-xr-x 2 root apache 61 Aug 6 17:47 admin drwxr-xr-x 2 root apache 61 Aug 6 17:47 catalogue drwxr-xr-x 4 root apache 4343 Aug 6 17:47 images drwxr-xr-x 3 root apache 676 Aug 6 17:47 includes -rw-r--r-- 1 root apache 6982 Aug 6 17:47 index.html drwxr-xr-x 2 root apache 61 Aug 6 17:47 issues drwxr-xr-x 2 root apache 61 Aug 6 17:47 members drwxr-xr-x 3 root apache 83 Aug 6 17:47 opac drwxr-xr-x 2 root apache 61 Aug 6 17:47 reports --- 8< --- God bless. William ================================ icq #8313012 ==== mistaKes are ... - Keys that we can use to unlock the next door of opportunity. ----- Original Message ----- From: "Robert Maynord" <maynord@terracom.net> To: "Koha List" <koha@lists.katipo.co.nz> Cc: "Ron Wickersham" <rjw@alembic.com>; "William Villanueva" <koha@purity.com.ph> Sent: Saturday, August 31, 2002 12:30 AM Subject: [Koha] Step by Step - ScriptAlias?
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.
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
participants (2)
-
Robert Maynord -
William Villanueva