LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 12-21-2004, 07:32 AM   #1
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Rep: Reputation: 30
Upgrading PHP to include MYSQL support


Hi, all.

I am running Fedora Core 2, Apache 2.0.49, MySQL4.1.8-standard. I just used yum to upgrade PHP from 4.3.4 to 4.3.8 (I was hoping for 4.3.9).

My question is, what is the best approach to recompile PHP to upgrade to 4.3.9 and include MySQL support?

I have downloaded the source and figure that the best way to do it is to compile from that. However, I have two concerns: 1) Will this leave me with two parallel installations of PHP? and 2) the configure command from phpinfo() includes --with-apxs2=/usr/sbin/apxs, but apxs is not there (or anywhere else, for that matter).

TIA.
 
Old 12-21-2004, 01:06 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
I was under the impression that the PHP rpm packages included mysql support by default. Is this not the case?
 
Old 12-21-2004, 02:45 PM   #3
zaichik
Member
 
Registered: May 2004
Location: Iowa USA
Distribution: CentOS
Posts: 419

Original Poster
Rep: Reputation: 30
I thought so as well. However, web pages that have mysql functions in them (like mysql_connect() ) do not load, and the logs have errors in them indciating a "call to undefined function in blahblah.php". So, I gather not. Although one of the configure commands does include --mysql-shared or some such. All the same, the PHP mysql functions are treated as "undefined" by Apache.

Any ideas?
 
  


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
Upgrading PHP to include MySQL support zaichik Linux - Newbie 2 12-23-2004 07:50 AM
Upgrading PHP..and maybe MySQL too? Vort3x Mandriva 4 11-23-2004 06:40 PM
Upgrading PHP,.. and maybe MySQL too? Vort3x Linux - Software 1 10-29-2004 12:35 PM
Installing MySQL.4.0.17 and php support for Mysql on RedHat 9.0 Neha Linux - Software 13 12-29-2003 01:06 AM
PHP and MySQL after upgrading Redhat Shinjuku Linux - Software 5 05-02-2003 01:37 PM


All times are GMT -5. The time now is 12:56 PM.

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