My PHP scripts will not connect to a MySQL or PostgreSQL database, what can I do?
The following steps are some troubleshooting procedures that you can try if your PHP scripts are unable to connect to your database server.
-
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.
