php4 + mysql +redhat7 = Problem

Andrei Gologan agologan@gmx.mis.de
Thu, 14 Dec 2000 10:46:20 +0100


Hi,

I have this wierd Problem:
I have Redhat7 with
apache-1.3.12-25
php-imap-4.0.1pl2-9
php-mysql-4.0.1pl2-9
php-4.0.1pl2-9
mod_php-4.0.1pl2-9
mysql-devel-3.23.22-6
mysql-3.23.22-6
mysql-server-3.23.22-6
all of them are installen from RPM (I tried compiling them, but the same
happends)

well mysql works, at the console I can log in and do queries, etc.
php also works, by itself.
But with php I canīt connect it says:  "Warning: Can't connect to local
MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in
db_mysql.inc on line 73"

you can see it at:
http://www.gsc-net.de/horde/test.php3
I also installed the test code from the FAQ, but the same:
http://www.gsc-net.de/horde/dbtest.php3

database, user, host, and password are right, I can create the imp database
without problems, I can connect to it from the console.
mysql.sock itīs there

If I use the dbpasswd.sh script - it works ! here from the log file (mysqld
just restartet):

"/usr/libexec/mysqld, Version: 3.23.22-beta-log, started with:
Tcp port: 3306  Unix socket: /var/lib/mysql/mysql.sock
Time                 Id Command    Argument
001214 10:45:38       1 Connect    hordemgr@localhost on
                      1 Quit
001214 10:46:04       2 Connect    hordemgr@localhost on
                      2 Query      set sql_log_off=1
                      2 Query      set
password='132e357203ff8180',sql_log_off=0
                      2 Quit
"

I have another running installation of imp on redhat 6.1 with the older
rpms, and everything works out

Does anybody have a working system ?
with other versions on redhat 7  ?

Any help would be greatly apreciated

Thank you

Andrei Golgoan