LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-14-2011, 11:25 AM   #1
chip66
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
running php 5.2 and 5.3


I'm running Ubuntu 10.4 x86_64.

I've installed apache, php, mysql with Synaptic which gave me php5.3.
I want php52 so I tried compiling but I'm getting libxml2 error. The phpinfo() is currently showing libxml2 Version 2.7.6

I want to dev php sites within Eclipse.

Should I trying to set up dual php versions? If so, how can I get the libxml problem resolved?

thanks,c
 
Old 03-14-2011, 12:08 PM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
The preferred method may be to see if you can use the package management tool to 'revert' to a prior version. I haven't done this, but I understand that Synaptic does support this. Otherwise, manually, PHP should be located in a subfolder of /usr/lib. You may be able to and install the PHP applications under different directories create a symbolic link for php/ under this directory to which ever version you are using. When attempting to compile it from source, you could run into all sorts of library dependencies issues as well as configuration layout for Debian/Ubuntu. You will need to look at the config files very carefully. The transition from PHP 5.2 to 5.3 contains a lot of differences and unfortunately this made a lot of things break.
 
Old 03-15-2011, 07:55 PM   #3
chip66
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Looks like I've done it. Can't believe I started yesterday... feels like a week ago.

I compiled a php mod from source. Required a lot of updating libs, dev headers...

Don't do make install. Copy the desired php mod into the ./modules dir.

Now I have a script that toggles a link to the desired php mod and restart apache2.
 
  


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
Running php johnh10000 Linux - Newbie 1 06-16-2009 02:02 AM
Centos 5.2 running Apache 2 and PHP 4 cannot display info.php codenjanod Linux - Server 2 08-19-2008 02:00 AM
Help - can't get PHP running paulsm4 Linux - Software 2 10-10-2006 12:31 AM
running apache 2.2 with php 5 sharathg786 Linux - Networking 1 07-19-2006 05:23 AM
How to get php 4.4.2 and php 5.1.4 running on fedora core 5? markg85 Linux - Software 2 06-18-2006 09:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:08 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