View previous topic :: View next topic |
Author |
Message |
Skirmitch Apprentice
Joined: 15 Jun 2013 Posts: 207
|
Posted: Wed Jun 19, 2013 3:22 am Post subject: Apache * start-stop-daemon: failed to start `/usr/sbin/apach |
|
|
Hey there. I just did a clean emerge of Apache and, when i use start from init.d i get:
Code: | Artemisa vhosts.d # /etc/init.d/apache2 start
* Caching service dependencies ... [ ok ]
* Starting apache2 ...
* start-stop-daemon: failed to start `/usr/sbin/apache2'
|
These things could be usefull as well:
Code: | Artemisa vhosts.d # grep -r "Listen 80" /etc
/etc/apache2/vhosts.d/00_default_vhost.conf:Listen 80
Artemisa vhosts.d #
|
Code: | Artemisa vhosts.d # netstat -lnp |grep :80
Artemisa vhosts.d #
|
and maybe these one as well:
Code: | Artemisa vhosts.d # emerge -pv apache
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] www-servers/apache-2.2.24:2 USE="doc ssl -debug -ldap (-selinux) -static -suexec -threads" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias -asis -auth_digest -authn_dbd -cern_meta -charset_lite -dbd -dumpio -ident -imagemap -log_forensic -proxy -proxy_ajp -proxy_balancer -proxy_connect -proxy_ftp -proxy_http -proxy_scgi -reqtimeout -substitute -version" APACHE2_MPMS="-event -itk -peruser -prefork -worker" 0 kB
Total: 1 package (1 reinstall), Size of downloads: 0 kB
Artemisa vhosts.d #
|
Code: |
Artemisa vhosts.d # /usr/sbin/apache2
no listening sockets available, shutting down
Unable to open logs
Artemisa vhosts.d #
|
Dont know what else to try.... |
|
Back to top |
|
|
hdcg Tux's lil' helper
Joined: 07 Apr 2013 Posts: 120
|
Posted: Wed Jun 19, 2013 6:02 pm Post subject: |
|
|
Hi Skirmitch,
at least one issue is that you have not enabled any of the MPMs
Quote: | APACHE2_MPMS="-event -itk -peruser -prefork -worker" |
Exactly one is required. Also please check the log files in /var/log/apache and your system log for apache error messages indicating any other reason for failure.
Best Regards,
Holger |
|
Back to top |
|
|
calif Tux's lil' helper
Joined: 29 Nov 2009 Posts: 101
|
Posted: Mon Jul 08, 2013 12:55 pm Post subject: |
|
|
I've the same problem.
As I read somewhere, mpm-worker is set by default.
Confirmation:
Code: | * Selected default threaded MPM: worker |
Besides that I set APACHE2_MPMS="worker" and the problem still exists. |
|
Back to top |
|
|
asok19 n00b
Joined: 20 Jun 2013 Posts: 3
|
Posted: Tue Jan 14, 2014 7:16 pm Post subject: |
|
|
I have this same problem, and it seems to be with mod_perl. If I disable PERL in /etc/conf.d/apache2, there is no problem. If I enable it, the problem appears. It seems to be because mod_perl changes the /proc/<pid>/comm value from apache2 to /usr/sbin/apach (it is truncated to 16 bytes) and therefore start-stop-daemon loses track of the process.
Unfortunately, I have no idea yet why mod_perl does this or how to prevent it. |
|
Back to top |
|
|
asok19 n00b
Joined: 20 Jun 2013 Posts: 3
|
|
Back to top |
|
|
|