Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache not loading properly. (No error; exit status of 1)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ncf
n00b
n00b


Joined: 29 Apr 2006
Posts: 12

PostPosted: Wed Nov 15, 2006 10:31 am    Post subject: Apache not loading properly. (No error; exit status of 1) Reply with quote

As stated in the subject, Apache is not loading properly, after years of quality service.

Running apachectl start yields an error stating that it failed to start, but no error messages are logged anywhere. And apache exits with status code of "1".

I have tried rebooting, and have combed through all of the .conf files with no luck.

** /usr/local/apache/bin/httpd -V
Code:
Server version: Apache/1.3.31 (Unix)
Server built:   Oct 19 2004 20:20:01
Server's Module Magic Number: 19990320:16
Server compiled with....
 -D EAPI
 -D HAVE_MMAP
 -D HAVE_SHMGET
 -D USE_SHMGET_SCOREBOARD
 -D USE_MMAP_FILES
 -D HAVE_FCNTL_SERIALIZED_ACCEPT
 -D HAVE_SYSVSEM_SERIALIZED_ACCEPT
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D DYNAMIC_MODULE_LIMIT=64
 -D HARD_SERVER_LIMIT=256
 -D HTTPD_ROOT="/usr/local/apache"
 -D SUEXEC_BIN="/usr/local/apache/bin/suexec"
 -D DEFAULT_PIDLOG="logs/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard"
 -D DEFAULT_LOCKFILE="logs/httpd.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
 -D ACCESS_CONFIG_FILE="conf/access.conf"
 -D RESOURCE_CONFIG_FILE="conf/srm.conf"


Starting apache gives:
Code:
Starting Apache services: Processing config directory: /usr/local/apache/conf/vhosts/
 Processing config file: /usr/local/apache/conf/vhosts/<sitename>.conf
/usr/local/apache/bin/apachectl startssl: httpd could not be started


And running
Code:
/usr/local/apache/bin/httpd ; echo $?

tells me that the return code is 1.

Any ideas guys? This server *IS* a live server, and I have been working on trying to bring it back up for the last 3 hours.
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Wed Nov 15, 2006 6:14 pm    Post subject: Reply with quote

According to your output it looks like an SSL startup issue ... can you post your httpd.conf file and/or any related SSL configs?
Back to top
View user's profile Send private message
Aurisor
Guru
Guru


Joined: 20 Sep 2003
Posts: 361
Location: Boston MA

PostPosted: Wed Nov 15, 2006 8:28 pm    Post subject: Reply with quote

I'd bet this is a portage (i.e. busted dependencies) issue rather than a configuration issue.

It could be a broken openssh issue. Did you upgrade openssh and forget to revdep-rebuild?

Did you check /var/log/messages for error messages as well? I'd bet you'll find something interesting in there. The output of "dmesg" is occasionally helpful as well.

If you ever get desperate, you can use this little trick for checking dependencies:

Code:

emerge -ptev apache


That will show you all of apache's dependencies. You can:

Code:

emerge -1 foo


on anything that looks promising.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum