RE: [PHP-INST] PHP4 and MySQL 3.23.33

From: Date: Fri, 09 Mar 2001 00:59:18 +0000
Subject: RE: [PHP-INST] PHP4 and MySQL 3.23.33
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-2301@lists.php.net to get a copy of this message
Thanks a lot! The directory had wrong permissions set. I had only looked at the permissions on the file. Now everything works great! Paal Arne Hoff > > > you should be able to find the mysql.sock file somewhere on your machine > (usually in /usr/local/mysql/mysql.sock), make sure the permissions are > set as 755 for both the mysql directory and the mysql.sock file, that > fixed a similar problem on my server. > > > 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 > > > > > > -- > > PHP Install Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > > For additional commands, e-mail: php-install-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > >

« previous php.install (#2301) next »