Fatal error: Call to undefined function mysql_connect()

Hah. It seems the crazy errors are plaguing me today. The latest one:

Fatal error: Call to undefined function mysql_connect() …

Sweet…

We moved to a new data center, and this error seems to be related to using PHP on Fedora or Redhat. It seems their default installation doesn’t have MySQL extensions support.

First, make sure there is no section for MySQL when you execute the following PHP:

phpinfo();

If MySQL isn’t there, it’s time to get your admin in the loop.