LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2006, 04:57 PM   #1
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Rep: Reputation: 15
[solved]how to add mysql to php5 connectivity issues


Hi,

I have php5, mysql5, and apache2 installed on Suse 10 and need to figure out how to get the mysql extension into whatever file I need it entered into in php5 so that I can access mysql with php.

My php.info page does not show any mysql support in the text so that means that I have to add it. I have been looking for a week now at every forum I can think of and found that adding "--with mysql=Path/to/mysql"
I can't find anything about where to add it or to what file to add it to.

Can anyone tell me where I need to put mysql support info for PHP. I mean, do I need to put it in some php file or a apache file or what??

Last edited by Lorend; 11-03-2006 at 05:18 AM.
 
Old 11-01-2006, 05:44 PM   #2
Dria
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27

Rep: Reputation: 15
You either need to recompile PHP or find a precompiled binary somewhere that has MySQL support compiled in. The "--with-mysql=path" bit is an argument to the ./configure command when recompiling PHP. (Small note, if you do recompile PHP make sure to add "--with-apxs=pathtoapxs", too.)
 
Old 11-02-2006, 05:36 AM   #3
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
I have to recompile PHP? I thought there was a way that I could add the "--with-mysql" statement to some file or something and then just restart php.
 
Old 11-02-2006, 09:25 AM   #4
Dria
LQ Newbie
 
Registered: Oct 2006
Distribution: Slackware, Mandriva, and Fedora when I must
Posts: 27

Rep: Reputation: 15
Unfortunately, recompilation is the only way. I find it easiest to compile PHP and Apache myself, and use the binary off MySQL's official site, because of things like this, though there shouldn't be anything wrong with using the Apache and MySQL packages for your distro unless they're outdated or something.
 
Old 11-03-2006, 05:16 AM   #5
Lorend
Member
 
Registered: Feb 2005
Location: Wisconsin
Distribution: Fedora Core 5, Knoppix, Suse 10
Posts: 37

Original Poster
Rep: Reputation: 15
I guess we can mark this thread as solved for now.

I was having problems with Suse10.1 so I ended up just dumping the whole works and reloading FC5 and downloaded Xampp, and am going from there.

Thanks for the help though,
 
  


Reply



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
php5 and mysql eric_f Slackware 2 10-05-2006 08:19 AM
php5 + mysql problem fnoyan Linux - Software 2 07-02-2006 05:54 AM
apache + php5 + mysql dejan_su Debian 2 05-23-2006 01:55 PM
php5 and MySQL 4.1 under Fedora C2 cidrolin Linux - Software 1 12-26-2004 03:06 AM
MySQL - PHP5 - phpMyAdmin 2.6.0 Fuel Linux - Software 2 07-25-2004 01:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:05 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
Open Source Consulting | Domain Registration