mám u vás virtuální server s Apache serverem.
Chtěl jsem nastavit virtuální servery a měnil jsem nastavení hosts a httpd.conf. Server ale přestal fungovat a nefunguje ani když jsem změnil nastavení zpátky, zkoušel restartovat Apache i server.
Hledal jsem na Internetu, tento problém byl většinou způsobený jinou službou běžící na portu 80, já však žádnou takovou nenašel.
Je možné, že je to způsobeno aktualizacemi, byl to nejspíš první restart Apache po apt-get upgrade.
Web samozřejmě nefunguje.
Výpisy:
Kód: Vybrat vše
localhost:/etc/apache2# apache2ctl graceful
httpd not running, trying to start
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Action 'graceful' failed.
The Apache error log may have more information.
Kód: Vybrat vše
localhost:/etc/apache2# apache2ctl status
Looking up localhost
Making HTTP connection to localhost
Alert!: Unable to connect to remote host.
lynx: Can't access startfile http://localhost/server-status
'www-browser -dump http://localhost:80/server-status' failed.
Maybe you need to install a package providing www-browser or you
need to adjust the APACHE_LYNX variable in /etc/apache2/envvars
localhost:/etc/apache2#
Kód: Vybrat vše
localhost:/etc/apache2# apache2ctl configtest
Syntax OK
localhost:/etc/apache2#
Kód: Vybrat vše
localhost:/etc/apache2# netstat | grep :80
localhost:/etc/apache2# netstat | grep http
localhost:/etc/apache2#
Kód: Vybrat vše
localhost:/etc/apache2# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
77.93.202.125 jarysnet
Kód: Vybrat vše
localhost:/etc/apache2# cat /etc/apache2/httpd.conf
# Ensure that Apache listens on port 80
Listen 80
# Listen for virtual host requests on all IP addresses
#NameVirtualHost *:80
Kód: Vybrat vše
localhost:/etc/apache2# cat /var/log/apache2/error.log
[...]
[Fri Jan 04 22:25:18 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze3 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 04 22:26:42 2013] [notice] Graceful restart requested, doing restart
[Fri Jan 04 22:26:42 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs