Page 1 of 1

Upgrading to php 7

Posted: Tue Sep 01, 2015 6:13 am
by delebash
Ubuntu 14.04
VestaCp 0.9.8-14

I would like to test out Php 7 but am having trouble upgrading. I am very new to VPS so any help would be appreciated.
I also do not wish to use a PPA

I followed the instructions to install Php7 on zends site http://php7.zend.com/install-ubuntu.php, but now apache2 will not start becuase it wont pass configtest. I checked config and all I did was add the lines mentioned in zends site. I think there is a conflict between php7 and the install php 5.5.9 by VestaCP

If anyone can provide instructions on how to install/upgrade VestaCP's install of php5 to php 7, thanks. Also I know that VestaCP has its own instance of php, I am not trying to upgrade that, just the ones for any sites added by VestaCP

Thanks,
Dan

Re: Upgrading to php 7

Posted: Tue Sep 01, 2015 8:28 pm
by skurudo
You can make php 7 from source and then use as php-cgi
http://www.zimuel.it/install-php-7/ - something like this.

Re: Upgrading to php 7

Posted: Wed Sep 02, 2015 3:56 pm
by RevengeFNF
In Centos is the easiest thing in the world. Wee just need to update using the remi70 repo.

Re: Upgrading to php 7

Posted: Wed Feb 24, 2016 3:33 pm
by baijianpeng
RevengeFNF wrote:In Centos is the easiest thing in the world. Wee just need to update using the remi70 repo.
How to ? Could you please give some detailed instructions? Thank you.

Re: Upgrading to php 7

Posted: Mon Mar 07, 2016 11:22 am
by RevengeFNF
Stop Apache or php-fpm

yum remove php

yum --enablerepo=remi,remi-php70 install php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt php-mysqlnd php-pdo php-soap php-tidy php-xml php-xmlrpc phpMyAdmin roundcubemail php-opcache php-xdebug php-pecl-memcached php-fpm php-devel php-pecl-imagick

Start Apache or php-fpm

Re: Upgrading to php 7

Posted: Tue Mar 08, 2016 8:47 pm
by skamasle
RevengeFNF wrote:Stop Apache or php-fpm

yum remove php

yum --enablerepo=remi,remi-php70 install php php-bcmath php-cli php-common php-gd php-imap php-mbstring php-mcrypt php-mysqlnd php-pdo php-soap php-tidy php-xml php-xmlrpc phpMyAdmin roundcubemail php-opcache php-xdebug php-pecl-memcached php-fpm php-devel php-pecl-imagick

Start Apache or php-fpm

You dont need remove it just install as aditional and add new template and you get php 5 and 7 working on same server, some websites may not work on php 7.

Can take template or how to example here http://forum.vestacp.com/viewtopic.php?f=19&t=10854