Forums LAMPStack

lampstack-0.9.4 apache + mod_cgi + apr problem

Subscribe to lampstack-0.9.4 apache + mod_cgi + apr problem 5 post(s), 2 voice(s)

 
Avatar jean 10 post(s)

hi folks

have installed successfully the lampstack 0.9.4 on RedHat4 machine
have downloaded from apache.org the httpd and mod-perl 2.0.2 test suites (http://httpd.apache.org/test/)

want to run httpd test against apache of lampstack0.9.4

- httpd tests have been configured succesfully
- issued the following errors when want to execute tests

t/TEST -httpd_conf /space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/bin/perl /space/Apache-Test/httpd-test/perl-framework/t/TEST -httpd_conf ’/space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf’
make: Nothing to be done for `all’.
[warning] root mode: changing the files ownership to ‘nobody’ (99:99)
[warning] testing whether ‘nobody’ is able to -rwx /space/Apache-Test/httpd-test/perl-framework/t
”/usr/bin/perl” -Mlib=/space/Apache-Test/httpd-test/perl-framework/Apache-Test/lib -MApache::TestRun -e ‘eval { Apache::TestRun::run_root_fs_test(99, 99, q[/space/Apache-Test/httpd-test/perl-framework/t]) }’;

[warning] result: OK
[warning] the client side drops ‘root’ permissions and becomes ‘nobody’
/opt/lampstack-0.9.4/apache2/bin/httpd -d /space/Apache-Test/httpd-test/perl-framework/t -f /space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.0.61 (prefork MPM)

waiting 60 seconds for server to start: .Syntax error on line 80 of /space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf:
Cannot load /opt/lampstack-0.9.4/apache2/modules/mod_cgi.so into server: /opt/lampstack-0.9.4/apache2/modules/mod_cgi.so: undefined symbol: apr_procattr_addrspace_set

when trying to get the mod_cgi.so symbols :
nm /opt/lampstack-0.9.4/apache2/modules/mod_cgi.so
nm: /opt/lampstack-0.9.4/apache2/modules/mod_cgi.so: no symbols

=> lib has been compiled without building table of symbols so i can not check symbol is missing

in the /space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf around line 80 :

...
<ifmodule> LoadModule cgi_module ”/opt/lampstack-0.9.4/apache2/modules/mod_cgi.so”
</ifmodule>
...

seems like apache / mod_cgi.so embedded with lampstack 0.9.4 are missing apr module ???
is there a separate apr package to get ? or it should be included in the apache distrib that comes into lampstack 0.9.4 ?
can someone help on this area

many thks in advance
Jean

 
Avatar jean 10 post(s)

guess i’m falling into bug of http://issues.apache.org/bugzilla/show_bug.cgi?id=37217
trying to figure out if i can update to the latest apr modules for apache

 
Avatar Daniel Lopez Administrator 111 post(s)

Um, no, I do not think so, that bug report is over 2 years old. I think you are running into that issue, but because you have already and APR version running in the system that is older than the one shipped with lampstack

Can you do :

export LD_LIBRARY_PATH=/path/to/lampstack/common/lib:/path/to/lampstack/apache2/lib

and then execute the tests? That should ensure mod_cgid locates the right library

 
Avatar jean 10 post(s)

Many thanks Daniel, you are absolutely right
setting up the LD_LIBRARY_PATH, i do not fall into mod_cgi.so issue anymore and indeed the apr version shipped with lampstack is fixing the mod_cgi issue as it is newer than the one installed on my system

running the tests i’m now issuing the following error :

cd /space/Apache-Test/httpd-test/perl-framework
t/TEST -httpd_conf /space/Apache-Test/httpd-test/perl-framework/t/conf/httpd.conf
...
Cannot load /opt/lampstack-0.9.4/apache2/modules/libphp5.so into server: /opt/lampstack-0.9.4/apache2/modules/libphp5.so: symbol zlibVersion, version libmysqlclient_15 not defined in file libmysqlclient.so.15 with link time reference

i’m starting to investigate on this issue, reporting it to the forum anyway, in case someone already faced it or knows how to workaround it

thks in advance
Jean

 
Avatar jean 10 post(s)

with the same idea suggested by Daniel, updating the LD_LIBRARY_PATH fixes this pb and tests can finally execute
export LD_LIBRARY_PATH=/opt/lampstack-0.9.4/mysql/lib:$LD_LIBRARY_PATH

Jean

Forums LAMPStack