Autor Téma: po upgrade nenabehne apache2  (Přečteno 3028 krát)

Offline romanh2

  • Nováček
  • *
  • Příspěvků: 1
    • Zobrazit profil
po upgrade nenabehne apache2
« kdy: 28. 08. 2010, 23:24:49 »
Zdraví, nemá prosím niekto skúsenosť s touto chybou?

Mám server na vlastné projekty, na ňom nainštalovaný Debian Lenny podľa návodu:
http://www.howtoforge.com/perfect-server-debian-lenny-ispconfig3

Všetko funguje dobre, ale keď dôjde k upgrade php5 tak prestane fungovať Apache2


upgrade: Debian Lenny8

cabextract a program to extract Microsoft Cabinet files New version 1.2-3+lenny1
clamav-data clamav data files New version 20100808.045700.11514
libapache2-mod-php5 server-side, HTML-embedded scripting language (Apache 2 module) New version 5.2.6.dfsg.1-1+lenny9
php-pear PEAR - PHP Extension and Application Repository New version 5.2.6.dfsg.1-1+lenny9
php5 server-side, HTML-embedded scripting language (metapackage) New version 5.2.6.dfsg.1-1+lenny9
php5-cgi server-side, HTML-embedded scripting language (CGI binary) New version 5.2.6.dfsg.1-1+lenny9
php5-cli command-line interpreter for the php5 scripting language New version 5.2.6.dfsg.1-1+lenny9
php5-common Common files for packages built from the php5 source New version 5.2.6.dfsg.1-1+lenny9
php5-dev Files for PHP5 module development New version 5.2.6.dfsg.1-1+lenny9
php5-gd GD module for php5 New version 5.2.6.dfsg.1-1+lenny9
php5-imap IMAP module for php5 New version 5.2.6.dfsg.1-1+lenny9
php5-mcrypt MCrypt module for php5 New version 5.2.6.dfsg.1-1+lenny9
php5-mysql MySQL module for php5 New version 5.2.6.dfsg.1-1+lenny9upgrade: Debian Lenny8


Po aktualizácii vyhodí túto chybu:
Starting web server (apache2)...(98)Address already in use: make_sock: could not bind to address [::]:80
(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
failed!


Výpis z : netstat -tap

server42:/home/romanh2# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 localhost.localdo:10024 *:* LISTEN 2205/amavisd (maste
tcp 0 0 localhost.localdo:10025 *:* LISTEN 9888/master
tcp 0 0 *:38953 *:* LISTEN 1970/rpc.statd
tcp 0 0 *:mysql *:* LISTEN 2265/mysqld
tcp 0 0 localhost.localdo:spamd *:* LISTEN 2338/spamd.pid
tcp 0 0 *:sunrpc *:* LISTEN 1959/portmap
tcp 0 0 *:webmin *:* LISTEN 10983/perl
tcp 0 0 *:ftp *:* LISTEN 4289/pure-ftpd (SER
tcp 0 0 server42.server-:domain *:* LISTEN 4095/mydns
tcp 0 0 localhost.locald:domain *:* LISTEN 4095/mydns
tcp 0 0 *:ssh *:* LISTEN 2177/sshd
tcp 0 0 localhost.localdoma:727 *:* LISTEN 4367/famd
tcp 0 0 *:smtp *:* LISTEN 9888/master
tcp 0 148 server42.server-ren:ssh static-78-141-120:60053 ESTABLISHED 4588/sshd: romanh2
tcp 0 0 localhost.localdo:41482 localhost.localdo:mysql ESTABLISHED 2280/amavisd (ch7-a
tcp 0 0 localhost.localdo:mysql localhost.localdo:41482 ESTABLISHED 2265/mysqld
tcp6 0 0 [::]:imaps [::]:* LISTEN 3573/couriertcpd
tcp6 0 0 [::]op3s [::]:* LISTEN 3598/couriertcpd
tcp6 0 0 [::]op3 [::]:* LISTEN 3583/couriertcpd
tcp6 0 0 [::]:imap2 [::]:* LISTEN 3550/couriertcpd
tcp6 0 0 [::]:http-alt [::]:* LISTEN 5579/apache2
tcp6 0 0 [::]:www [::]:* LISTEN 5579/apache2
tcp6 0 0 [::]:tproxy [::]:* LISTEN 5579/apache2
tcp6 0 0 [::]:ftp [::]:* LISTEN 4289/pure-ftpd (SER
tcp6 0 0 localhost:domain [::]:* LISTEN 4095/mydns
tcp6 0 0 [::]:ssh [::]:* LISTEN 2177/sshd
tcp6 0 0 [::]:https [::]:* LISTEN 5579/apache2
tcp6 485 0 server42.server-ren:www b3090877.crawl.ya:38015 ESTABLISHED -
tcp6 176 0 server42.server-ren:www jondan.jyxo.com:59685 CLOSE_WAIT -
tcp6 486 0 server42.server-ren:www b3090877.crawl.ya:50405 CLOSE_WAIT -
tcp6 486 0 server42.server-ren:www b3090877.crawl.ya:55325 CLOSE_WAIT -
tcp6 176 0 server42.server-ren:www jondan.jyxo.com:33642 CLOSE_WAIT -
tcp6 486 0 server42.server-ren:www b3090877.crawl.ya:57683 CLOSE_WAIT -
tcp6 486 0 server42.server-ren:www b3090877.crawl.ya:52859 CLOSE_WAIT -


na porte 80 je:
server42:/home/romanh2# netstat -lnp | grep '80'
tcp6 0 0 :::8080 :::* LISTEN 5579/apache2
tcp6 0 0 :::80 :::* LISTEN 5579/apache2
tcp6 0 0 :::8081 :::* LISTEN 5579/apache2
udp6 0 0 fe80::24f:4eff:fe62:123 :::* 4397/ntpd
unix 2 [ ACC ] STREAM LISTENING 28097 9888/master public/cleanup
unix 2 [ ACC ] STREAM LISTENING 28180 9888/master private/scache

Autor ispconfig3 na fore radí: netstat -tap
to find out the PID of the process that runs on port 80, and then kill that process as follows:
kill -9 PID


Lenze nepomaha to Apache stale nejde nabehnúť:

server42:/home/romanh2# netstat -lnp | grep '80'
tcp6 0 0 :::8080 :::* LISTEN 5579/apache2
tcp6 0 0 :::80 :::* LISTEN 5579/apache2
tcp6 0 0 :::8081 :::* LISTEN 5579/apache2
udp6 0 0 fe80::24f:4eff:fe62:123 :::* 4397/ntpd
unix 2 [ ACC ] STREAM LISTENING 28097 9888/master public/cleanup
unix 2 [ ACC ] STREAM LISTENING 28180 9888/master private/scache
server42:/home/romanh2#
server42:/home/romanh2# kill -9 5579
server42:/home/romanh2# /etc/init.d/apache2 start
Starting web server: apache2.

server42:/home/romanh2# /etc/init.d/apache2 restart
Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80
(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
failed!
----------------------------------------------

Nerozumiem kde robim chybu.
« Poslední změna: 28. 08. 2010, 23:27:38 od romanh2 »