Apache startet nach MySQL-Update nicht mehr

Apache, Lighttpd, nginx, Cherokee
Post Reply
jpva
Posts: 9
Joined: 2004-05-20 12:47
 

Apache startet nach MySQL-Update nicht mehr

Post by jpva »

Hallo,

ich habe heute meine MySQL-Version von 3.23.58 auf 4.0.20 geupdated. Ich habe die offiziellen RPMs mit rpm --upgrade aktualisiert (server, client, shared-compat). Lief soweit alles prima. Allerdings hatte ich PHP 4.3.6 noch mit der alten 3.23.58 Client-Library kompilliert.
Ich dachte mir jetzt, ich kann PHP einfach neu kompillieren, nachdem ich die MySQL-Library aktualisiert habe und dann ganz normal mit make install installieren und Apache neustarten. Das hab ich dann auch gemacht - ohne irgendeine Fehlermeldung, auch beim starten von Apache kam kein Fehler. Irgendwie wird Apache aber nicht gestartet bzw. sofort wieder beendet. Ich habe nirgendwo eine Fehlermeldung gefunden (Apache-errorlog, PHP-errorlog, messages). :?

Folgende MySQL-RPMs hatte ich installiert:

Code: Select all

# rpm -q -a | grep MySQL
MySQL-server-4.0.20-0
MySQL-shared-compat-4.0.18-0
MySQL-client-4.0.20-0
MySQL-devel-4.0.20-0
Damit der Webserver wenigstens wieder startet, habe ich jetzt wieder die alte shared installiert (MySQL-shared-3.23.58-1), PHP neu kompilliert und installiert - jetzt läuft er wieder. Aber ich hätte in PHP eben gerne die 4.0-Client-Library. Was mache ich da falsch und wieso geht das nicht? :(
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by Joe User »

MySQL-shared-compat-4.0.18-0 gegen MySQL-shared-4.0.18-0 austauschen...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
jpva
Posts: 9
Joined: 2004-05-20 12:47
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by jpva »

Joe User wrote:MySQL-shared-compat-4.0.18-0 gegen MySQL-shared-4.0.18-0 austauschen...
Das hatte ich auch schon versucht, allerdings hab ich noch Pakete, die die 3.23-kompatible Library brauchen:

Code: Select all

# rpm --erase MySQL-shared-3.23.58-1
error: removing these packages would break dependencies:
        libmysqlclient.so.10 is needed by perl-Msql-Mysql-modules-1.2216-28
        libmysqlclient.so.10 is needed by apache-contrib-1.0.9-385
# rpm --upgrade MySQL-shared-compat-4.0.18-0.i386.rpm
/sbin/ldconfig: /usr/lib/libpcreposix.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libpcre.so.0 is not a symbolic link

/sbin/ldconfig: /usr/lib/libexpat.so.1 is not a symbolic link

p15105215:/tmp/mysql4 # rpm -q -a | grep MySQL
MySQL-server-4.0.20-0
MySQL-shared-compat-4.0.18-0
MySQL-client-4.0.20-0
MySQL-devel-4.0.20-0
# rpm --erase MySQL-shared-compat-4.0.18-0
error: removing these packages would break dependencies:
        libmysqlclient.so.10 is needed by perl-Msql-Mysql-modules-1.2216-28
        libmysqlclient.so.10 is needed by apache-contrib-1.0.9-385
(Nur um zu zeigen, dass beim entfernen der 4.0-shared-compat der gleiche Fehler wie bei der 3.23-shared kommt)
Für die gibt's wohl aber keine Updates für SuSE 7.2 und wenn ich die shared mit --nodeps lösche, hab ich vermutlich noch mehr Probleme, oder? :(
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by Joe User »

Du kannst auch beide Pakete gleichzeitig installieren.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
jpva
Posts: 9
Joined: 2004-05-20 12:47
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by jpva »

Joe User wrote:Du kannst auch beide Pakete gleichzeitig installieren.
Wie geht das?
Wenn ich das probier bekomm ich folgenden Fehler:

Code: Select all

# rpm --install MySQL-shared-4.0.20-0.i386.rpm
file /usr/lib/libmysqlclient.so.12.0.0 from install of MySQL-shared-4.0.20-0 conflicts with file from package MySQL-shared-compat-4.0.18-0
file /usr/lib/libmysqlclient_r.so.12.0.0 from install of MySQL-shared-4.0.20-0 conflicts with file from package MySQL-shared-compat-4.0.18-0
oder anders herum:

Code: Select all

# rpm --install MySQL-shared-compat-4.0.18-0.i386.rpm
file /usr/lib/libmysqlclient.so.12.0.0 from install of MySQL-shared-compat-4.0.18-0 conflicts with file from package MySQL-shared-4.0.20-0
file /usr/lib/libmysqlclient_r.so.12.0.0 from install of MySQL-shared-compat-4.0.18-0 conflicts with file from package MySQL-shared-4.0.20-0
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by oxygen »

Also shared-compat ist schon richtig, das Packet enthält auch die 3.23 Libarys.
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by Joe User »

Code: Select all

rpm -e --force --nodeps MySQL-shared-compat
rpm -Uvh MySQL*4.0.20-0.i386.rpm
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
jpva
Posts: 9
Joined: 2004-05-20 12:47
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by jpva »

Habs jetzt wie folgt probiert:

Code: Select all

# rpm -q -a | grep MySQL
MySQL-shared-4.0.20-0
MySQL-server-4.0.20-0
MySQL-client-4.0.20-0
MySQL-devel-4.0.20-0

# rcapache restart
Shutting down httpd                                                                                        done
Starting httpd [ PERL PHP4 SSL ]

Syntax error on line 6 of /etc/httpd/suse_loadmodule.conf:
Cannot load /usr/lib/apache/mod_auth_mysql.so into server: libmysqlclient.so.10: cannot load shared object file: No such file or directory                                                                                       unused

# rpm -Uvh MySQL-shared-compat-4.0.18-0.i386.rpm
MySQL-shared-compat         ##################################################
/sbin/ldconfig: /usr/lib/libpcreposix.so.0 is not a symbolic link
/sbin/ldconfig: /usr/lib/libpcre.so.0 is not a symbolic link
/sbin/ldconfig: /usr/lib/libexpat.so.1 is not a symbolic link

# rpm -q -a | grep MySQL
MySQL-server-4.0.20-0
MySQL-shared-compat-4.0.18-0
MySQL-client-4.0.20-0
MySQL-devel-4.0.20-0
Wenn ich dann direkt Apache neustarte, gehts. Wenn ich aber PHP neu kompilliere und dann Apache starten will, gehts immer noch nicht... :(
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by oxygen »

Benutzt du überhaupt mod_mysql_auth? Falls ja bau es einfach neu.
jpva
Posts: 9
Joined: 2004-05-20 12:47
 

Re: Apache startet nach MySQL-Update nicht mehr

Post by jpva »

øxygen wrote:Benutzt du überhaupt mod_mysql_auth? Falls ja bau es einfach neu.
Nein, benutze ich nicht. Habe jetzt apache-contrib und perl-Msql-Mysql-modules deinstalliert, weil ich das überhaupt nie gebraucht habe, dann die 4.0-shared-compat installiert, PHP neu kompilliert und jetzt läufts.
Vielen Dank für eure Hilfe! :)
Post Reply