Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-06-2006, 02:04 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
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?
Old 02-06-2006, 02:53 AM   #2
Mad Scientist
Registered: May 2003
Posts: 167

Rep: Reputation: 30
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.
Old 02-06-2006, 05:02 AM   #3
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
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.

Last edited by Wim Sturkenboom; 02-06-2006 at 05:03 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Up LAMP: Getting Linux, Apache, MySQL, and PHP Working Together rhythmking Slackware 2 06-08-2005 05:05 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 04:54 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 03:52 PM
Connecting to Mysql using PHP mahugl Linux - Software 1 01-31-2004 12:20 PM
I need help connecting to mysql with php Pete Dogg Programming 4 06-08-2003 01:52 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration