LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-13-2003, 12:25 AM   #1
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Rep: Reputation: 15
Angry Just wanting MySQL to work with php


Hi

Have been doing to re-installation of the RH8.0 Server for more than 15 times and it is getting to my nerve as I am just a beginner with Linux.

I sincerely hope someone who has successful install MySQL for RH to work with PHP kindly let me know the easiest setup. I had tried my old setup which is supposedly to work but now can't.

The files I needed to setup to work with my existing database are:
1. Apache 1.3.19
2. mod_ssl 2.6.2-1.3.12
3. php-4.0.4
4. openssl-0.9.6a
5. mySQL-3.22.32

If anyone knows, please give me some details how I can setup so I can get mysql database to work with php.

Thanks a million!

Regards
Edward Han
 
Old 09-13-2003, 12:33 AM   #2
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
Stupid question, but have you configured your php.ini file to enable MySQL support?
 
Old 09-13-2003, 01:28 AM   #3
ZenithRS
LQ Newbie
 
Registered: Dec 2002
Posts: 24

Rep: Reputation: 15
Re: Just wanting MySQL to work with php

Quote:
Originally posted by edhan
Hi

Have been doing to re-installation of the RH8.0 Server for more than 15 times and it is getting to my nerve as I am just a beginner with Linux.

I sincerely hope someone who has successful install MySQL for RH to work with PHP kindly let me know the easiest setup. I had tried my old setup which is supposedly to work but now can't.

The files I needed to setup to work with my existing database are:
1. Apache 1.3.19
2. mod_ssl 2.6.2-1.3.12
3. php-4.0.4
4. openssl-0.9.6a
5. mySQL-3.22.32

If anyone knows, please give me some details how I can setup so I can get mysql database to work with php.

Thanks a million!

Regards
Edward Han
Still haven't got it working huh? You've been asking this for about a week now.

Did you ever install the php-mysql rpm or not?
 
Old 09-13-2003, 02:36 AM   #4
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Original Poster
Rep: Reputation: 15
Re: Re: Just wanting MySQL to work with php

Quote:
Originally posted by ZenithRS
Still haven't got it working huh? You've been asking this for about a week now.

Did you ever install the php-mysql rpm or not?
Yes, I have install the php.ini. Yes, I have installed php-mysql rpm. I have also installed php-server and php-shared. The php is running but I don't seem to be able to link with mysql. I have installed the php-mysql too.

Yes, it has been a week and I have still yet to complete my setup that works. Really frustrating and desperate to get it to work. So, I sincerely hope that if there is anyone who has the simpliest setup that can run php with mysql, I would be most grateful to know how I can do it without problems.

Thanks!

Regards
Edward Han
 
Old 09-13-2003, 03:01 AM   #5
ZenithRS
LQ Newbie
 
Registered: Dec 2002
Posts: 24

Rep: Reputation: 15
It will help a lot if you can describe exactly what the problem is you are having. Cut and paste the error messages to here. "The php is running but I don't seem to be able to link with mysql" doesn't really tell us much. Tell us the following...

What is the PHP script that you want to access mysql? Is it a forum script like vbulletin, or phpbb, or is it phpnuke or postnuke or something similar... or is it your own custom script?
 
Old 09-13-2003, 03:48 AM   #6
Azmeen
Senior Member
 
Registered: May 2003
Location: Malaysia
Distribution: Slackware, LFS, CentOS
Posts: 1,307

Rep: Reputation: 46
You don't install the php.ini file... you edit it.
 
  


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
Trying to get PHP to work with MySQL walterbyrd Linux - Software 1 03-25-2005 10:58 AM
Apache, MySql, PHP work on 10.0 but not 10.1 fireman949 Slackware 3 02-28-2005 11:36 PM
mysql doesn't work with php ivanatora Linux - Software 0 02-26-2004 02:28 PM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
getting mysql to work with php dsgdevil Linux - General 8 02-09-2003 09:35 PM


All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration