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 General Discussion Debian/Ubuntu
  • Search

TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-FPM)

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
166 posts
  • Page 8 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • 17
  • Next
krvam
Posts: 6
Joined: Tue Nov 13, 2018 2:39 pm

Os: Ubuntu 16x
Web: apache + nginx
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by krvam » Wed Apr 24, 2019 1:06 pm

i have CentOS 7.6.1810 (x86_64), this tutorial work for me?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by dpeca » Wed Apr 24, 2019 1:42 pm

krvam wrote: ↑
Wed Apr 24, 2019 1:06 pm
i have CentOS 7.6.1810 (x86_64), this tutorial work for me?
Image
Top

bhavilajain68
Posts: 6
Joined: Tue May 14, 2019 6:15 am

Os: Ubuntu 17x
Web: apache + nginx
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by bhavilajain68 » Fri May 17, 2019 2:51 pm

Hi, So this is an old-ish thread, but I could use some help.
I'm on AWS lightsail-Ubuntu 16.04 vestacp 0.9.8-24 (Apr 15/2019)

I've followed your guide step by stem nearly 3 time with 2 problems.
1. The apache2 service would not start no matter what.
2. Once when it did start, roundcube and phpmyadmin were inaccessable.

I'm new to both linus and vestacp, but have learnt using the terminal a bit in the past few days.
I dont know what files/logs would you require for this or where they are located, please let me know..I'll get hose for you.

I could really use some help with this.
Thanks in advance. :)

Update
Ok so I tried It the 4th time after posting this. Now everything is working except the main thing.
When I change the template to PHP-FPM-56 and go to my site it says 500 Internal Server Error.
.html files will work, but .php files wont.
On default .php files work. and shows php version to be 7.0.
The problem is i built my site/app on 5.6 and i need that in order for it to run.

This is the log file under home/user/web/domain/logs/domain.error.log
[Fri May 17 15:09:30.065410 2019] [proxy:error] [pid 14516] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php5.6-fpm-justquoteit.in.sock (*) failed
[Fri May 17 15:09:30.065451 2019] [proxy_fcgi:error] [pid 14516] [client 172.26.14.165:55284] AH01079: failed to make connection to backend: httpd-UDS


Update 2
SO 7th time is a charm i guess??
Php 5.6 is working, but roundcube is not.. displays an error that database cannot be connected.??
A work around is to make keep the default domain's web template as default, and use a sub domain to use my php 5.6 app.
This works for me but would surely be an issue for other people who cant set it up that way..


Its working for me as of now but would still be interested in getting a solution to this..
Top

gatsukito
Posts: 9
Joined: Thu Jul 21, 2016 9:31 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by gatsukito » Sun Aug 04, 2019 9:06 pm

Good morning.

I have tried to add this php selector in a VM with Debian 8 and I can't to open roundcube and phpPgAdmin, it can be solved opening theirs with another domain that it uses an apache default template.

An example:
- Domain A has apache default template. I can to open roundcube and phpPgAdmin.
- Domain B has apache PHP 7.2 FPM template. I can't to open roundcube and phpPgAdmin.

Errors about roundcube and phpPgAdmin talk about config not found.

Anybody has the same problem?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by dpeca » Mon Aug 05, 2019 10:08 am

gatsukito wrote: ↑
Sun Aug 04, 2019 9:06 pm
Errors about roundcube and phpPgAdmin talk about config not found.

Anybody has the same problem?
in fpm pool.d conf file of that domain, group shold be

Code: Select all

group = www-data
Restart php-fpm after that change.
Top

gatsukito
Posts: 9
Joined: Thu Jul 21, 2016 9:31 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by gatsukito » Mon Aug 05, 2019 2:56 pm

Good afternoon dpeca
dpeca wrote: ↑
Mon Aug 05, 2019 10:08 am
in fpm pool.d conf file of that domain, group shold be

Code: Select all

group = www-data
Restart php-fpm after that change.
Roundcube works perfectly, but phpPgAdmin continues showing me the error about config, and only I have /etc/phppgadmin/config.inc.php

Code: Select all

Configuration error: Copy conf/config.inc.php-dist to conf/config.inc.php and edit appropriately.
Top

tom256
Posts: 24
Joined: Sun Sep 16, 2018 3:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by tom256 » Thu Aug 08, 2019 9:55 pm

I had installed PHP 5.6,7.0 and 7.3 using this tutorial months ago.
Today I got this error when I tried to apt-get upgrade my server:
NOTICE: Not enabling PHP 5.6 FPM by default.
NOTICE: To enable PHP 5.6 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php5.6-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Job for php5.6-fpm.service failed because the control process exited with error code. See "systemctl status php5.6-fpm.service" and "journalctl -xe" for details.
invoke-rc.d: initscript php5.6-fpm, action "restart" failed.
● php5.6-fpm.service - The PHP 5.6 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php5.6-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2019-08-09 02:12:21 +0430; 6ms ago
Docs: man:php-fpm5.6(8)
Process: 4357 ExecStart=/usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 4357 (code=exited, status=78)

Aug 09 02:12:21 panel.site.xyz systemd[1]: Starting The PHP 5.6 FastCGI Process Manager...
Aug 09 02:12:21 panel.site.xyz php-fpm5.6[4357]: [09-Aug-2019 02:12:21] WARNING: Nothing matches the include pattern...e 15.
Aug 09 02:12:21 panel.site.xyz php-fpm5.6[4357]: [09-Aug-2019 02:12:21] ERROR: No pool defined. at least one pool se... file
Aug 09 02:12:21 panel.site.xyz php-fpm5.6[4357]: [09-Aug-2019 02:12:21] ERROR: failed to post process the configuration
Aug 09 02:12:21 panel.site.xyz php-fpm5.6[4357]: [09-Aug-2019 02:12:21] ERROR: FPM initialization failed
Aug 09 02:12:21 panel.site.xyz systemd[1]: php5.6-fpm.service: Main process exited, code=exited, status=78/n/a
Aug 09 02:12:21 panel.site.xyz systemd[1]: Failed to start The PHP 5.6 FastCGI Process Manager.
Aug 09 02:12:21 panel.site.xyz systemd[1]: php5.6-fpm.service: Unit entered failed state.
Aug 09 02:12:21 panel.site.xyz systemd[1]: php5.6-fpm.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package php5.6-fpm (--configure):
subprocess installed post-installation script returned error exit status 1
E: Sub-process /usr/bin/dpkg returned an error code (1)

How can I solve this problem?
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by dpeca » Fri Aug 09, 2019 10:52 am

tom256 wrote: ↑
Thu Aug 08, 2019 9:55 pm
I had installed PHP 5.6,7.0 and 7.3 using this tutorial months ago.
Today I got this error when I tried to apt-get upgrade my server:
viewtopic.php?f=41&t=17129&start=60#p76941
Top

gursl
Posts: 8
Joined: Sat Jan 23, 2016 1:52 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by gursl » Sun Aug 11, 2019 5:45 pm

Thank you very much for this selector. I have 1st tried to adapt PHP-FPM-72 to Joomla with no success however the Wordpress one seems working well in with my Joomla website.

I have just found out there is an issue with security fall Cross Site Scripting (XSS). Please can you advise how can I change the PHP-FPM-72-Wordpress in order to avoid this security fault?

I have tried to add belo code but after I do a scan with detectify to website this does not look is doing anything. please can you suggest the best way to proceed?

Code added to PHP-FPM-72-Wordpress.stpl
and
service nginx restart


Code: Select all

server {
...

add_header X-XSS-Protection "1; mode=block";
}
thank you in advance for all these very useful posts.
Top

dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: TUTORIAL: PHP selector for PHP 5.6, 7.0, 7.1, 7.2, 7.3 for Debian and Ubuntu (and optionally directly nginx-PHP-FPM)
  • Quote

Post by dpeca » Sun Aug 11, 2019 8:46 pm

gursl wrote: ↑
Sun Aug 11, 2019 5:45 pm

Code: Select all

server {
...

add_header X-XSS-Protection "1; mode=block";
}
thank you in advance for all these very useful posts.
It looks like nginx template, but my PHP selector is based on Apache templates.
Yes, it have tutorial for adapting existent nginx-fpm templates - but it's just tutorial for adapting existent templates - I can not give support for them - since I didn't make them.
Top


Post Reply
  • Print view

166 posts
  • Page 8 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • 17
  • Next

Return to “Debian/Ubuntu”



  • 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