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

Upgrading to php 7

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
6 posts • Page 1 of 1
delebash
Posts: 22
Joined: Mon Aug 24, 2015 5:28 pm

Upgrading to php 7
  • Quote

Post by delebash » Tue Sep 01, 2015 6:13 am

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
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Upgrading to php 7
  • Quote

Post by skurudo » Tue Sep 01, 2015 8:28 pm

You can make php 7 from source and then use as php-cgi
http://www.zimuel.it/install-php-7/ - something like this.
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Upgrading to php 7
  • Quote

Post by RevengeFNF » Wed Sep 02, 2015 3:56 pm

In Centos is the easiest thing in the world. Wee just need to update using the remi70 repo.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: Upgrading to php 7
  • Quote

Post by baijianpeng » Wed Feb 24, 2016 3:33 pm

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.
Top

RevengeFNF
Posts: 92
Joined: Sat Aug 02, 2014 6:50 pm

Os: CentOS 6x
Web: nginx + php-fpm
Re: Upgrading to php 7
  • Quote

Post by RevengeFNF » Mon Mar 07, 2016 11:22 am

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
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: Upgrading to php 7
  • Quote

Post by skamasle » Tue Mar 08, 2016 8:47 pm

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
Top


Post Reply
  • Print view

6 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