Apache will not start

patchworrk

New member
Joined
Jan 31, 2013
Messages
2
Hi

I just ran CB2 for the first time and after it finished Apache would not start up.

To get Apache to run I had to comment out three lines from /etc/httpd/conf/extra/httpd-phpmodules.conf

## LoadModule ruid2_module /usr/lib/apache/mod_ruid2.so
## Mutex posixsem
## LoadModule mpm_prefork_module /usr/lib/apache/mod_mpm_prefork.so

I have tried various different options but cannot get it to start up without removing those lines from the confs


Pete
 
@patchworrk,

I have tried various different options but cannot get it to start up without removing those lines from the confs


Code:
./build rewrite_confs
?
 
The error was

Starting httpd: httpd: Syntax error on line 38 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf/extra/httpd-phpmodules.conf: Cannot load /usr/lib/apache/mod_ruid2.so into server: /usr/lib/apache/mod_ruid2.so: cannot open shared object file: No such file or directory

In the end I got it working using

./build apache
./build php n
./build mod_ruid2 <--- This failed

I then had to run
yum -y install libcap-devel
./build mod_ruid2
/sbin/service httpd start


I did try ./build rewrite_confs but that actually created more errors at the time.


Pete
 
How did you upgrade to CB 2? You might need to do it from a scratch:

Code:
cd /usr/local/directadmin
mv custombuild custombuild_1.x
wget -O custombuild.tar.gz http://files.directadmin.com/services/custombuild/2.0/custombuild.tar.gz
tar xvzf custombuild.tar.gz
cd custombuild
./build

and re-built apache with rewriting configs, and rebuilding of PHP.
 
Back
Top