php-install | 2004032
Date: 03/30/04
- Next message: Kolie: "Re: [PHP-INSTALL] Trouble with install with apache"
- Previous message: eriksson <email protected>: "[PHP-INSTALL] Re: hi"
- In reply to: Neil Fryer: "[PHP-INSTALL] PHP+MySQL+OpenBSD 3.4"
- Next in thread: Neil Fryer: "RE: [PHP-INSTALL] PHP+MySQL+OpenBSD 3.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello Nail,
Php is looking for the sockets at /var/run/mysql/mysql.sock
check if is exists - you may have compiled mysql with scoket located at
other place.
Also double check that mysql is running :-)
Peter
----- Original Message -----
From: Neil Fryer
To: 'php-install <email protected>'
Sent: Tuesday, March 30, 2004 3:57 PM
Subject: [PHP-INSTALL] PHP+MySQL+OpenBSD 3.4
Hi All,
I'm pretty new to this and have spent the better part of last night, and
today Googling, and looking on the various web sites, and I am getting
nowhere with this.
Here's what I'm running:
OS: OpenBSD 3.4
PHP: 4.3.5
MySQL: 3.23.57
Apache: 1.3.28
I have got Apache up and running, this is the default Apache on OpenBSD, I
built MySQL from the ports collection and added the server end as a pkg.
PHP was configured with --with-apxs --with-mysql
I know that PHP is working on Apache, and I also know that MySQL works from
the command line.
But i am trying to test the connectivity between PHP and MySQL using an app
that I found on freshmeat, it's a little blog app, and well, here's the
error that I keep getting.
Warning: mysql_connect(): Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (62) in /htdocs/blog/diag.php on line 62
Couldnt connect to MySQL: 2002: Can't connect to local MySQL server through
socket '/var/run/mysql/mysql.sock' (62)
If anyone can please point me somewhere of use, it would be greatly
appreciated.
Thanks in advance
Neil Fryer
- Next message: Kolie: "Re: [PHP-INSTALL] Trouble with install with apache"
- Previous message: eriksson <email protected>: "[PHP-INSTALL] Re: hi"
- In reply to: Neil Fryer: "[PHP-INSTALL] PHP+MySQL+OpenBSD 3.4"
- Next in thread: Neil Fryer: "RE: [PHP-INSTALL] PHP+MySQL+OpenBSD 3.4"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

