How to upgrade from php 5.x to 7.x for nginx + php-fpm
Posted: Thu Jan 04, 2018 9:29 am
Hello,
despite of searching a lot in google, in the forums etc. i don't really found a solution for my problem:
i'm using vestacp for a few month now and are super happy.
now I wanted to upgrade to php7.x (.0 or .1 doesn't really matter to me, yet)
Most of the tutorials are for apache with nginx proxy - but that's not what i want to have.
i want to have a "pure" nginx + php-fpm configuration.
After following the tutorials I now have php5-fpm and php7-fpm running in parallel.
(php5 configured through vestacp and 7 through OS)
BUT:
how do I have to modify the php7 configs to move the new system?
As far as I have seen, the settings for php5-fpm are heavily changed from vestacp.
when editing the php-fpm config in advanced mode it now shows me this as the first line, right above the editor:
As a matter of fact, I don't really need php5 - so I can theoretically remove it, but I don't want to remove it yet, since I don't know how to move over the configs to 7.
More-Info:
OS: Debian 8
frontend: nginx
backend: php-fpm
Also I have a bonus-Question: Where can I see which vestacp-Version I'm running?
I hope this is the right place for posting my problem.
Thanks for your help!
despite of searching a lot in google, in the forums etc. i don't really found a solution for my problem:
i'm using vestacp for a few month now and are super happy.
now I wanted to upgrade to php7.x (.0 or .1 doesn't really matter to me, yet)
Most of the tutorials are for apache with nginx proxy - but that's not what i want to have.
i want to have a "pure" nginx + php-fpm configuration.
After following the tutorials I now have php5-fpm and php7-fpm running in parallel.
(php5 configured through vestacp and 7 through OS)
BUT:
how do I have to modify the php7 configs to move the new system?
As far as I have seen, the settings for php5-fpm are heavily changed from vestacp.
when editing the php-fpm config in advanced mode it now shows me this as the first line, right above the editor:
Code: Select all
/etc/php/7.0/fpm/php.ini /etc/php5/fpm/php.ini
As a matter of fact, I don't really need php5 - so I can theoretically remove it, but I don't want to remove it yet, since I don't know how to move over the configs to 7.
More-Info:
OS: Debian 8
frontend: nginx
backend: php-fpm
Also I have a bonus-Question: Where can I see which vestacp-Version I'm running?
I hope this is the right place for posting my problem.
Thanks for your help!