Re: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Keith Roberts
On Centos 5.8, I have changed the default path to the MySQL socket file using this setting in php.ini: ; Default socket name for local MySQL connects. ; If empty, uses the built-in ; MySQL defaults. ; http://www.php.net/manual/en/mysql.configuration.php#ini.mysql.default-socket mysql.default_s

Re: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Jonathan Sundquist
Two things. 1. Run create a file containing phpinfo(); and see where it says the mysql socket path is. This will tell you were php expects it to be. 2. Every time I reply to your emails I get an annoying abuse department email, can you turn that off if you will be having people reply to you. On

RE: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Stormont, Stephen (IMS)
That's what it seems like to me too, but the socket path in the database for Cacti is "/var/lib/mysql/mysql.sock". I don't see an option in any of the Cacti config files that would allow me to point it elsewhere other than what is noted in that database and the Cacti folk claim

Re: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Jonathan Sundquist
Sorry I meant to say your database config within the Cacti application. >From the link that I sent previously it makes me think its looking for the socket to be in /tmp On Fri, Oct 26, 2012 at 1:19 PM, Stormont, Stephen (IMS) < stormo...@imsweb.com> wrote: > mysql> status > > -- > >

RE: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Stormont, Stephen (IMS)
mysql> status -- mysql Ver 14.14 Distrib 5.1.61, for redhat-linux-gnu (x86_64) using readline 5.1 Connection id: 16 Current database: Current user: root@localhost SSL:Not in use Current pager: stdout Using outfile: '' Using del

Re: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Jonathan Sundquist
When you look at your database configuration where does it say the socket is located? On Fri, Oct 26, 2012 at 1:12 PM, Stormont, Stephen (IMS) < stormo...@imsweb.com> wrote: > I followed those steps which is what led us to the > creation of the symbolic link, but I was attempting

RE: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Stormont, Stephen (IMS)
I followed those steps which is what led us to the creation of the symbolic link, but I was attempting to find out why we would even need to do that. Was there some option that we missed at build time for PHP that would have bypassed this issue? From: Jonathan Sundquist [mailto

Re: [PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Jonathan Sundquist
A quick google search turned up a few answers that might help you, http://docs.cacti.net/manual:087:4_help.1_faq#database_setup_seems_to_fail On Fri, Oct 26, 2012 at 1:03 PM, Stormont, Stephen (IMS) < stormo...@imsweb.com> wrote: > We have a new CentOS installation using PHP5 and MySQL. We were

[PHP-INSTALL] Symbolic link needed with mysql and PHP?

2012-10-26 Thread Stormont, Stephen (IMS)
We have a new CentOS installation using PHP5 and MySQL. We were having an issue getting Cacti running, but the problem appears to boil down to a PHP issue. When attempting to access Cacti via the web, we got this error: FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you