Konfiguracja serwerów, usług, itp.
K4liber
Posty: 14 Rejestracja: 17 lutego 2014, 22:50
Post
autor: K4liber » 10 lipca 2014, 16:05
Witam. Probuje zainstalowac lapma na debianie. Probowalem wszystko odinstalowywac, reinstalowac, googlowalem i nic. Mecze sie z tym bledem:
Kod: Zaznacz cały
Konfigurowanie pakietu mysql-server-5.5 (5.5.37-0+wheezy1) ...
[ ok ] Stopping MySQL database server: mysqld.
[FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: błąd przetwarzania mysql-server-5.5 (--configure):
podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
dpkg: problemy z zależnościami uniemożliwiają skonfigurowanie pakietu mysql-server:
mysql-server zależy od mysql-server-5.5; jednakże:
Pakiet mysql-server-5.5 nie jest jeszcze skonfigurowany.
dpkg: błąd przetwarzania mysql-server (--configure):
problemy z zależnościami - pozostawianie nieskonfigurowanego
Konfigurowanie pakietu libcurl3:amd64 (7.26.0-1+wheezy9) ...
Konfigurowanie pakietu php5-curl (5.4.4-14+deb7u12) ...
Creating config file /etc/php5/mods-available/curl.ini with new version
Konfigurowanie pakietu php5-gd (5.4.4-14+deb7u12) ...
Creating config file /etc/php5/mods-available/gd.ini with new version
Konfigurowanie pakietu libmcrypt4 (2.5.8-3.1) ...
Konfigurowanie pakietu php5-mcrypt (5.4.4-14+deb7u12) ...
Creating config file /etc/php5/mods-available/mcrypt.ini with new version
Przetwarzanie wyzwalaczy pakietu libapache2-mod-php5...
[ ok ] Reloading web server config: apache2.
Wystąpiły błędy podczas przetwarzania:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)
Prosze o pomoc!
Rafal_F
Moderator
Posty: 2350 Rejestracja: 29 sierpnia 2008, 16:45
Post
autor: Rafal_F » 10 lipca 2014, 16:38
Spróbuj wykonać:
i sprawdź logi.
K4liber
Posty: 14 Rejestracja: 17 lutego 2014, 22:50
Post
autor: K4liber » 10 lipca 2014, 17:09
/usr/bin/mysqld_safe --skip-syslog
Kod: Zaznacz cały
140710 17:03:46 mysqld_safe Logging to '/var/lib/mysql/debian.err'.
140710 17:03:46 mysqld_safe A mysqld process already exists
Zmienilem rep na stabilne, odinstalowalem, zainstalowalem i juz nie ma bledu, ale nadal nie dziala. Nic sie nie dzieje jak wejde na localhost.
Kod: Zaznacz cały
root@debian:/etc/mysql# service mysql start
[ ok ] Starting MySQL database server: mysqld already running.
root@debian:/etc/mysql# service apache2 start
[....] Starting web server: apache2httpd (pid 6434) already running
. ok
Jak sprawdzic logi? ( sorry )
Rafal_F
Moderator
Posty: 2350 Rejestracja: 29 sierpnia 2008, 16:45
Post
autor: Rafal_F » 10 lipca 2014, 17:15
Z info wynika, że wszystko działa. Co pokazuje:
K4liber
Posty: 14 Rejestracja: 17 lutego 2014, 22:50
Post
autor: K4liber » 10 lipca 2014, 17:26
Kod: Zaznacz cały
root@debian:/etc/mysql# netstat -anp | grep apache
tcp6 0 0 :::80 :::* LISTEN 6434/apache2
Rafal_F
Moderator
Posty: 2350 Rejestracja: 29 sierpnia 2008, 16:45
Post
autor: Rafal_F » 10 lipca 2014, 17:37
Apache działa, co się dzieje jak wpiszesz "127.0.0.1" w przeglądarce?
K4liber
Posty: 14 Rejestracja: 17 lutego 2014, 22:50
Post
autor: K4liber » 10 lipca 2014, 17:41
Connecting... The connection has timed out.
Rafal_F
Moderator
Posty: 2350 Rejestracja: 29 sierpnia 2008, 16:45
Post
autor: Rafal_F » 10 lipca 2014, 17:51
Sprawdź zawartości plików w katalogu /var/log/apache2.
Ustawiałeś coś w iptables, albo masz zainstalowany jakiś firewall?
K4liber
Posty: 14 Rejestracja: 17 lutego 2014, 22:50
Post
autor: K4liber » 10 lipca 2014, 18:01
Kod: Zaznacz cały
root@debian:/var/log/apache2# ls
access.log error.log other_vhosts_access.log
root@debian:/var/log/apache2# cat access.log
root@debian:/var/log/apache2# cat error.log
[Wed Jul 09 22:39:46 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Wed Jul 09 22:39:59 2014] [notice] caught SIGTERM, shutting down
[Wed Jul 09 22:40:00 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Wed Jul 09 23:53:57 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 11:30:37 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Thu Jul 10 11:48:39 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 11:48:45 2014] [notice] Apache/2.2.22 (Debian) configured -- resuming normal operations
[Thu Jul 10 11:49:23 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 11:49:24 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 12:34:53 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 12:36:33 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 12:50:46 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 12:50:47 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 13:11:26 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 13:11:28 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 13:25:10 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 13:25:11 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 13:26:59 2014] [notice] Graceful restart requested, doing restart
[Thu Jul 10 13:26:59 2014] [warn] (101)Network is unreachable: connect to listener on [::]:80
[Thu Jul 10 13:26:59 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Jul 10 13:26:59 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u11 configured -- resuming normal operations
[Thu Jul 10 13:30:04 2014] [notice] Graceful restart requested, doing restart
[Thu Jul 10 13:30:04 2014] [warn] (101)Network is unreachable: connect to listener on [::]:80
[Thu Jul 10 13:30:04 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Jul 10 13:30:04 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 13:30:09 2014] [notice] Graceful restart requested, doing restart
[Thu Jul 10 13:30:09 2014] [warn] (101)Network is unreachable: connect to listener on [::]:80
[Thu Jul 10 13:30:09 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Jul 10 13:30:09 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 13:31:25 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 13:31:26 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 15:06:34 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 15:06:35 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 15:10:54 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 15:10:55 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 15:14:06 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 15:14:07 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 15:55:11 2014] [notice] Graceful restart requested, doing restart
[Thu Jul 10 15:55:11 2014] [warn] (101)Network is unreachable: connect to listener on [::]:80
[Thu Jul 10 15:55:12 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 15:55:44 2014] [notice] Graceful restart requested, doing restart
[Thu Jul 10 15:55:44 2014] [warn] (101)Network is unreachable: connect to listener on [::]:80
[Thu Jul 10 15:55:44 2014] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu Jul 10 15:55:44 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 16:34:20 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 16:34:21 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 16:40:22 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 16:42:00 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
[Thu Jul 10 16:44:44 2014] [notice] caught SIGTERM, shutting down
[Thu Jul 10 16:44:45 2014] [notice] Apache/2.2.22 (Debian) PHP/5.4.4-14+deb7u12 configured -- resuming normal operations
root@debian:/var/log/apache2# cat other_vhosts_access.log
Nie ustawialem nic w itables, wylaczylem go i nadal nic.
pawkrol
Moderator
Posty: 939 Rejestracja: 03 kwietnia 2011, 10:25
Post
autor: pawkrol » 11 lipca 2014, 08:16
Spróbuj w /etc/apache2/ports.conf przestawić
Listen 80 na Listen 0.0.0.0:80