- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- MySQL, PHP, and Apache
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 02:05 AM
05-01-2005 02:05 AM
The mysql.sock it's looking for in /tmp is not there. mysqld is running as user mysql same as before.
The upgrade to C3 changed the Apache2 php.conf to load libphp4.so instead of libphp5.so That copy of libphp4.so was not compiled to play with MySQL. I commented out that line and inserted the one for libphp5.so.
With libphp4.so, I got a blank page, with libphp5.so I get the error message when trying to connect.
I need to figure out what puts the mysql.sock in place I think.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 05:47 AM
05-01-2005 05:47 AM
Re: MySQL, PHP, and Apache
http://www.experts-exchange.com/Databases/Mysql/Q_20828830.html
Look at the bottom after all the comercials.
And this might help too:
http://forums.devshed.com/showpost.php?p=971069&postcount=15
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 06:47 AM
05-01-2005 06:47 AM
Re: MySQL, PHP, and Apache
]# bin/mysqladmin create forum
bin/mysqladmin: connect to server at 'localhost' failed
error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'
Check that mysqld is running and that the socket: '/tmp/mysql.sock' exists!
[root@veb mysql]# ps -A | grep mysql
4401 pts/0 00:00:00 mysqld_safe
4434 pts/0 00:00:00 mysqld
4435 pts/0 00:00:00 mysqld
4436 pts/0 00:00:00 mysqld
4437 pts/0 00:00:00 mysqld
4438 pts/0 00:00:00 mysqld
4439 pts/0 00:00:00 mysqld
4440 pts/0 00:00:00 mysqld
4441 pts/0 00:00:00 mysqld
4442 pts/0 00:00:00 mysqld
4443 pts/0 00:00:00 mysqld
[root@veb mysql]# netstat -l | grep mysql
tcp 0 0 *:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 20413 /var/lib/mysql/mysql.sock
[root@veb mysql]#
mysql doesn't seem to be listening on /tmp/mysql.sock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 06:59 AM
05-01-2005 06:59 AM
SolutionDid you try to disable SELinux security for the httpd daemon?
(http://forums.mysql.com/read.php?11,9689,21483)
You also can try this:
http://sunsite.mff.cuni.cz/MIRRORS/ftp.mysql.com/doc/en/Problems_with_mysql.sock.html
It seems that your client and server are using different sockets to connect. I'm sure that if you'll follow the instruction in the second link, it will work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2005 10:15 AM
05-01-2005 10:15 AM