Page 1 of 1

PHP7 on ubuntu

Posted: Sat Jan 23, 2016 2:59 pm
by sennevb
Hi,

I tried removing php5 and upgrading to php7 on my vestacp installation..
Install went fine, but then i got server error.

Server log say: connect() failed (111: Connection refused) while connecting to upstream


Someone any guide how to do it? (had to replace a backup)

Re: PHP7 on ubuntu

Posted: Sat Jan 23, 2016 7:58 pm
by skurudo
Something like this:
https://www.digitalocean.com/community/ ... untu-14-04

Find repo, upgrade modules.

Re: PHP7 on ubuntu

Posted: Sun Jan 24, 2016 5:53 pm
by prometheus
After upgrade webmail is not working

Re: PHP7 on ubuntu

Posted: Sun Jan 24, 2016 7:23 pm
by sennevb
/etc/nginx/sites-enabled/default is not present, when you want to use this guide, where is it with vestacp?

I need to edit it for the new php-fpm socket..

Re: PHP7 on ubuntu

Posted: Mon Jan 25, 2016 7:57 am
by tjebbeke
sennevb wrote:/etc/nginx/sites-enabled/default is not present, when you want to use this guide, where is it with vestacp?

I need to edit it for the new php-fpm socket..
Check the templates in /usr/local/vesta/data/templates and the config files /home/yourusername/conf/web/

Re: PHP7 on ubuntu

Posted: Mon Jan 25, 2016 3:44 pm
by newtron
prometheus wrote:After upgrade webmail is not working
You have to update Roundcube to 1.2beta

More info: https://roundcube.net/news/2015/11/23/r ... a-out-now/

Edit: Yep... its possible
SpoilerShow
Image
Tested on Debian Testing

Re: PHP7 on ubuntu

Posted: Fri Jan 29, 2016 7:11 pm
by suassive
newtron wrote:
prometheus wrote:-snip
How's your setup like?
- Nginx with apache or Nginx without apache?
Because I would love to upgrade but even when I tried fixing roundcube other errors kept happening.
If it's not a hassle, I would like some guidance. If that's okay

Re: PHP7 on ubuntu

Posted: Sat Jan 30, 2016 6:55 pm
by sennevb
sennevb wrote:/etc/nginx/sites-enabled/default is not present, when you want to use this guide, where is it with vestacp?

I need to edit it for the new php-fpm socket..
I'm just reading it trough..
I dont need php-fpm right, since nginx is not handling the php, it is apache. Nginx only handling images right??
Anyone can confirm??

Re: PHP7 on ubuntu

Posted: Tue Feb 02, 2016 11:36 am
by newtron
sennevb wrote:Nginx only handling images right??
Anyone can confirm??
Right... but not right, if you see the "network" in your browser you will see the X-server is nginx..
suassive wrote:How's your setup like?
- Nginx with apache or Nginx without apache?
Because I would love to upgrade but even when I tried fixing roundcube other errors kept happening.
If it's not a hassle, I would like some guidance. If that's okay
Apache without Nginx, but that isnt the problem, you have to upgrade roundcube to the latest beta (download in official webpage, github ver not run...), and download latest beta from PhpMyAdmin, it runs too with PHP7.

And confirmed, Wordpress and PrestaShop 1.6.1.4 runs perfect on PHP7 :D
SpoilerShow
Image

Re: PHP7 on ubuntu

Posted: Tue Feb 02, 2016 11:54 am
by skurudo
sennevb wrote: I dont need php-fpm right, since nginx is not handling the php, it is apache. Nginx only handling images right??
Anyone can confirm??
Yep, apache run php, not nginx. If you use nginx + php-fpm, php-rpm run php-scripts.

Nginx not only for images, js and other.. it's powerfull proxy tool - https://en.wikipedia.org/wiki/Nginx