You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Michelle Konzack <li...@tamay-dogan.net> on 2010/10/21 02:37:12 UTC

[users@httpd] Weird behaviour of Apache

Hello *,

I have reinstalled Debian/Lenny  and  apache  and  disabled  all  VHosts
except <server08> but now I get following Error:

----[ command 'invoke-rc.d apache2 start' ]-----------------------------
Restarting web server: apache2no listening sockets available, shutting down
Unable to open logs
 failed!
invoke-rc.d: initscript apache2, action "start" failed.
------------------------------------------------------------------------

1) Where could the Socket problem come from?
2) I have checked all directories and they have the right permission

----[ command 'apache2ctl configtest' ]---------------------------------
Syntax OK
------------------------------------------------------------------------

This sounds not very funny, because in general it is the same config  as
the the sever where <http://www.tamay-dogan.net/> is.

----[ '/VServer_08/APACHE_enabled/0_vserver08.tamay-dogan.net' ]--------
NameVirtualHost 192.168.0.208:80

<VirtualHost 192.168.0.208:80>
    ServerAdmin         hostmaster@tamay-dogan.net
    ServerName          vserver08.tamay-dogan.net

    DocumentRoot        /VServer_08/htdocs/
    <Directory />
        Options         FollowSymLinks Indexes
        AllowOverride   None
    </Directory>

    # debug, info, notice, warn, error, crit, alert, emerg.
    LogLevel            warn
    ErrorLog            /VServer_08/CONFIG_vserver08.tamay-dogan.net/log/apache/error.log

    LogFormat           "%{[%Y-%m-%d %H:%M:%S %z]}t %h [%V] %l %u \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost
    CustomLog           /VServer_08/CONFIG_vserver08.tamay-dogan.net/log/apache/access.log vhost

    ServerSignature     On
</VirtualHost>
------------------------------------------------------------------------

If I use -x in the apache2ctl Script I get:

----[ command 'apache2ctl start' ]--------------------------------------
+ ARGV=start
+ test -z ''
+ APACHE_ENVVARS=/etc/apache2/envvars
+ test -f /etc/apache2/envvars
+ . /etc/apache2/envvars
++ export APACHE_RUN_USER=www-data
++ APACHE_RUN_USER=www-data
++ export APACHE_RUN_GROUP=www-data
++ APACHE_RUN_GROUP=www-data
++ export APACHE_PID_FILE=/var/run/apache2.pid
++ APACHE_PID_FILE=/var/run/apache2.pid
+ HTTPD=/usr/sbin/apache2
+ LYNX='www-browser -dump'
+ STATUSURL=http://localhost:80/server-status
++ ulimit -H -n
+ ULIMIT_MAX_FILES='ulimit -S -n 1024'
+ '[' 'xulimit -S -n 1024' '!=' x ']'
+ ulimit -S -n 1024
+ ERROR=0
+ '[' xstart = x ']'
+ '[' xstart = xusage ']'
+ '[' xstart = x--help ']'
+ case $ARGV in
+ mkdir -p /var/run/apache2
+ install -d -o www-data /var/lock/apache2
+ rm -f '/var/run/apache2/*ssl_scache*'
+ /usr/sbin/apache2 -k start
no listening sockets available, shutting down
Unable to open logs
+ ERROR=1
+ exit 1
------------------------------------------------------------------------

Here is the config (lines with # at the beginning striped)

----[ '/etc/apache2/apache2.conf' ]-------------------------------------
ServerRoot "/etc/apache2"

LockFile /var/lock/apache2/accept.lock

PidFile ${APACHE_PID_FILE}

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15


<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0
</IfModule>

<IfModule mpm_worker_module>
    StartServers          2
    MaxClients          150
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0
</IfModule>

User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}


AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

DefaultType text/plain

HostnameLookups Off

ErrorLog /var/log/apache2/error.log

LogLevel warn

Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

Include /etc/apache2/httpd.conf

Include /etc/apache2/ports.conf

LogFormat "%v:%p %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

CustomLog /var/log/apache2/other_vhosts_access.log vhost_combined

Include /etc/apache2/conf.d/

Include /VServer_08/APACHE_enabled/
------------------------------------------------------------------------

----[ '/etc/apache2/envvars' ]------------------------------------------
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
export APACHE_PID_FILE=/var/run/apache2.pid
------------------------------------------------------------------------

----[ '/etc/apache2/ports.conf' ]---------------------------------------
<IfModule mod_ssl.c>
    Listen 443
</IfModule>
------------------------------------------------------------------------

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
Linux-User #280138 with the Linux Counter, http://counter.li.org/

Re: [users@httpd] Weird behaviour of Apache

Posted by Eric Covener <co...@gmail.com>.
> It states that you do not have any logs where you have them configured.
>  Please make sure you have the logs in the following

That part of the error message is a red herring.


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Weird behaviour of Apache

Posted by Daniel Reinhardt <cr...@cryptodan.net>.
-----Original Message----- 
From: Michelle Konzack
Sent: 21 October, 2010 0:37
To: Apache EN
Subject: [users@httpd] Weird behaviour of Apache

//
Restarting web server: apache2no listening sockets available, shutting down
Unable to open logs
failed!
invoke-rc.d: initscript apache2, action "start" failed.

LogLevel            warn
ErrorLog 
/VServer_08/CONFIG_vserver08.tamay-dogan.net/log/apache/error.log

LogFormat           "%{[%Y-%m-%d %H:%M:%S %z]}t %h [%V] %l %u \"%r\" %>s %b 
\"%{Referer}i\" \"%{User-Agent}i\"" vhost
CustomLog 
/VServer_08/CONFIG_vserver08.tamay-dogan.net/log/apache/access.log vhost
//

It states that you do not have any logs where you have them configured.  Please 
make sure you have the logs in the following

Thanks,
Daniel



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Weird behaviour of Apache

Posted by Michelle Konzack <li...@tamay-dogan.net>.
Hello Eric Covener,

Am 2010-10-20 21:16:04, hacktest Du folgendes herunter:
> > Restarting web server: apache2no listening sockets available, shutting down
> > <IfModule mod_ssl.c>
> >    Listen 443
> > </IfModule>
> You need to define at least 1 Listen directive. This is the only one
> in your post, and it's obviously not part of your config due to
> absence of mod_ssl.

It seems the "Listen 80" was accidently deleted from  the  template  and
caused the problem on all 14 newly installed machines...  :-/

Now all VServers and VHosts are working.

Thanks, Greetings and nice Day/Evening
    Michelle Konzack

-- 
##################### Debian GNU/Linux Consultant ######################
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL       itsystems@tdnet UG (limited liability)
Owner Michelle Konzack            Owner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz                 Kinzigstraße 17
67100 Strasbourg/France           77694 Kehl/Germany
Tel: +33-6-61925193 mobil         Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

<http://www.itsystems.tamay-dogan.net/>  <http://www.flexray4linux.org/>
<http://www.debian.tamay-dogan.net/>         <http://www.can4linux.org/>

Jabber linux4michelle@jabber.ccc.de
ICQ    #328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/

Re: [users@httpd] Weird behaviour of Apache

Posted by Eric Covener <co...@gmail.com>.
> Restarting web server: apache2no listening sockets available, shutting down

> <IfModule mod_ssl.c>
>    Listen 443
> </IfModule>

You need to define at least 1 Listen directive. This is the only one
in your post, and it's obviously not part of your config due to
absence of mod_ssl.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org