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

Php7 Upgrade under Nginx + Php-fpm

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
13 posts
  • 1
  • 2
  • Next
Eduard3
Posts: 2
Joined: Tue Feb 16, 2016 9:42 am

Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by Eduard3 » Tue Feb 16, 2016 9:56 am

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
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by tjebbeke » Tue Feb 16, 2016 1:29 pm

Folow this:
https://webtatic.com/packages/php70/
Top

Eduard3
Posts: 2
Joined: Tue Feb 16, 2016 9:42 am

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by Eduard3 » Wed Feb 17, 2016 2:42 pm

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

mephivio
Posts: 198
Joined: Thu Mar 27, 2014 7:35 am

Os: Debian 8x
Web: nginx + php-fpm
Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by mephivio » Sat Feb 20, 2016 10:05 am

any soluce for Jessie (Debian 8) ?
Top

Principle
Posts: 10
Joined: Thu Feb 25, 2016 9:50 pm

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by Principle » Sun Feb 28, 2016 2:40 pm

mephivio wrote:any soluce for Jessie (Debian 8) ?
Not, for Debian other repo and commands in terminal
Top

peih
Posts: 5
Joined: Sat Feb 13, 2016 4:34 am

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by peih » Mon Feb 29, 2016 6:58 am

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

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

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by skamasle » Mon Feb 29, 2016 7:03 pm

Check if you have apache runing

ps aux |grep httpd

If php-fpm wont start check log /var/log/php-fpm.log
Last edited by skamasle on Mon Feb 29, 2016 9:16 pm, edited 1 time in total.
Top

peih
Posts: 5
Joined: Sat Feb 13, 2016 4:34 am

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by peih » Mon Feb 29, 2016 8:57 pm

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
Top

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

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by skamasle » Mon Feb 29, 2016 9:20 pm

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
Top

peih
Posts: 5
Joined: Sat Feb 13, 2016 4:34 am

Re: Php7 Upgrade under Nginx + Php-fpm
  • Quote

Post by peih » Mon Feb 29, 2016 9:33 pm

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
Top


Post Reply
  • Print view

13 posts
  • 1
  • 2
  • Next

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