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 6 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 17
  • Next
jodumont
Posts: 26
Joined: Fri Jan 05, 2018 3:03 pm

Os: Debian 8x
Web: nginx + php-fpm
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 jodumont » Thu Mar 07, 2019 6:12 am

Hi;

I was wondering how to make it happen without apache
like if I installed only nginx+php-fpm on Debian9
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 » Thu Mar 07, 2019 1:46 pm

jodumont wrote: ↑
Thu Mar 07, 2019 6:12 am
Hi;

I was wondering how to make it happen without apache
like if I installed only nginx+php-fpm on Debian9
See second post in this thread, but, however, you probably need to modify tutorial steps (from first post) to avoid Apache-related things.

Or simply install Apache, follow tutorials from first and second post, and then simply turn off Apache.
Top

eSzeL
Posts: 7
Joined: Thu Oct 15, 2015 1:09 am

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 eSzeL » Sun Mar 10, 2019 3:16 pm

Hi!

Thank You for your help, I managed to use the default PHP 7.2 with Apache 2.0 Handler, and PHP 5.6 with FPM/FastCGI on Ubuntu 18.04 LTS.

My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf

After that, php5.6-fpm service restart also fails.

Thank you, in advance!
Sincerely,
eSzeL
Top

eSzeL
Posts: 7
Joined: Thu Oct 15, 2015 1:09 am

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 eSzeL » Sun Mar 10, 2019 4:50 pm

I added this line to /vesta/func/domain.sh, to the del_web_config() function:

# Delete web configuration
del_web_config() {

rm -f "/etc/php/5.6/fpm/pool.d/$domain.conf"

eSzeL wrote: ↑
Sun Mar 10, 2019 3:16 pm
Hi!

Thank You for your help, I managed to use the default PHP 7.2 with Apache 2.0 Handler, and PHP 5.6 with FPM/FastCGI on Ubuntu 18.04 LTS.

My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf

After that, php5.6-fpm service restart also fails.

Thank you, in advance!
Sincerely,
eSzeL
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 Mar 10, 2019 6:04 pm

eSzeL wrote: ↑
Sun Mar 10, 2019 3:16 pm
My question is: why these pool.d PHP FPM config files are left behind after deleting a user / domain:
/etc/php/5.6/fpm/pool.d/domain.com.conf
Because this tutorial does not modify Vesta sctipts in any way - you must implement deletion manually - as you already did.
Top

eSzeL
Posts: 7
Joined: Thu Oct 15, 2015 1:09 am

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 eSzeL » Sun Mar 10, 2019 6:39 pm

I see.. Next question: how can I modify it in a more future proof way?
dpeca wrote: ↑
Sun Mar 10, 2019 6:04 pm

Because this tutorial does not modify Vesta sctipts in any way - you must implement deletion manually - as you already did.
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 Mar 10, 2019 7:02 pm

eSzeL wrote: ↑
Sun Mar 10, 2019 6:39 pm
I see.. Next question: how can I modify it in a more future proof way?
Probably there is no way to do it - except to fork Vesta on github and stop regular updates of vesta and update vesta only via github (from your fork) - which means you also should merge origin-master official vesta git repo to your fork frequently.
Top

Jexs
Posts: 1
Joined: Fri Jun 17, 2016 4:18 am

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 Jexs » Thu Mar 21, 2019 5:58 am

alexcy wrote: ↑
Fri Mar 15, 2019 9:51 pm
I just would like to note that dpeca's suggestion has been implementd among many other improvements in HestiaCP, a VestaCP fork.
Is HestiaCP considered secure? At least as much as Vesta is?
Top

alexcy
Posts: 256
Joined: Sun Jun 01, 2014 11:24 pm
Contact:
Contact alexcy
Website

Os: Ubuntu 15x
Web: nginx + php-fpm
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 alexcy » Thu Mar 21, 2019 6:27 am

Definitely more secure. VestaCP wasn't very secure lately..
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

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 imperio » Fri Mar 22, 2019 3:52 pm

Definitely more secure.
for example? hestia is fork of vesta
Top


Post Reply
  • Print view

166 posts
  • Page 6 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 4
  • 5
  • 6
  • 7
  • 8
  • …
  • 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
 

 

Login  •  Register

I forgot my password