#1  
Old 4th April 2013, 17:54
erkan erkan is offline
Senior Member
 
Join Date: May 2012
Posts: 116
Thanks: 1
Thanked 3 Times in 3 Posts
Default Two PHP versions

If I follow this guide so I get both PHP 5.3 and 5.4 on my server:

http://www.howtoforge.com/how-to-use...bian-wheezy-p3

How do I do when it's time to upgrade for example from PHP 5.4.12 to PHP 5.4.13?

Becuase it's very easy when you get it from dotdeb just to runt apt-get update and upgrade but I guess you can't do that if you install PHP like this.
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2013, 21:33
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default

You have to recompile with the newer version. If you want to replace it (e.g. 5.4.12 with 5.4.13) make sure to have same "provides" name.

E.g. use php-5.4 rather than php-5.4.12 (otherwise they will get installed side by side).

On the other hand, you could install every version by it's own (I do it like this) and switch from within ISPConfig.
Reply With Quote
  #3  
Old 4th April 2013, 21:49
erkan erkan is offline
Senior Member
 
Join Date: May 2012
Posts: 116
Thanks: 1
Thanked 3 Times in 3 Posts
Default

So if I have PHP 5.4.12 and when 5.4.13 comes I can install it side by side and make a new PHP version in ISP Config for 5.4.13?

But after some time I get a lot of PHP versions, can I remove the old version from the server? I won't use it anymore after the new version so why keep it.
Reply With Quote
  #4  
Old 4th April 2013, 21:55
MaddinXx MaddinXx is offline
Senior Member
 
Join Date: Jul 2011
Location: Switzerland
Posts: 200
Thanks: 26
Thanked 65 Times in 48 Posts
Default

Yes, you can have as many versions as you want. Removing them should be as easy as deleting all files of it (in /opt/ /etc/ etc.)

You might not want to keep every version within a version (5.4.12, 5.4.13 etc.) but probably one of each "main" release (5.3.x, 5.4.x, 5.2.x) if a clients needs a specific one.
Reply With Quote
  #5  
Old 4th April 2013, 22:01
erkan erkan is offline
Senior Member
 
Join Date: May 2012
Posts: 116
Thanks: 1
Thanked 3 Times in 3 Posts
 
Default

Ok I see.

But it seems like a lot of work compared to just replace the old version.

If I want to be able to replace the old version with a new should I name the directory 5.4 instead of 5.4.12? Do I have to uninstall the old version before installing the new on or can I install the new one over the old one? I'm not sure I follow you there.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Only Problems since Updating from 3.0.3.3 to 3.0.4.1 mbay General 4 17th May 2012 13:56
ubuntu and nginx delgado2061 Installation/Configuration 0 28th November 2011 00:36
Problem with services!! banzaiwebstudio.com Installation/Configuration 7 19th May 2010 22:13
Unable to install ISPConfig bdonecker Installation/Configuration 21 26th May 2009 09:20
Apache2 Freezes celtic Server Operation 31 28th May 2007 18:18


All times are GMT +2. The time now is 06:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.