Page 1 of 1

How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Thu Apr 17, 2014 3:51 am
by Tefka
I'm a complete noob, so please go easy on me - how do I safely upgrade to php 5.4 on a fresh server, fresh install without breaking Vesta?

Re: How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Tue Apr 22, 2014 8:39 pm
by jobarte
Hahahahah, noooob! Joke :)

To you upgrade to php 5.4 you need to add Ondřej Surý repository, look commands here:

add-apt-repository ppa:ondrej/php5-oldstable # add Ondřej Surý repository (https://launchpad.net/~ondrej/+archive/php5-oldstable) to php 5.4
apt-get update # update on repositorys
apt-get install php5 # will upgrade php5 and all dependences

On my tests this upgrade don't affected VestaCP, but I'll try again just to make sure

Re: How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Sat Apr 26, 2014 3:00 am
by flangefrog
Be careful if you do an apt-get upgrade, as this will upgrade Apache to 2.4 which will break VestaCP until config changes have been made.

Re: How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Sat Apr 26, 2014 4:43 pm
by mephivio
but you can do it
when the script tells you a question, just select use current parameters and not the parameters coming from the packager

Re: How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Sat Apr 26, 2014 10:00 pm
by jobarte
flangefrog wrote:Be careful if you do an apt-get upgrade, as this will upgrade Apache to 2.4 which will break VestaCP until config changes have been made.
No way, Ubuntu 12.04 don''t have apache2.4 packages, Ubuntu 14.04 have, and apache only will upgrade to apache 2.4 if he use other Ondřej Surý repository for PHP 5.5 that have apache 2.4

Look here https://launchpad.net/~ondrej/+archive/php5

Re: How to upgrade to php 5.4 Ubuntu 12.04 LTS

Posted: Sun Apr 27, 2014 12:57 am
by flangefrog
jobarte wrote:
flangefrog wrote:Be careful if you do an apt-get upgrade, as this will upgrade Apache to 2.4 which will break VestaCP until config changes have been made.
No way, Ubuntu 12.04 don''t have apache2.4 packages, Ubuntu 14.04 have, and apache only will upgrade to apache 2.4 if he use other Ondřej Surý repository for PHP 5.5 that have apache 2.4

Look here https://launchpad.net/~ondrej/+archive/php5
Sorry, I had thought that Ondřej's php5-oldstable ppa included Apache.