Page 25 of 27

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Feb 18, 2020 6:02 am
by pandroso
after 5 monts, i found a "solution" for the problem that phpmyadmin cant be used because the server loads php5.6 instead 7.x when the 5.6 version is installed too. I post the solution on github issue too https://github.com/Skamasle/sk-php-sele ... -587209893

i edit the file:

Code: Select all

/etc/httpd/conf.modules.d/10-php56-php.conf
and comment the uncommented lines to avoid load the php5.6 modules and allow to apache load the 7.x modules. So your file should look like this:

Code: Select all

#<IfModule prefork.c>
#  LoadModule php5_module modules/libphp56-php5.so
#</IfModule>
then just restart the httpd service:

Code: Select all

systemctl restart httpd
I dont try remove the "/etc/httpd/conf.modules.d/10-php56-php.conf" file, but should work too (make a backup if you want to try this).

i hope this be useful for you too

So now i want serve the files using php-fpm (server files for ex. phpmyadmin, not the file site's that i can control with the sk-selector), i installed the php74-fpm module, but i dont know how can i configure this on the apache/nginx. i edit the /etc/nginx/**/phpmyadmin.inc to use fastcgi_pass with the php74-fpm.sock and the /etc/httpd/conf.d/phpMyAdmin.conf file but i dont know how can i do this

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Thu Feb 27, 2020 7:02 pm
by rj2010ism
Hi.

When using php7.2 how do i enable Intl Extension ?

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Mar 17, 2020 7:40 pm
by skamasle
rj2010ism wrote:
Thu Feb 27, 2020 7:02 pm
Hi.

When using php7.2 how do i enable Intl Extension ?
HI, this was explained in first post

You can add extensions using yum from remi repos

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Tue Mar 17, 2020 7:43 pm
by skamasle
pandroso wrote:
Tue Feb 18, 2020 6:02 am
after 5 monts, i found a "solution" for the problem that phpmyadmin cant be used because the server loads php5.6 instead 7.x when the 5.6 version is installed too. I post the solution on github issue too https://github.com/Skamasle/sk-php-sele ... -587209893

i edit the file:

Code: Select all

/etc/httpd/conf.modules.d/10-php56-php.conf
and comment the uncommented lines to avoid load the php5.6 modules and allow to apache load the 7.x modules. So your file should look like this:

Code: Select all

#<IfModule prefork.c>
#  LoadModule php5_module modules/libphp56-php5.so
#</IfModule>
then just restart the httpd service:

Code: Select all

systemctl restart httpd
I dont try remove the "/etc/httpd/conf.modules.d/10-php56-php.conf" file, but should work too (make a backup if you want to try this).

i hope this be useful for you too

So now i want serve the files using php-fpm (server files for ex. phpmyadmin, not the file site's that i can control with the sk-selector), i installed the php74-fpm module, but i dont know how can i configure this on the apache/nginx. i edit the /etc/nginx/**/phpmyadmin.inc to use fastcgi_pass with the php74-fpm.sock and the /etc/httpd/conf.d/phpMyAdmin.conf file but i dont know how can i do this
Hi, thanks for posting

PHPMyAdmin issue alredy discused here en 2017 , you can find information in first post about it.

Php-fpm not supported by default by this script

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Mar 20, 2020 2:25 pm
by mihacb
Hello, after setting up the php-selector script. When I change some site web template from default to, for example, sk-php-56.

My free operative memory goes down. When I open list of processes, there are besides httpd processes appear lots of “php56-cgi” processes.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
10640 admin 20 0 426664 57648 1940 S 0.0 5.7 0:00.91 php56-cgi
2981 admin 20 0 407788 44528 960 S 0.0 4.4 0:01.47 php56-cgi
2977 admin 20 0 334816 44480 516 S 0.0 4.4 0:01.43 php56-cgi
1205 apache 20 0 618040 44292 6888 S 0.0 4.4 0:13.24 httpd
2107 apache 20 0 618292 43412 5872 S 0.0 4.3 0:10.95 httpd
2980 admin 20 0 406624 43368 956 S 0.0 4.3 0:01.26 php56-cgi
1658 apache 20 0 615168 40248 5624 S 0.0 4.0 0:12.88 httpd
2979 admin 20 0 329932 39944 500 S 0.0 3.9 0:01.05 php56-cgi
2982 admin 20 0 330028 39552 280 S 0.0 3.9 0:00.71 php56-cgi
2983 admin 20 0 329260 39488 708 S 0.0 3.9 0:00.78 php56-cgi
1209 apache 20 0 531592 39340 5204 S 0.0 3.9 0:11.51 httpd
2978 admin 20 0 329192 39048 504 S 0.0 3.8 0:01.36 php56-cgi
4676 apache 20 0 615632 39008 3528 S 0.0 3.8 0:09.41 httpd
2985 admin 20 0 329004 38796 276 S 0.0 3.8 0:00.66 php56-cgi
2984 admin 20 0 329004 38752 276 S 0.0 3.8 0:00.79 php56-cgi
2976 admin 20 0 328676 38732 460 S 0.0 3.8 0:01.30 php56-cgi
1642 mysql 20 0 861712 38180 4044 S 0.0 3.8 0:06.60 mysqld

1. Is it normal?
2. Every type of Php version eats 300-400 Mbytes of operative memory?
I thought all the versions should work at httpd server.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sat Mar 21, 2020 4:38 pm
by skamasle
Hi

This is just a new php version, you may need tuning fastcgi or check your php script

I supose you may have same problem with default php vesrtion with fastcgi if you not tuning fastcgi instalation.

In /etc/httpd/conf.d/fastcgi.conf

Check that file

Also try disable opcache if you have some problem

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Apr 03, 2020 11:19 am
by xstocler
Congratulations on the work.

Some way to use select php with nginx +php-fpm ??

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Fri Apr 03, 2020 9:04 pm
by skamasle
xstocler wrote:
Fri Apr 03, 2020 11:19 am
Congratulations on the work.

Some way to use select php with nginx +php-fpm ??
Never test, but in forum some users do something for nginx + php-fpm

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sat Apr 04, 2020 10:40 pm
by Bez
Sorry guys, this function php selector is critical for my VPS. After 7 years with you, I get change Vesta to another panel.

Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.

Posted: Sun Apr 05, 2020 11:45 am
by skamasle
Bez wrote:
Sat Apr 04, 2020 10:40 pm
Sorry guys, this function php selector is critical for my VPS. After 7 years with you, I get change Vesta to another panel.
This is not vesta oficial software

This inst come with vesta

Like this script there are more scripts in forum than support nginx +php-fpm

Just search