Hallo,
habe bereits vormals Apache2, mysql und PHP installiert gehabt. Dann habe ich allerdings die Pakete wieder vom System entfernt. Nun wollte ich doch wieder lokal einen Webserver als Entwicklungssystem aufsetzen. Allerdings gelingt es mir nicht mehr ☹
Der Mysql-Server in Version 4.0 will nicht starten und mein 2. Problem ist, dass der Apache PHP-Dateien nicht interpretieren will.
Zuvor hatte ich mysql in Version 4.1 installiert gehabt.
Komme einfach nicht weiter und muss deswegen immer mein Fedora booten, wenn ich was an einer Webseite machen will. 😢
Installiert sind die folgenden Pakete:
apt-get install apache2 apache2-common apache2-doc
apt-get install libapache2-mod-php4 php4
apt-get install mysql-server libapache2-mod -auth-mysql php4-mysql
Krieg es einfach nicht hin und
apt-get install libapache2-mod-php4 php4
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... FertigDie folgenden zusätzlichen Pakete werden installiert:
apache2-mpm-prefork php4-common
Vorgeschlagene Pakete:
php4-pear
Die folgenden Pakete werden ENTFERNT:
apache2-mpm-worker
Die folgenden NEUEN Pakete werden installiert:
apache2-mpm-prefork libapache2-mod-php4 php4 php4-common
0 aktualisiert, 4 neu installiert, 1 zu entfernen und 0 nicht aktualisiert.
Es müssen noch 1759kB von 1956kB Archiven geholt werden.
Nach dem Auspacken werden 3576kB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? J
Hole:1 http://de.archive.ubuntu.com hoary/main php4-common 4:4.3.10-10ubuntu4 [1 67kB]
Hole:2 http://de.archive.ubuntu.com hoary/main libapache2-mod-php4 4:4.3.10-10ub untu4 [1591kB]
Hole:3 http://de.archive.ubuntu.com hoary/main php4 4:4.3.10-10ubuntu4 [1122B]
Es wurden 1759kB in 6s geholt (276kB/s)Preconfiguring packages ...
dpkg: apache2-mpm-worker: Abhängigkeitsproblem, aber lösche es auf Anfrage denno ch:
apache2 hängt ab von apache2-mpm-worker (= 2.0.53-5ubuntu5.1) | apache2-mpm-pre fork (= 2.0.53-5ubuntu5.1) | apache2-mpm-perchild (= 2.0.53-5ubuntu5.1); aber:
Paket apache2-mpm-worker bereitstellt, soll gelöscht werden.
Paket apache2-mpm-prefork bereitstellt, ist nicht installiert.
Paket apache2-mpm-perchild bereitstellt, ist nicht installiert.
(Lese Datenbank ... 86476 Dateien und Verzeichnisse sind derzeit installiert.)
Entferne apache2-mpm-worker ...
Stopping web server (Apache2)... [ ok ]
Wähle vormals abgewähltes Paket apache2-mpm-prefork.
(Lese Datenbank ... 86472 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke apache2-mpm-prefork (aus .../apache2-mpm-prefork_2.0.53-5ubuntu5.1_i386 .deb) ...
Wähle vormals abgewähltes Paket php4-common.
Entpacke php4-common (aus .../php4-common_4%3a4.3.10-10ubuntu4_i386.deb) ...
Wähle vormals abgewähltes Paket libapache2-mod-php4.
Entpacke libapache2-mod-php4 (aus .../libapache2-mod-php4_4%3a4.3.10-10ubuntu4_i 386.deb) ...
Wähle vormals abgewähltes Paket php4.
Entpacke php4 (aus .../php4_4%3a4.3.10-10ubuntu4_all.deb) ...
Richte apache2-mpm-prefork ein (2.0.53-5ubuntu5.1) ...
Starting web server (Apache2)... [ ok ]
Richte php4-common ein (4.3.10-10ubuntu4) ...
Richte libapache2-mod-php4 ein (4.3.10-10ubuntu4) ...Richte php4 ein (4.3.10-10ubuntu4) ...
und
root@jack:/media/temp/var/www/html # apt-get install mysql-server libapache2-mod -auth-mysql php4-mysql
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut... Fertig
Die folgenden zusätzlichen Pakete werden installiert:
mysql-client php4-universe-common
Vorgeschlagene Pakete:
mysql-doc
Die folgenden NEUEN Pakete werden installiert:
libapache2-mod-auth-mysql mysql-client mysql-server php4-mysql
php4-universe-common
0 aktualisiert, 5 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
Es müssen 4109kB Archive geholt werden.
Nach dem Auspacken werden 10,1MB Plattenplatz zusätzlich benutzt.
Möchten Sie fortfahren [J/n]? J
Hole:1 http://de.archive.ubuntu.com hoary/main libapache2-mod-auth-mysql 4.3.9-1 ubuntu1 [21,6kB]
Hole:2 http://de.archive.ubuntu.com hoary/main mysql-client 4.0.23-3ubuntu2 [404 kB]
Hole:3 http://de.archive.ubuntu.com hoary/main mysql-server 4.0.23-3ubuntu2 [353 7kB]
Hole:4 http://de.archive.ubuntu.com hoary/universe php4-universe-common 4:4.3.10 -10ubuntu3 [124kB]
Hole:5 http://de.archive.ubuntu.com hoary/universe php4-mysql 4:4.3.10-10ubuntu3 [21,2kB]
Es wurden 4109kB in 12s geholt (333kB/s)Preconfiguring packages ...
Wähle vormals abgewähltes Paket libapache2-mod-auth-mysql.
(Lese Datenbank ... 86503 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke libapache2-mod-auth-mysql (aus .../libapache2-mod-auth-mysql_4.3.9-1ubu ntu1_i386.deb) ...
Wähle vormals abgewähltes Paket mysql-client.
Entpacke mysql-client (aus .../mysql-client_4.0.23-3ubuntu2_i386.deb) ...
Wähle vormals abgewähltes Paket mysql-server.
Entpacke mysql-server (aus .../mysql-server_4.0.23-3ubuntu2_i386.deb) ...
Wähle vormals abgewähltes Paket php4-universe-common.
Entpacke php4-universe-common (aus .../php4-universe-common_4%3a4.3.10-10ubuntu3 _i386.deb) ...
Wähle vormals abgewähltes Paket php4-mysql.
Entpacke php4-mysql (aus .../php4-mysql_4%3a4.3.10-10ubuntu3_i386.deb) ...
Richte libapache2-mod-auth-mysql ein (4.3.9-1ubuntu1) ...
Richte mysql-client ein (4.0.23-3ubuntu2) ...
Richte mysql-server ein (4.0.23-3ubuntu2) ...
Installiere neue Version der Konfigurationsdatei /etc/init.d/mysql ...
Installiere neue Version der Konfigurationsdatei /etc/logrotate.d/mysql-server . ..
Installiere neue Version der Konfigurationsdatei /etc/mysql/debian-start ...
Installiere neue Version der Konfigurationsdatei /etc/mysql/debian-log-rotate.co nf ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld...failed.
Please take a look at the syslog.Richte php4-universe-common ein (4.3.10-10ubuntu3) ...
Richte php4-mysql ein (4.3.10-10ubuntu3) ...
Auszug aus der /var/log/syslog
May 26 15:28:53 localhost mysqld_safe[8513]: Installing all prepared tables
May 26 15:28:53 localhost mysqld_safe[8513]: 050526 15:28:53 /usr/sbin/mysqld: Shutdown Complete
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8513]: PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
May 26 15:28:53 localhost mysqld_safe[8513]: To do so, start the server, then issue the following commands:
May 26 15:28:53 localhost mysqld_safe[8513]: /usr/bin/mysqladmin -u root password 'new-password'
May 26 15:28:53 localhost mysqld_safe[8513]: /usr/bin/mysqladmin -u root -h jack password 'new-password'
May 26 15:28:53 localhost mysqld_safe[8513]: See the manual for more instructions.
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8513]: NOTE: If you are upgrading from a MySQL ⇐ 3.22.10 you should run
May 26 15:28:53 localhost mysqld_safe[8513]: the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
May 26 15:28:53 localhost mysqld_safe[8513]: able to use the new GRANT command!
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8513]: Please report any problems with the /usr/bin/mysqlbug script!
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8513]: The latest information about MySQL is available on the web at
May 26 15:28:53 localhost mysqld_safe[8513]: http://www.mysql.com
May 26 15:28:53 localhost mysqld_safe[8513]: Support MySQL by buying support/licenses at https://order.mysql.com
May 26 15:28:53 localhost mysqld_safe[8513]:
May 26 15:28:53 localhost mysqld_safe[8531]: 050526 15:28:53 /usr/sbin/mysqld: Can't open file: 'user.MYI'. (errno: 142)
May 26 15:28:53 localhost mysqld_safe[8531]: ERROR: 1105 File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
May 26 15:28:53 localhost mysqld_safe[8531]: 050526 15:28:53 /usr/sbin/mysqld: Shutdown Complete
May 26 15:28:53 localhost mysqld_safe[8531]:
May 26 15:28:53 localhost mysqld_safe[8537]: 050526 15:28:53 /usr/sbin/mysqld: Can't open file: 'user.MYI'. (errno: 142)
May 26 15:28:53 localhost mysqld_safe[8537]: ERROR: 1105 File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
May 26 15:28:53 localhost mysqld_safe[8537]: 050526 15:28:53 /usr/sbin/mysqld: Shutdown Complete
May 26 15:28:53 localhost mysqld_safe[8537]:
May 26 15:28:53 localhost mysqld_safe[8600]: started
May 26 15:28:53 localhost mysqld[8604]: 050526 15:28:53 /usr/sbin/mysqld: Can't open file: 'host.MYI'. (errno: 142)
May 26 15:28:53 localhost mysqld[8604]: 050526 15:28:53 Fatal error: Can't open privilege tables: File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
May 26 15:28:53 localhost mysqld[8604]: 050526 15:28:53 Aborting
May 26 15:28:53 localhost mysqld[8604]:
May 26 15:28:53 localhost mysqld[8604]: 050526 15:28:53 /usr/sbin/mysqld: Shutdown Complete
May 26 15:28:53 localhost mysqld[8604]:
May 26 15:28:53 localhost mysqld_safe[8606]: ended
May 26 15:28:59 localhost /etc/init.d/mysql[8648]: 0 processes alive and '/usr/bin/mysqladmin --defaults-extra-file=/etc/mysql/debian.cnf ping' resulted in
May 26 15:28:59 localhost /etc/init.d/mysql[8648]: ^G/usr/bin/mysqladmin: connect to server at 'localhost' failed
May 26 15:28:59 localhost /etc/init.d/mysql[8648]: error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
May 26 15:28:59 localhost /etc/init.d/mysql[8648]: Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
May 26 15:28:59 localhost /etc/init.d/mysql[8648]: