Page 16 of 17

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

Posted: Thu Jan 14, 2021 4:45 pm
by dpeca
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

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

Posted: Thu Jan 14, 2021 5:42 pm
by carlosn
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.

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

Posted: Thu Jan 14, 2021 5:46 pm
by dpeca
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 ____"

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

Posted: Tue Jan 19, 2021 2:03 pm
by rasco
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

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

Posted: Sun Feb 14, 2021 8:44 pm
by lamnian
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?

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

Posted: Mon Mar 08, 2021 3:17 am
by luizsilva
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?

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

Posted: Fri Mar 12, 2021 12:50 pm
by dpeca

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

Posted: Thu Jul 15, 2021 9:07 am
by rikcage
Please look here, maybe this will help you
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

Posted: Mon Nov 01, 2021 6:49 am
by shonir
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.

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

Posted: Mon Nov 01, 2021 9:44 am
by dpeca
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