httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject pb while loading libraries in Apache
Date Wed, 15 May 2002 08:40:37 GMT

I have installed Apache on a Solaris8 Server with other modules: 
    - Apache 1.3.23, 
    - mod_ssl-2.8.7-1.3.23 
    - openSSL 0.9.6c, 
    - PERL 5.6.1 

The cgi-scripts are in perl and use a Postgresql 7.2.1 database.

Apache is started by the "root" user and then the child process are run as "nobody"
as specified in the httpd.conf file :
	User nobody
	Group nobody

When a Perl Cgi script tries to load the "Pg" module  (command "use Pg;"  in the
script), there is the following error in the Apache Error Log : 
Can't load '/usr/local/perl-5.6.1/lib/site_perl/5.6.1/sun4-solaris/auto/Pg/' for module
/usr/local/perl-5.6.1/bin/perl: fatal: open failed: No such file or directory
/usr/local/perl-5.6.1/lib/5.6.1/sun4-solaris/ line 206. 
at /home/www/smada/private/cgi-bin/ line 2 
Compilation failed in require at /home/www/smada/private/cgi-bin/ line 2.

BEGIN failed--compilation aborted at /home/www/smada/private/cgi-bin/ line

The script works well when it is run by itself and if the user has a correct LD_LIBRARY_PATH.
It looks like the child process does not heritate the library path in its environment.

Do you have any idea about this problem ?

Thanks in advance

Fran├žois BELLIARD
FTR&D/DRHG/RSCL - (33) (0)2 96 05 22 51

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message