problem in restart apache ! httpd is not start

He3am

Verified User
Joined
Mar 7, 2013
Messages
95
hi
when restart apache via ssh recived this error
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 87 of /etc/httpd/conf/httpd.conf: Syntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Could not open configuration file /etc/httpd/conf.d/pagespeed.conf: No such file or directory

how can fix?
thanks
 
You screwed up your configs somehow.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
 
You screwed up your configs somehow.

Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs
Using for your server IP
Restarting apache.
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 86 of /etc/httpd/conf/httpd.conf: Sy ntax error on line 2 of /etc/httpd/conf/extra/httpd-includes.conf: Could not ope n configuration file /etc/httpd/conf.d/pagespeed.conf: No such file or directory
 
The problem is that you or someone added the pagespeed.conf to your httpd-includes.conf and and you either don't have it configured properly (not pointing to the correct conf file) or you don't really have it installed. Try commenting out that line in your /etc/httpd/conf/extra/httpd-includes.conf file (line 86).
 
I just had a similar issue today on a debian machine after running the custombuild script to update apache from 2.4.4 to 2.4.6

Code:
./build versions
./build update
./build clean
./build apache

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

So I did comment out the loading of the htscanner module in /etc/httpd/conf/extra/httpd-phpmodules.conf
and restarted apache, fine.

but then
Code:
./build rewrite_confs

httpd-phpmodules.conf got overwritten with the same attempt to load the htscanner module

I had forgotten to
Code:
./build mod_htscanner2    .

Sweet

Still, updating php 5.4.14-> 5.4.22

Code:
./build update_script
./build php

grep: /usr/lib/libidn.la: No such file or directory
/bin/sed: can't read /usr/lib/libidn.la: No such file or directory
libtool: link: `/usr/lib/libidn.la' is not a valid libtool archive
make: *** [libphp5.la] Error 1
-e
*** The make has failed, would you like to try to make again? (y,n)

Solved this after updating some libcurl packages from the Debian repositories :D
 
Last edited:
Back
Top