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

php-fpm +nginx

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
diegodeangelo
Posts: 3
Joined: Fri May 19, 2017 12:51 pm

php-fpm +nginx
  • Quote

Post by diegodeangelo » Fri May 19, 2017 1:08 pm

Hey,
I have the latest Vesta installed on Ubuntu 16.04.
I'm using php 5.6 in my server and I want run php 7.1 for roundcube and phpmyadmin.

I edit /etc/nginx/conf.d/webmail.inc according below:

Code: Select all

location /webmail {
    alias /var/lib/roundcube/;

    location ~ /(config|temp|logs) {
        return 404;
    }

    location ~ ^/webmail/(.*\.php)$ {
        alias /var/lib/roundcube/$1;
        #fastcgi_pass 127.0.0.1:9000;
        fastcgi_pass unix:/run/php/php7.1-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $request_filename;
    }
}
But, when I run

Code: Select all

phpinfo()
in the server, still show php 5.6. I try search for conflicts in configuration files, but I don't know much about nginx.

Can you help me? Please!
Top

Phogo
Posts: 60
Joined: Fri Dec 09, 2016 12:40 pm

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

Post by Phogo » Fri May 19, 2017 3:39 pm

Did you restart PHP and Nginx?
Top

diegodeangelo
Posts: 3
Joined: Fri May 19, 2017 12:51 pm

Re: php-fpm +nginx
  • Quote

Post by diegodeangelo » Fri May 19, 2017 5:05 pm

Phogo wrote:Did you restart PHP and Nginx?
Yes! But didn't work!
Top


Post Reply
  • Print view

3 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
 

 

cron

Login  •  Register

I forgot my password