Re: [greenstone-users] reg Greenstone installation in Linuxenvironment

From Richard Managh
DateThu, 24 Nov 2005 10:37:34 +1300
Subject Re: [greenstone-users] reg Greenstone installation in Linuxenvironment
In-Reply-To (Pine-LNX-4-44-0511230953120-25067-100000-trinetra-ncb-ernet-in)
Hi Mayank,

I can see two possibilities:

1. In terms of file permissions: Whether the apache user and therefore
apache can read the library executable depends on the permissions of the
target file, not the symlink. So if for example you have your greenstone
installation and executable in your home directory, and the apache user
doesnt have permissions to drill down to your library executable there,
this would be a problem.

2. There also may be a problem with your cgi-bin directory
configuration. It may be set up too restrictively. Its possible that it
is set up so that symlinks cannot be followed inside that directory.

Im not sure what the default apache cgi-bin directory setup is for
Fedora Core 2, but as an example - this is the configuration for RedHat
Enterprise 3:

<Directory "/var/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

You could try changing it to something like:

<Directory "/var/www/cgi-bin">
AllowOverride None
Options FollowSymLinks
Order allow,deny
Allow from all
</Directory>


And/or adding other options as needed.

See this page for documentation.

http://httpd.apache.org/docs/2.0/mod/core.html#directory


hope this helps,


Richard.
--
DL Consulting
Greenstone Digital Library and Digitisation Specialists
contact@dlconsulting.co.nz
www.dlconsulting.co.nz

Mayank Bhatnagar wrote:

hi Katherine,

Yes, I am using Apache version 2.0.53.


>Are you using apache? How have you set up apache to serve greenstone?
>The way I use apache is to have a global cgi-bin directory, and then
>symlink to the greenstone library file from there. With this
>configuration I need to copy the gsdlsite.cfg into the global cgi-bin
>directory.
>
>

I am also using it the similar way. I have the global cgi-bin directory as
/usr/local/apache2/cgi-bin and there I had earlier copied all gsdl cgi-bin
files into it as was mentioned during installation.

Now since you mentioned to create a symlink to greenstone library file,
ie where gsdl is residing, I just now created that, and now it gives me a
Forbidden error.

"Forbidden
You don't have permission to access /cgi-bin/library on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an
ErrorDocument to handle the request."


Now, this is a permission problem, but I am not able to figure out exactly
where it could be. The global cgi-bin directory in Apache2 is readable by
all, and inside it contains a symlink to the 'library' file, which is
again an readable/executable by everyone

I think there is some problem in cgi-bin set up. I am currently trying to
figure it out. Hopefully it should work soon. :(

thanks,
regards,
Mayank


>If you have a scriptalias in your apache config file pointing to the
>gsdl/cgi-bin directory, then this does not apply.
>
>Regards,
>katherine
>
>Mayank Bhatnagar wrote:
>
>
>>hi Richard,
>>
>>Thanks for mail, but it is already globally readable.
>>
>>Regards,
>>Mayank
>>__________________________________________________________________________
>>
>>On Wed, 23 Nov 2005, Richard Managh wrote:
>>
>>
>>
>>
>>>Hi Mayank,
>>>
>>>This could possibly be a file permissions problem, is your gsdlsite.cfg
>>>readable by the apache user? It may have to be set to be globally readable.
>>>
>>>
>>>Regards,
>>>
>>>Richard.
>>>--
>>>DL Consulting
>>>Greenstone Digital Library and Digitisation Specialists
>>>contact@dlconsulting.co.nz
>>>www.dlconsulting.co.nz
>>>
>>>
>>>
>>>Mayank Bhatnagar wrote:
>>>
>>>
>>>
>>>
>>>>Dear all,
>>>>
>>>>I am installing Greenston version gsdl-2.52-unix on FC2, kernel
>>>>2.6.5-1.358
>>>>
>>>>After running Install.sh and providing all parameters, I am getting this
>>>>error which I am unable to solve.
>>>>
>>>>
>>>>"Oops The gsdlsite.cfg configuration file does not contain a valid
>>>>gsdlhome entry. gsdlsite.cfg should reside in the same directory as the
>>>>library executable file."
>>>>
>>>>What could be the possible reason?
>>>>
>>>>Can any one provide any hints on what could be the problem.
>>>>
>>>>
>>>>1) I have the gsdl directory in my home directory, so I am making sure the
>>>>GSDLHOME settings in the gsdlsite.cgf is set correctly to, like this
>>>>
>>>>gsdlhome /home/mayank/gsdl/
>>>>
>>>>
>>>>2) Reg the seond error statement , ie "gsdlsite.cfg should reside in the
>>>>same directory as the library executable file", that is fine as the cfg
>>>>file is in the cgi-bin directory, where library executable resides.
>>>>
>>>>
>>>>Looking forward to any solutions,
>>>>
>>>>Regards,
>>>>Mayank
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>greenstone-users mailing list
>>>>greenstone-users@list.scms.waikato.ac.nz
>>>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>>>
>>>>
>>>>
>>>>
>>_______________________________________________
>>greenstone-users mailing list
>>greenstone-users@list.scms.waikato.ac.nz
>>https://list.scms.waikato.ac.nz/mailman/listinfo/greenstone-users
>>
>>
>>
>>
_______________________________________________
greenstone-users mailing list
greenstone-users@list.scms.waikato.ac.nz
https://list.scms.