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 16 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 17
  • Next
dpeca
VestaCP Team
Posts: 473
Joined: Wed Nov 25, 2015 7:30 pm

Re: Is this only for VestaCP installs with both Apache and nginx?
  • Quote

Post by dpeca » Thu Jan 14, 2021 4:45 pm

carlosn wrote: ↑
Thu Jan 14, 2021 4:35 pm
Hello,

I need to help here.

This is a clean install of VestaCP on a clean Debian 9 server.

I only have added one user and one domain.

I have installed VestaCP with Apache only, no nginx, and on the Packages tab, under Web Templates, I am getting the option to change to PHP-FPM-56, but after I switch to PHP-FPM-56 from default, nothing happens when I check with phpinfo();

Should I have opted for both Apache and nginx? Or, am I missing something else?

Thanks!
WEB -> Edit domain -> change Web template there
Top

carlosn
Posts: 5
Joined: Fri Feb 14, 2020 11:26 am

Os: Debian 7x
Web: apache + nginx
Re: Is this only for VestaCP installs with both Apache and nginx?
  • Quote

Post by carlosn » Thu Jan 14, 2021 5:42 pm

WEB -> Edit domain -> change Web template there
Web template is visible and enabled only within WEB for admin, not for a regular user account.

When, I go to WEB from within admin, the only available site is my nameserver site where VestaCP was installed, and PHP-FPM-56 works there just fine, but again not for a regular user account.
Top

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

Re: Is this only for VestaCP installs with both Apache and nginx?
  • Quote

Post by dpeca » Thu Jan 14, 2021 5:46 pm

carlosn wrote: ↑
Thu Jan 14, 2021 5:42 pm
WEB -> Edit domain -> change Web template there
Web template is visible and enabled only within WEB for admin, not for a regular user account.
First login as admin, then put mouse over account and click ''LOGIN AS ____"
Top

rasco
Posts: 8
Joined: Mon Nov 20, 2017 4:39 am

Re: 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-F
  • Quote

Post by rasco » Tue Jan 19, 2021 2:03 pm

Hi guys,

I am runing CENTOS 7
Vesta Version:0.9.8 (x86_64)

How can i have php 7.0 or latest version

thanks

Rasco
Top

lamnian
Posts: 6
Joined: Sun Mar 27, 2016 8:42 pm

Re: 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-F
  • Quote

Post by lamnian » Sun Feb 14, 2021 8:44 pm

Hello,

Restarted my server and PHP 5.6 is not working

I get the following in the Apache logs

[Sun Feb 14 22:41:22.681477 2021] [proxy:error] [pid 7261] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php5.6-fpm-mydomain.com.sock (*) failed
[Sun Feb 14 22:41:22.681545 2021] [proxy_fcgi:error] [pid 7261] [client xxx.xxx.xxx.xxx:46126] AH01079: failed to make connection to backend: httpd-UDS

and when I run systemctl start php5.6-fpm I get

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.

so I run systemctl status php5.6-fpm.service and get the following:

● 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 Sun 2021-02-14 23:02:45 EET; 14s ago
Docs: man:php-fpm5.6(8)
Process: 21526 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/5.6/fpm/pool.d/www.conf 56 (code=exited, status=203/EXEC)
Process: 21524 ExecStart=/usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf (code=exited, status=78)
Main PID: 21524 (code=exited, status=78)

Feb 14 23:02:45 systemd[1]: Starting The PHP 5.6 FastCGI Process Manager...
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] WARNING: Nothing matches the include pattern '/etc/php/5.6/fpm/pool.d/*.conf' from /etc/php/5.6/fpm/php-fpm.conf at line 15.
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: No pool defined. at least one pool section must be specified in config file
Feb 14 23:02:45 hp-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: failed to post process the configuration
Feb 14 23:02:45 php-fpm5.6[21524]: [14-Feb-2021 23:02:45] ERROR: FPM initialization failed
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Main process exited, code=exited, status=78/n/a
Feb 14 23:02:45 systemd[1]: Failed to start The PHP 5.6 FastCGI Process Manager.
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Unit entered failed state.
Feb 14 23:02:45 systemd[1]: php5.6-fpm.service: Failed with result 'exit-code'.


Other versions work. Any Ideas

Thanks in Advance...
Fixed it:
So I Created a .conf for one of my domains and saved in the /etc/php/5.6/fpm/pool.d/ (as the error demanded)
This got the php5.6-fpm.service running
Then I went to all my domains that run php5.6 and enabled it again to create the .conf for each one.

But any Idea why this happened after a restart, why did all the .conf files get deleted?
Top

luizsilva
Posts: 1
Joined: Mon Mar 08, 2021 3:13 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: 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-F
  • Quote

Post by luizsilva » Mon Mar 08, 2021 3:17 am

Hello guys

I performed the installation of VestaCP recently but it is already with PHP 8.0 I need the previous versions, I tried to install this PHP Selector, but it didn't work can someone help 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, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-F
  • Quote

Post by dpeca » Fri Mar 12, 2021 12:50 pm

for PHP8: https://forum.myvestacp.com/viewtopic.php?f=18&t=52
Top

rikcage
Posts: 8
Joined: Thu Jul 15, 2021 8:41 am

Os: Ubuntu 17x
Web: apache + nginx
Re: 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-F
  • Quote

Post by rikcage » Thu Jul 15, 2021 9:07 am

Please look here, maybe this will help you
viewtopic.php?f=41&t=20571
Top

shonir
Posts: 42
Joined: Tue Sep 20, 2016 10:58 am
Contact:
Contact shonir
Website Skype

Os: CentOS 6x
Web: apache + nginx
Re: 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-F
  • Quote

Post by shonir » Mon Nov 01, 2021 6:49 am

Hi,

I installed PHP Selector on my production server centos 7. Now on SSH when i command php -v its showing php version 7.4.23 and when i used php script <?php phpinfo() ?> to check then its showing 5.6.40 version. how i can set 7.4.23 as default?? even when i try to change version then nothing happened.
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, 7.4 for Debian & Ubuntu (and optionally directly nginx-PHP-F
  • Quote

Post by dpeca » Mon Nov 01, 2021 9:44 am

shonir wrote: ↑
Mon Nov 01, 2021 6:49 am
Hi,

I installed PHP Selector on my production server centos 7. Now on SSH when i command php -v its showing php version 7.4.23 and when i used php script <?php phpinfo() ?> to check then its showing 5.6.40 version. how i can set 7.4.23 as default?? even when i try to change version then nothing happened.
this is not php selector for CentOS :D
Top


Post Reply
  • Print view

166 posts
  • Page 16 of 17
    • Jump to page:
  • Previous
  • 1
  • …
  • 13
  • 14
  • 15
  • 16
  • 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