[hobbit] Problem with apache.....

Great Dilla great.dilla at gmail.com
Wed Oct 11 15:02:08 CEST 2006


add this line in your apache's httpd.conf
------
SetEnv LD_LIBRARY_PATH "/usr/local/lib:/usr/lib"
------
(the above assumes you installed libpcre libraries in one of the paths
mentioned)

that will pass to the cgi-bin scripts so that they get a defined
environment for proper functions. if you have a virtual host, then
place that line inside the <VirtualHost> </VirtualHost> lines, as
applicable.

hope this helps.

/great

On 10/11/06, Pierre Ronnefalk <pierre.ronnefalk at relacom.com> wrote:
> The strange thing is that i HAVE my lib files ( libpcre.so.0 etc.) in /usr/lib.
>
> The solutions below didnĀ“t work...
>
>
> /Pierre
>
> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk]
> Sent: den 11 oktober 2006 10:30
> To: hobbit at hswn.dk
> Subject: Re: [hobbit] Problem with apache.....
>
> On Wed, Oct 11, 2006 at 10:16:24AM +0200, Pierre Ronnefalk wrote:
>
> > [Wed Oct 11 10:06:30 2006] [error] [client 10.xxx.xxx.xx] ld.so.1:
> > hobbitsvc.cgi: fatal: libpcre.so.0: open failed: No such file or
> > directory, referer: https://xxxxx.net/hobbit/
> > <https://xxxxx.net/hobbit/>
>
> You've installed the PCRE libraries (and possible others) in a directory which is not included in the default library search path that Apache uses when running CGI scripts.
>
> The simplest solution is probably to create a symbolic link from /usr/lib/libpcre.so.0 to wherever you installed this library. And similarly for librrd and other special libraries you've installed for Hobbit.
>
> Alternatively, you can change the configuration of the dynamic loader to search the directory you've installed the libraries in. How to do this depends on your OS; Linux systems use the file /etc/ld.so.conf for this purpose.
>
> As a final way of overcoming this, you can modify the Hobbit CGI scripts to setup the LD_LIBRARY_PATH environment variable to include the directories with these libraries.
>
>
> Regards,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
>
>
>  [####################   RELACOM CORPORATE EMAIL FOOTER   ####################]
>   1. This communication is confidential and is only intended for use of the
>      individual or entity to which it is directed. If you are not the intended
>      recipient of this email, please delete it without forwarding any of it's
>      content.
>   2. Opinions and thoughts expressed in this email might be personal opinions
>      from the sender and not necessary representing Relacom.
>   3. For further information please visit: http://security.relacom.com/email/
>  [############################################################################]
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>



More information about the Xymon mailing list