PHP4 and MySQL 3.23.33
| From: | Pål Arne Hoff | Date: | Thu, 08 Mar 2001 07:11:00 +0000 |
| Subject: | PHP4 and MySQL 3.23.33 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-2285@lists.php.net to get a copy of this message | ||
Hi.
I'm trying to install PHP4 and MySQL 3.23.33 on a Trusix 1.2 Linux system.
I've used MySQL-3.23.33-1.i386.rpm, MySQL-shared-3.23.33-1.i386.rpm,
MySQL-client-3.23.33-1.i386.rpm and MySQL-devel-3.23.33-1.i386.rpm from
www.mysql.com. I've downloaded PHP-4.0.4pl1.tar.gz from www.php.net and
compiled after a
./configure --with-mysql --with-apxs --with-config-file-path=/etc. I've made
/etc/php.ini by copying php.ini-dist.
Now PHP4 works fine, but something wrong happens when I try to connect to a
MySQL database. I've tried to setup phpMyAdmin (PHP-based application to
administer MySQL through a browser), but when pointing my browser to the
start page I only get this error message:
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/home/httpsd/html/phpMyAdmin/lib.inc.php on line 170
Error
ls -l /var/lib/mysql/mysql.sock gives:
srwxrwxrwx 1 mysql users 0 Mar 21 1997 /var/lib/mysql/mysql.sock=
What have I done wrong??
Paal Arne Hoff