I must not have restarted apache before testing. It's working not. Thanks, Caleb.
On Oct 19, 2010, at 02:15 PM, Caleb Call <[email protected]> wrote: I know this is extremely obvious, but you sure you got the php-mysql package installed? That should be all that's needed for php to connect, especially if you can connect on the cli. On Oct 19, 2010, at 3:12 PM, Wade Preston Shearer wrote: > I have two servers that were built the same way. Both are running CentOS with > PHP and MySQL installed via yum. One cannot connect to MySQL via PHP however > (connecting from the command line works). I believe I have everything > installed and configured that's needed but must be missing something. > Evidence of that is some items missing from the phpinfo() report on the > server that won't connect. The differences between it's report and the server > that works is that it's missing a whole bunch of items under "additional ini > files parsed" and the MySQL sections. So, PHP hasn't been configured to talk > to MySQL. I am familiar with configuring PHP to talk to MySQL via the > configure command when you build PHP manually. I installed the default > version of PHP from yum though, so I didn't configure it this time (and, as > stated, that method worked on a different server). Any idea what I'm missing? > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on ircfreenode.net _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
