Page 9 of 28

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

Posted: Tue May 10, 2016 10:28 pm
by baijianpeng
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
Then restart Apache:

Code: Select all

# systemctl restart httpd
Maybe you need the same thing for PHP 5.5 .

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.

Posted: Wed May 11, 2016 7:12 am
by skamasle
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):

Code: Select all

# yum install php56-php-xcache --enablerepo=remi
Then restart Apache:

Code: Select all

# systemctl restart httpd
Maybe you need the same thing for PHP 5.5 .

And don't forget to add this for PHP 7 once a new version of Xache for PHP7 is out.

Thank you.
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.

There is a lite instrucction about this in first post.

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

Posted: Wed May 11, 2016 8:25 am
by baijianpeng
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.

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

Posted: Tue May 31, 2016 3:12 am
by baijianpeng
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.

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

Posted: Tue May 31, 2016 12:03 pm
by skamasle
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

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

Posted: Tue May 31, 2016 12:16 pm
by baijianpeng
No, my default PHP is 5.5.35, when I run following command on SSH terminal I got:

Code: Select all

# php -v
PHP 5.5.35 (cli) (built: Apr 27 2016 14:41:47) 
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.

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

Posted: Tue May 31, 2016 1:30 pm
by baijianpeng
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.

Posted: Wed Jun 01, 2016 1:50 pm
by skamasle
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.

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

Posted: Wed Jun 01, 2016 1:57 pm
by baijianpeng
Thank you.

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.

Posted: Fri Jun 10, 2016 10:40 am
by windos32
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...