We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
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)
Re: Is this only for VestaCP installs with both Apache and nginx?
WEB -> Edit domain -> change Web template therecarlosn wrote: ↑Thu Jan 14, 2021 4:35 pmHello,
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!
Re: Is this only for VestaCP installs with both Apache and nginx?
Web template is visible and enabled only within WEB for admin, not for a regular user account.WEB -> Edit domain -> change Web template there
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.
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
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
I am runing CENTOS 7
Vesta Version:0.9.8 (x86_64)
How can i have php 7.0 or latest version
thanks
Rasco
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
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...
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?
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
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?
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?
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
Please look here, maybe this will help you
viewtopic.php?f=41&t=20571
viewtopic.php?f=41&t=20571
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
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.
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.
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
this is not php selector for CentOS :Dshonir wrote: ↑Mon Nov 01, 2021 6:49 amHi,
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.