/usr/lib/apache/mod_hostinglimits.so: undefined symbol: ap_log_error

Ghadamyari

Verified User
Joined
Aug 13, 2011
Messages
32
[FIXED] /usr/lib/apache/mod_hostinglimits.so: undefined symbol: ap_log_error

Hello

I've built apache_nginx + cloudlinux using custombuild 2:
Code:
yum update -y
./build update
./build update_script
./build set nginx_apache yes
./build set cloudlinux yes
./build set cagefs yes
./build all d
./build rewrite_confs

but apache doesn't start

Code:
Restarting apache.
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Syntax error on line 157 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/modhostinglimits.conf: Cannot load /usr/lib/apache/mod_hostinglimits.so into server: /usr/lib/apache/mod_hostinglimits.so: undefined symbol: ap_log_error
                                                           [FAILED]


I checked apache build logs and found the following err:
Code:
checking whether to build static libraries... yes
grep: /usr/local/directadmin/custombuild/httpd-2.4.23/srclib/apr/libtool: No such file or directory

then tried to use ./build libtool to update libtool and rebuild everything but the issue is still there

Also tested : http://docs.cloudlinux.com/index.html?hostinglimits_module_for_apache.html
still the same error
 
Last edited:
Hello,

try and run

Code:
./build mod_hostinglimits



Code:
[root@sv custombuild]# ./build mod_hostinglimits
Loaded plugins: fastestmirror, rhnplugin, security
Setting up Update Process
Loading mirror speeds from cached hostfile
 * cloudlinux-x86_64-server-6: de-proxy.cl-mirror.net
 * epel: mirror.bytemark.co.uk
No Packages marked for Update
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Version 2.4...
-- apache 2.4 detected...
-- Found Apache Portable Runtime: /usr/local/apache/include, /usr/local/apache/lib/libapr-1.so
-- Found Apache Portable Runtime Utils: /usr/local/apache/include, /usr/local/apache/lib/libaprutil-1.so
-- Found Apache Bin Directory: /usr/sbin, /usr/local/apache/modules
-- Found Apache2: /usr/local/apache/include
-- Apache binary /usr/sbin/httpd
httpd: Syntax error on line 156 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/modhostinglimits.conf: Cannot load /usr/lib/apache/mod_hostinglimits.so into server: /usr/lib/apache/mod_hostinglimits.so: undefined symbol: ap_log_error
-- USE MUTEX WORKER, EVENT FOUND
-- Configuring done
-- Generating done
-- Build files have been written to: /usr/local/directadmin/custombuild/mod_hostinglimits-1.0-27
Scanning dependencies of target mod_hostinglimits
[100%] Building C object CMakeFiles/mod_hostinglimits.dir/src/apache2.x/mod_hostinglimits.o
/usr/local/directadmin/custombuild/mod_hostinglimits-1.0-27/src/apache2.x/mod_hostinglimits.c[B]: In function 'lve_var_log_handler_y':
[/B]/usr/local/directadmin/custombuild/mod_hostinglimits-1.0-27/src/apache2.x/mod_hostinglimits.c:2530: [B]warning: comparison between pointer and integer
Linking C shared module lib/mod_hostinglimits.so
[/B][100%] Built target mod_hostinglimits
Install the project...
[B]-- Install configuration: ""[/B]
-- Installing: /usr/local/apache/modules/mod_hostinglimits.so
-- Removed runtime path from "/usr/local/apache/modules/mod_hostinglimits.so"
Stopping httpd:                                            [FAILED]
Starting httpd: httpd: Syntax error on line 156 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Syntax error on line 1 of /etc/httpd/conf/extra/modhostinglimits.conf: Cannot load /usr/lib/apache/mod_hostinglimits.so into server: /usr/lib/apache/mod_hostinglimits.so: undefined symbol: ap_log_error
                                                           [FAILED]

and I tried ./build rewrite_confs after this command but no difference, the same error :(

Code:
[root@sv ~]# uname -a
Linux sv 2.6.32-673.26.1.lve1.4.18.el6.x86_64 #1 SMP Fri Oct 21 11:58:14 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

[root@sv ~]# cat /etc/issue
CloudLinux Server release 6.8 (Oleg Makarov)
Kernel \r on an \m
 
Just checked the version of apache in /usr/local/apache/bin/httpd and it was apache 2.2 :-/

removed both /usr/local/nginx and /usr/local/apache folders and then built the nginx_apache config and rebuilt the configs, all good now :)
 
Back
Top