Httpd not restarting Custombuild 2 - Mutex invaled command

Silvan

Verified User
Joined
Aug 29, 2012
Messages
29
Hi Guys,

Having a problem after running Custombuild 2.0 and updating. Getting the following error (HTTPD down right now):
(Debian 6 server)

Code:
Starting httpd: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf:
Invalid command 'Mutex', perhaps misspelled or defined by a module not included in the server configuration

Any ideas for a fix? Google didn't resolving anything about this.
 
Did you try
Code:
cd /usr/local/directadmin/custombuild
./build rewrite_confs
 
First load (missing) modules:
Code:
apt-get install gcc g++ make flex bison openssl libssl-dev perl perl-base perl-modules libperl-dev libaio1 libaio-dev \
zlib1g zlib1g-dev libcap-dev bzip2 automake autoconf libtool cmake pkg-config python libreadline-dev libdb4.8-dev libsasl2-dev patch

Then try to build again (and if it is not working, show us your build command).
 
You could try
Code:
cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php n
./build mod_ruid2
./build rewrite_confs
 
I then get an error on ./build apache, a lot of checks and then this:

Code:
xml/apr_xml.c:35:19: error: expat.h: No such file or directory
xml/apr_xml.c:66: error: expected specifier-qualifier-list before 'XML_Parser'
xml/apr_xml.c: In function 'cleanup_parser':
xml/apr_xml.c:364: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:365: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: At top level:
xml/apr_xml.c:384: error: expected ';', ',' or ')' before '*' token
xml/apr_xml.c: In function 'apr_xml_parser_create':
xml/apr_xml.c:401: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:402: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:410: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:411: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:412: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:424: error: 'default_handler' undeclared (first use in this function)
xml/apr_xml.c:424: error: (Each undeclared identifier is reported only once
xml/apr_xml.c:424: error: for each function it appears in.)
xml/apr_xml.c: In function 'do_parse':
xml/apr_xml.c:434: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:438: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:442: error: 'apr_xml_parser' has no member named 'xp'
xml/apr_xml.c: In function 'apr_xml_parser_geterror':
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
xml/apr_xml.c:500: error: 'apr_xml_parser' has no member named 'xp_err'
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.29/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.29/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/httpd-2.4.29/srclib'
make: *** [all-recursive] Error 1

*** The make has failed, would you like to try to make again? (y,n):

Also:
Code:
httpd -V
Server version: Apache/2.2.31 (Unix)
 
You need to install libexpat1-dev package and then compile again.
 
You need to install libexpat1-dev package and then compile again.

This was it!!! Don't now how you found it but that's awesome! Did this and recompiled and everything working great :)

Thanks so much! (Super bedankt!)
 
Back
Top