Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Update PHP /Ubuntu

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
petkoo12
Posts: 42
Joined: Thu Feb 04, 2016 10:19 pm

Update PHP /Ubuntu
  • Quote

Post by petkoo12 » Wed Jul 27, 2016 9:31 am

Hello,

what is the best way to update php from version 5.5.9 to newest ? is good to install php 7, is in this version everithing working correctly ?

Have you some tutorials how to update it on ubuntu ?

Thank you
Top

peter.ondzik
Posts: 12
Joined: Sun Aug 30, 2015 3:05 pm

Re: Update PHP /Ubuntu
  • Quote

Post by peter.ondzik » Fri Jul 29, 2016 5:42 pm

i tried

Code: Select all

sudo add-apt-repository ppa:ondrej/php
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0
now when i use php -v in terminal i have

Code: Select all

PHP 7.0.9-1+deb.sury.org~trusty+1 (cli) ( NTS )
but wordpres is showing me that i have php version 5.5.9 and when i use phpinfo script i get this

Code: Select all

PHP Version 5.5.9-1ubuntu4.17
Some one who can help me with updating ?
Top

ScIT
Support team
Posts: 617
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 17x
Web: apache + nginx
Re: Update PHP /Ubuntu
  • Quote

Post by ScIT » Sun Jul 31, 2016 9:51 am

Try to setup your own phpinfo.php file with the following content:

Code: Select all

<?php
	echo phpinfo();
?>
So you can show an "uncached" php info about your system. If you are able to run php -v inside commandline with the correct output, it should also work for your websites.

Best Regards
Raphael
Top

locus
Posts: 63
Joined: Thu May 05, 2016 6:43 am

Os: Ubuntu 15x
Web: apache + nginx
Re: Update PHP /Ubuntu
  • Quote

Post by locus » Sun Jul 31, 2016 12:11 pm

You should remove the old Apache module and install the one for PHP7.

Something like:

Code: Select all

sudo apt-get install libapache2-mod-php7.0
sudo a2dismod php5
sudo a2enmod php7.0
Top

PagesAtHome
Posts: 8
Joined: Tue Nov 08, 2016 12:22 pm

Re: Update PHP /Ubuntu
  • Quote

Post by PagesAtHome » Sun Nov 13, 2016 10:00 am

This problem seems to be solved (also see http://forum.vestacp.com/viewtopic.php? ... 306#p52306), marking your threats as SOLVED helps tremendously to clean up the forum.

Thanks.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password