You are not logged in.
After an update over the weekend apache+php+mysql+rails have stopped working (might not be when the version of mysql was relesed, i haven't updated this server in ages for this very reason).
After a couple of hours work ive got apache working again and php seems fine as does rails but both php and rails cant see mysql. Wordpress seems to think ive not got the php mysql extension installed.... which i do the config files havent been overwritten by pacman so it should still be working.
mysql is running and restarts fine (/etc/rc.d/mysqld restart) but nothing can see it.
Rails says:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
so has it been moved? or is it a permissions thing thats changed?
Offline
Give what you have. To someone, it may be better than you dare to think.
Offline
Thanks!
ive got rails pointed at the net socket fine
how do i point php at the new socket?
Offline
Edit your /etc/php/php.ini file and look for the value 'mysql.default_socket' and update it to reflect the path. Don't forget to restart apache after making the change
A temporary file is just a pipe with an attitude and a will to live.
Offline
Done that but it still doesnt work.
Offline
Wordpress seems to think ive not got the php mysql extension installed.... which i do the config files havent been overwritten by pacman so it should still be working.
There's your problem right there. In the new PHP packages (version 5.3) the modules have been moved to a different location (and are built with a new API version). Apply any changes to the .pacnew configuration file and replace the old php.ini with it (of course, take a backup of the latter first).
Also, you shouldn't have to specify the socket path in php.ini. This was an old bug and was resolved in FS#17179.
Offline