connecting PHP to MySQL in a LAMP server
I have just installed Fedora Core4 (for my LAMP server)in my PC and the installation went well. However, I encountered a problem in connecting MySQL to PHP. I do follow the instructions and codes in the book of David Stansley, but the problem is still there. Also, I do the configuration in the root. Are there any code that will make PHP-MySQL connection?
|
WordPress uses a PHP/MySQL connection. If you can get WordPress to work on your server, then everything that is needed is working properly. It's just an implementation error at that point.
|
I don't know the book, but what goes wrong?
1) is mysql server configured and does it run - check the processes (ps) - try to connect using mysql 2) does apache run - check the processes (ps) - try http://localhost in your browser; there should be a default index.htm or index.html so you should see some kind of page without an error 3) is php associated in the apache configuration? Can you post your php-code that attempts to connect and the error message that you get. |
All times are GMT -5. The time now is 03:44 AM. |