LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 02-06-2006, 01:04 AM   #1
rickyglucas_143
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, 01:53 AM   #2
Mad Scientist
Member
 
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, 04:02 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

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 04:03 AM.
 
  


Reply


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 04:05 AM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM
LAMP(Linux, Apache, MySQL, PHP) Problem gamehack Slackware 7 08-17-2004 02:52 PM
Connecting to Mysql using PHP mahugl Linux - Software 1 01-31-2004 11:20 AM
I need help connecting to mysql with php Pete Dogg Programming 4 06-08-2003 12:52 AM


All times are GMT -5. The time now is 08:06 AM.

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