My PHP scripts will not connect to a MySQL or PostgreSQL database, what can I do?

Updated -

The following steps are some troubleshooting procedures that you can try if your PHP scripts are unable to connect to your database server.

  1. You need to ensure that you have the correct packages installed on your machine to support PHP and also the database server, if that is running on the same machine. Run the command rpm -q <packagename>, substituting the ...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.