View Full Version : apache failed to restart


Mike006
04-06-2005, 12:25 AM
Apache went down, so I tried to restart it but got this message.

"httpd has failed, please contact the sysadmin."

I then attempted to recompile via whm which also failed and got the below message.

Any help on how to fix this would be very helpful. Im trying to get some support from my dedicated server provider but haven't gotten any reply in the last hr since its Dinix/WHP, so I figured I might get help here quicker.



Building Apache Config.....Done
Downloading and compiling apache+modules....


Verifying archive integrity... All good.
Uncompressing buildapache..........................................................................................................................
Verifying compiler and libs....Sync Source: http://httpupdate.cpanel.net/EDGE/scripts
Fetching http://httpupdate.cpanel.net/cpanelsync/EDGE/scripts/.cpanelsync.lock....Trying httpupdate.cpanel.net @ 69.72.164.152
100%......Done
Fetching http://httpupdate.cpanel.net/cpanelsync/EDGE/scripts/.cpanelsync.bz2....Trying httpupdate.cpanel.net @ 69.72.164.151
35%...71%...100%......Done
Fetching http://httpupdate.cpanel.net/cpanelsync/EDGE/scripts/rebuildcpusers.bz2....100%......Done
Got file ./rebuildcpusers ok (md5 matches)
Verifying installation....Gathering header information file(s) from server(s)
Server: Fedora Linux 1 - i386 - core
Server: Fedora Linux 1 - i386 - freshrpms
Server: Fedora Linux 1 - i386 - updates
Finding updated packages
Downloading needed headers
No actions to take
wget is installed and is the latest version.
Gathering header information file(s) from server(s)
Server: Fedora Linux 1 - i386 - core
Server: Fedora Linux 1 - i386 - freshrpms
Server: Fedora Linux 1 - i386 - updates
Finding updated packages
Downloading needed headers
No actions to take
ncurses is installed and is the latest version.
ncurses-devel is installed and is the latest version.
gettext is installed and is the latest version.
gdbm is installed and is the latest version.
gdbm-devel is installed and is the latest version.
db4 is installed and is the latest version.
db4-devel is installed and is the latest version.
patch is installed and is the latest version.
glibc-kernheaders is installed and is the latest version.
pam-devel is installed and is the latest version.
krb5-devel is installed and is the latest version.
openssl is installed and is the latest version.
openssl-devel is installed and is the latest version.
flex is installed and is the latest version.
bison is installed and is the latest version.
glibc-devel is installed and is the latest version.
gcc is installed and is the latest version.
gcc-c++ is installed and is the latest version.
cpp is installed and is the latest version.
libstdc++ is installed and is the latest version.
libstdc++-devel is installed and is the latest version.
libjpeg is installed and is the latest version.
libjpeg-devel is installed and is the latest version.
libpng is installed and is the latest version.
libpng-devel is installed and is the latest version.
libpng10 is installed and is the latest version.
libpng10-devel is installed and is the latest version.
libtiff is installed and is the latest version.
libtiff-devel is installed and is the latest version.
XFree86-libs is installed and is the latest version.
XFree86-devel is installed and is the latest version.
pspell is installed and is the latest version.
zlib is installed and is the latest version.
zlib-devel is installed and is the latest version.
aspell is installed and is the latest version.
aspell-devel is installed and is the latest version.
libtool is installed and is the latest version.
libungif-devel is installed and is the latest version.
Done
Done
********************************
This is buildapache version 10.0.1b
********************************
buildapache configured from Web Host Manager
Apache configured from Web Host Manager!
/etc/rc.d/init.d/httpd start: httpd could not be started
Setting /home permissions to 0711......Done
Setting permissions for.....nfsnobody...cpanel...mailman...ghostab...clanstp...blusf2...sfar...abtract...altair...anti...arkrim...arvisi
...asterisk...avcreati...bolanos...brandon...cecesa...chillfac...crushed...dawomt...digtal...ishbuco...diffini...diinel...enigm...eratekpc...framebyf. ..gamerdi...getillc...goacco...grimev...coy
...interes...killunc...klppco...lasergu...lazyboyh...logoat...matcobz...scratch...millcre...nagain...nassed...njcrfts...oadesig...
pesiar...proecta...champso...submurs...whkiki...sigaer...piwoco...turbot...stevnho...synnite...syntacd...laurena...
tobkisu...tomunist...transfus...verontr...zoelfik...rbrw62...marval...raecla...artbyeo...drvisi...davvyc...byrdbro...enlight...
occusi...hassf...napms...omotee...hoseof...mesein...xsuicie......Done
Untarring mcryptDone

configure libmcrypt-2.5.7...(--prefix=/usr --disable-posix-threads).... . . . . . . . . Done

make -j 1 libmcrypt-2.5.7....... . . . . . . . . . . . . . . . . . . . Done

make libmcrypt-2.5.7...(install).... . . Done
Untarring curl......Done

configure curl-7.12.0...(--prefix=/usr).... . . . . . . . . . . . . . . . . . . . . . . . . Done

make -j 1 curl-7.12.0....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

make curl-7.12.0...(install).... . Done
Untarring php....Done
Applying CURL curl_formfree patch
patching file ext/curl/curl.c
Hunk #1 succeeded at 563 (offset 18 lines).
Hunk #2 succeeded at 892 (offset 7 lines).

configure php-4.3.10...(--with-apxs=/usr/local/apache/bin/apxs --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-mcrypt --enable-magic-quotes --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib).... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

make -j 1 php-4.3.10...(clean).... Done

make -j 1 php-4.3.10....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

make php-4.3.10...(install).... . . . . . . Done
/etc/rc.d/init.d/httpd start: httpd could not be started

configure php-4.3.10...(--prefix=/usr --with-xml --enable-bcmath --enable-calendar --with-curl --enable-ftp --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-mcrypt --enable-magic-quotes --with-mysql=/usr --enable-discard-path --with-pear --enable-sockets --enable-track-vars --enable-versioning --with-zlib).... . . . . . . . . . . . Done

make -j 1 php-4.3.10...(clean).... Done

make -j 1 php-4.3.10....... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Done

make php-4.3.10...(install).... . . . . . . Done
initfpsuexec: using apache 1.x support
PHP version file is up to date
Executing /scripts/postbuildapache (if exists)...Done
/etc/rc.d/init.d/httpd start: httpd could not be started
Attempting to restart httpd
Waiting for httpd to restart....
.
.
.
.
.
.
.
.
.
.
finished.


httpd has failed, please contact the sysadmin.

Haze
04-06-2005, 12:29 AM
what gets printed to screen when you type: service httpd configtest

Mike006
04-06-2005, 12:35 AM
Im having a problem getting ssh started from Cpanel, its just not loading when I click on it. Is there another way to run commands or get shell access?

Mike006
04-06-2005, 12:54 AM
Ok, I downloaded putty and can now get access to shell. This is what I got when I typed "service httpd configtest"


Syntax error on line 1100 of /usr/local/apache/conf/httpd.conf:
Invalid command 'BytesLog', perhaps mis-spelled or defined by a module not included in the server configuration

Techark
04-06-2005, 01:03 AM
pico httpd.conf go to line 1100 and see what is there post it and the lines around it.

dollar
04-06-2005, 01:07 AM
This will most likely fix it:

First open up the httpd.conf for editing:
pico -w /etc/httpd/conf/httpd.conf

Then find the AddModules section and enter this on a line:
AddModule mod_log_bytes.c

Next find the LoadModules section and enter this on a line:
LoadModule bytes_log_module libexec/mod_log_bytes.so



Restart apache and you should be set.

Mike006
04-06-2005, 01:10 AM
##
## SSL Virtual Host Context
##


</IfDefine>
NameVirtualHost 209.152.184.128:80

<VirtualHost 209.152.181.80>
#byteslog domlogs/602735.servernode.net-bytes_log
BytesLog domlogs/602735.servernode.net-bytes_log <<LINE 1100
ServerName 602735.servernode.net
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>

Techark
04-06-2005, 01:14 AM
Why is there a in theere?

#byteslog domlogs/602735.servernode.net-bytes_log

remove the # and comment out
BytesLog domlogs/602735.servernode.net-bytes_log <<LINE 1100

by making it
#BytesLog domlogs/602735.servernode.net-bytes_log

Try and restart apache.

Mike006
04-06-2005, 01:17 AM
I tried what justadollarhostin suggested and that worked. Im not sure if it will be a permanent solution but things are back up now. Thanks for the help.

Techark
04-06-2005, 01:19 AM
Yep what he suggested is a permanent fix.