Page 1 of 2

Php7 Upgrade under Nginx + Php-fpm

Posted: Tue Feb 16, 2016 9:56 am
by Eduard3
Hello Vesta Community :)

I´m new in this forum and quite new in VestaCP and new in Linux too. I´ve been testing it some months ago but this time I´m going to use VestaCP for my production sites.

My question is about a fresh install on a Centos 6 in my VPS. I´ve installed VestaCP Nginx+Php-fpm and now I want to upgrade Php 5 to Php7.

I can´t do it. I´ve searched a lot in google. I´ve tried with several tutorials from Digitalocean and Severmom, but 99% are tutorials for VestaCP with Apache and Nginx as reverse proxy, not pure Nginx+Php-fpm.

The only easy step guide to upgrade PHP under LEMP I found on internet was this: https://www.digitalocean.com/community/ ... n-centos-7 but it doesn´t work with VestaCP.

Can you help me? Can you show me the steps to upgrade it?

Thank you

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Tue Feb 16, 2016 1:29 pm
by tjebbeke

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Wed Feb 17, 2016 2:42 pm
by Eduard3
tjebbeke wrote:Folow this:
https://webtatic.com/packages/php70/
Thanks tjebbeke, it worked.

I used:

Code: Select all

yum install yum-plugin-replace
yum replace php-common --replace-with=php70w-common
Aparently all works fine. I´m gonna test with a wordpress instalation.

Thanks!

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Sat Feb 20, 2016 10:05 am
by mephivio
any soluce for Jessie (Debian 8) ?

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Sun Feb 28, 2016 2:40 pm
by Principle
mephivio wrote:any soluce for Jessie (Debian 8) ?
Not, for Debian other repo and commands in terminal

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Mon Feb 29, 2016 6:58 am
by peih
i got these issue when i tried to upgrade php 7 (Folow this tut https://webtatic.com/packages/php70):

Error: php-mysql conflicts with php70w-mysqlnd-7.0.3-1.w6.x86_64
Error: php70w-common conflicts with php-common-5.4.45-4.el6.remi.x86_64

then i tried remove php by this command: yum remove php*
then made a install yum..and everything is okay.

after that i login back vestacp, click on Server BUT nginx, php-fpm and named were invisiable. so i tried to start services again and everything is started EXCEPT php-fpm and name.

What can i do now? do i broke anything custom configuration by vesta?

and how do i know im running nginx only?

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Mon Feb 29, 2016 7:03 pm
by skamasle
Check if you have apache runing

ps aux |grep httpd

If php-fpm wont start check log /var/log/php-fpm.log

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Mon Feb 29, 2016 8:57 pm
by peih
it still running:
ps aux |grep httpd
root 10058 0.0 0.0 6444 716 pts/0 S+ 15:53 0:00 grep httpd

i just installed nginx+php-fpm as tut installation from vestacp.
and there is no php-fpm log file in /var/log

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Mon Feb 29, 2016 9:20 pm
by skamasle
Apache not runing, you see your grep httpd comand on output.

You use webtatic repo, maybe you have some packages yet from php 5.4 check you /etc/ini.d for php-fpm you may have php-fpm and php70-fpm

Re: Php7 Upgrade under Nginx + Php-fpm

Posted: Mon Feb 29, 2016 9:33 pm
by peih
peih wrote:it still running:
ps aux |grep httpd
root 10058 0.0 0.0 6444 716 pts/0 S+ 15:53 0:00 grep httpd

i just installed nginx+php-fpm as tut installation from vestacp.
and there is no php-fpm log file in /var/log
so what is it? "root 10058 0.0 0.0 6444 716 pts/0 S+ 15:53 0:00 grep httpd" after i did command: ps aux |grep httpd
how can i check nginx is running?

there is no php70-fpm, just have php-fpm in /etc/ini.d