LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   connecting PHP to MySQL in a LAMP server (https://www.linuxquestions.org/questions/linux-newbie-8/connecting-php-to-mysql-in-a-lamp-server-412118/)

rickyglucas_143 02-06-2006 01:04 AM

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?

Mad Scientist 02-06-2006 01:53 AM

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.

Wim Sturkenboom 02-06-2006 04:02 AM

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.