logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache cannot load mod_proxy_ajp into server: libc.so.0
Author
adrhc



Joined: 04 Oct 2013
Posts: 2
Location: Romania, Bucharest

PostPosted: Wed 06 Nov '13 22:35    Post subject: apache cannot load mod_proxy_ajp into server: libc.so.0 Reply with quote

root@nsa310:~# uname -a
Linux nsa310 2.6.31.8 #2 Fri Aug 2 11:21:44 CST 2013 armv5tel GNU/Linux

I have a Zyxel NSA310 with a factory-installed apache:

root@nsa310:~# /usr/sbin/httpd -V
Server version: Apache/2.2.9 (Unix)
Server built: Jan 17 2013 15:28:39
Server's Module Magic Number: 20051115:15
Server loaded: APR 1.3.0, APR-Util 1.3.0
Compiled using: APR 1.3.0, APR-Util 1.3.0
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="logs/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"

It doesn't contain the mod_proxy_ajp.so module so I downloaded Apache/2.2.9 sources and compiled them in order to obtain mod_proxy_ajp.so module. When I'm loading the module with:
LoadModule proxy_ajp_module /usr/local/zy-pkgs/lib/mod_proxy_ajp.so
at starting I'm getting the error:
root@nsa310:~/apache2/bin# /bin/nice -n -2 /usr/sbin/httpd -f /etc/service_conf/httpd.conf
httpd: Syntax error on line 16 of /etc/service_conf/httpd.conf: Cannot load /usr/local/zy-pkgs/ffproot/ffp/home/root/apache2/modules/mod_proxy_ajp.so into server: libc.so.0: cannot open shared object file: No such file or directory


The compiled version outputs same result for httpd -V and it starts fine with de same module loading declaration. What is the problem ?
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Wed 06 Nov '13 23:04    Post subject: Reply with quote

Since it's complaining about not finding libc.so, load it

LoadFile /path/to/libs/libc.so
Back to top
adrhc



Joined: 04 Oct 2013
Posts: 2
Location: Romania, Bucharest

PostPosted: Thu 07 Nov '13 16:08    Post subject: Reply with quote

Thank you, that is the problem.

I was thinking that libc.so.0 is the one that is complaining of not having something (didn't know what) - bad interpretation.

With httpd.conf:
LoadFile /usr/local/zy-pkgs/ffproot/ffp/lib/ld-uClibc.so.0
LoadFile /usr/local/zy-pkgs/ffproot/ffp/lib/libc.so.0
LoadModule proxy_ajp_module /usr/local/zy-pkgs/ffproot/ffp/lib/mod_proxy_ajp-2.2.9.so

it works.
Back to top


Reply to topic   Topic: apache cannot load mod_proxy_ajp into server: libc.so.0 View previous topic :: View next topic
Post new topic   Forum Index -> Apache