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.
VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
skamasle wrote:I will upgrade this on this days whit some fixes, and bug reports.
Thank you, @skamasle.
I also suggest you add Xcache installing command to your Multi-PHP Selector script. The current version of Xcache v3.2.0 only supports PHP 5.6, not support PHP 7. So you can use this (I googled this):
Code: Select all
# yum install php56-php-xcache --enablerepo=remi
Code: Select all
# systemctl restart httpd
And don't forget to add this for PHP 7 once a new version of Xache for PHP7 is out.
Thank you.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
I think isnt necesary install this by default, you can install it manually, so, some people maybe dont want xcache and want opcache, so they can install it also, is very easy.baijianpeng wrote:skamasle wrote:I will upgrade this on this days whit some fixes, and bug reports.
Thank you, @skamasle.
I also suggest you add Xcache installing command to your Multi-PHP Selector script. The current version of Xcache v3.2.0 only supports PHP 5.6, not support PHP 7. So you can use this (I googled this):
Then restart Apache:Code: Select all
# yum install php56-php-xcache --enablerepo=remi
Maybe you need the same thing for PHP 5.5 .Code: Select all
# systemctl restart httpd
And don't forget to add this for PHP 7 once a new version of Xache for PHP7 is out.
Thank you.
There is a lite instrucction about this in first post.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Ok. I agree.
Since it is very easy to do so, I can install Xcache manually. Hope other people will love Xcache, it really make my website a little faster.
Since it is very easy to do so, I can install Xcache manually. Hope other people will love Xcache, it really make my website a little faster.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Recently I observed many instances of VPS un-stable (temporary server-down happened frequently) since I switched to "sk-php56" template. So I decided to return back to "default" template.
However, after I choose "default" and save, my Joomla backend still shows that the PHP version is 5.6.21 . It seems that my website was not switched to "default" web template.
Why this could happen?
How can I manually change the HTTP template?
Thank you.
However, after I choose "default" and save, my Joomla backend still shows that the PHP version is 5.6.21 . It seems that my website was not switched to "default" web template.
Why this could happen?
How can I manually change the HTTP template?
Thank you.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
You can get system unstable if you not configure your fastcgi, fastcgi eat a lot of RAM and can open a lot of process, so you need configure it to reduce that problems.
If you change your template and still have php 5.6 maybe is because your default php versión is php 5.6
If you change your template and still have php 5.6 maybe is because your default php versión is php 5.6
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
No, my default PHP is 5.5.35, when I run following command on SSH terminal I got:
So, this can prove that my default PHP version is NOT 5.6.
Well, I know very few about fastcgi. How to configure it?
I also noticed that my RAM was used very bad ( I have 4GB memory, only one website, but frequently down) . You are right, I need to optimize something but I don't know how and what to do.
I think , if your "multi-PHP selector for VestaCP" is based on fastcgi, you should include some basic configuration/optimization about fastcgi in your script.
Thank you.
Code: Select all
# php -v
PHP 5.5.35 (cli) (built: Apr 27 2016 14:41:47)
Well, I know very few about fastcgi. How to configure it?
I also noticed that my RAM was used very bad ( I have 4GB memory, only one website, but frequently down) . You are right, I need to optimize something but I don't know how and what to do.
I think , if your "multi-PHP selector for VestaCP" is based on fastcgi, you should include some basic configuration/optimization about fastcgi in your script.
Thank you.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
It was said that "PHP-FPM" is better than FastCGI, why you choose to use fastcgi instead of "PHP-FPM"?
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
As I say in other post, I use vesta template and vesta use fastcgi, php-fpm not is posible whitout make big modifications on system
Maybe I add some basic config to fastcig, but each server is diferente and need specific configuration.
Maybe I add some basic config to fastcig, but each server is diferente and need specific configuration.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Thank you.
I googled some "fastcgi optimization" tips, and used several of them, now it seems that my website is more stable than before.
I googled some "fastcgi optimization" tips, and used several of them, now it seems that my website is more stable than before.
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
Hello. I use a php template! Thanks!
I am have questions.
In apache set MPM EVENT, why your PHP mod (example 5.6) use non zts extension?
I am set in php.ini
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so - THIS WORK
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4_ts.so - THIS NOT WORK
It should be the other way around...
I am have questions.
In apache set MPM EVENT, why your PHP mod (example 5.6) use non zts extension?
I am set in php.ini
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4.so - THIS WORK
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.4_ts.so - THIS NOT WORK
It should be the other way around...