Page 12 of 28

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

Posted: Wed Aug 10, 2016 9:38 am
by baijianpeng
How to remove PHP 5.4 from the installing target ?

Today when I made a fresh installation of VestaCP latest version, I noticed that VestaCP installs PHP v5.6.25 by default on my CentOS 7 VPS. That is great!

Since my project only needs PHP 5.6 and PHP 7, now I want to install PHP 7.x with this PHP Selector script. But it has no options to allow me choose what version to install, it just installed from PHP 5.4 !

I don't want to have PHP 5.4 on my server.

So, could you please improve this script to allow Admin choose which version of PHP to intall?

Thank you.

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

Posted: Wed Aug 10, 2016 3:05 pm
by baijianpeng
This script can not work on Vesta 0.9.8-16 !

Today I tried this script on newly installed fresh VestaCP 0.9.8-16 version, though I had choose "sk-php70" as the web template for my website, I still see my website running on PHP 5.6.25 (Joomla can tell the PHP version in action at its backend "system info").

Why this can not work on VestaCP new version?

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

Posted: Wed Aug 10, 2016 9:11 pm
by skamasle
baijianpeng wrote:This script can not work on Vesta 0.9.8-16 !

Today I tried this script on newly installed fresh VestaCP 0.9.8-16 version, though I had choose "sk-php70" as the web template for my website, I still see my website running on PHP 5.6.25 (Joomla can tell the PHP version in action at its backend "system info").

Why this can not work on VestaCP new version?
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.

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

Posted: Wed Aug 10, 2016 10:56 pm
by baijianpeng
skamasle wrote:
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.
hi, skamasle,

I noticed that in your reply to this post: http://forum.vestacp.com/posting.php?mo ... 45#pr48724 ,you mentioned a "Fix Bug 287" on Github: https://github.com/serghey-rodin/vesta/pull/759 .

However, I don't know how to apply this "bug fix" to my VestaCP installation. Github did not give me clear instructions.

Could you please tell me how to apply that "bug fix 287" (or commit 759?) to my VestaCP ? Which file to modify? Or which file to replace and replace with what?

I think a better solution is: modify your script (maybe you need update 0.2.3 to 0.2.4 ) to let it apply that bug fix automatically if it detects this bug in VestaCP. Could you please do this?

Thank you.

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

Posted: Thu Aug 11, 2016 1:30 am
by joem
baijianpeng wrote:
skamasle wrote:
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.
hi, skamasle,

I noticed that in your reply to this post: http://forum.vestacp.com/posting.php?mo ... 45#pr48724 ,you mentioned a "Fix Bug 287" on Github: https://github.com/serghey-rodin/vesta/pull/759 .

However, I don't know how to apply this "bug fix" to my VestaCP installation. Github did not give me clear instructions.

Could you please tell me how to apply that "bug fix 287" (or commit 759?) to my VestaCP ? Which file to modify? Or which file to replace and replace with what?

I think a better solution is: modify your script (maybe you need update 0.2.3 to 0.2.4 ) to let it apply that bug fix automatically if it detects this bug in VestaCP. Could you please do this?

Thank you.
Edit /usr/local/vesta/func/domain.sh

Find

Code: Select all

$user $domain $ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html
Replace with

Code: Select all

$user $domain $local_ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html

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

Posted: Thu Aug 11, 2016 9:15 am
by baijianpeng
joem wrote:
Edit /usr/local/vesta/func/domain.sh

Find

Code: Select all

$user $domain $ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html
Replace with

Code: Select all

$user $domain $local_ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html

hi , joem,

Thank you, now I know which file and what part to modify.

However, what is the time of doing this modification? Before or After I installed Multi PHP Selector script?

Now I have re-set my VPS server and get a fresh new CentOS 7 64-bit. Without any further operation. I want to know what is the best time of modifying that file:

1. Just after installation of VestaCP?
2. Install VestaCP, Then install Multi PHP Selector, then modify the file?
3. Install VestaCP, Then install Multi PHP Selector, then assign template (sk-php70) to my website domain, then modify that file?

Thank you.

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

Posted: Fri Aug 12, 2016 11:02 am
by baijianpeng
Today I made a new test:

1. Fresh clean CenOS 7 64-bit;
2. Install VestaCP 0.9.8-16 (the latest version).
3. Modify /usr/local/vesta/func/domain.sh file, change $ip to $local_ip and save file
4. reboot server
5. Install this Multi PHP Selector
6. Open VestaCP in browser, create a new website, and FTP and DB for it.
7. Upload Joomla CMS core package via FTP.
8. Install Joomla.
9. Joomla can be opened both backend and frontend.
10. Check PHP version in Joomla "system information", shows: PHP 5.6.25
11. In VestaCP, choose "sk-php70" for Web Template for this domain and save.
12. Reboot server.
13. Check again PHP version in Joomla "system information", still shows: PHP 5.6.25

Why?

Why this script can not work on new VestaCP even after I applied that bug fix patch?

What should I do next to make it work?

Thank you.

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

Posted: Fri Aug 12, 2016 9:56 pm
by skamasle
That fix is for fastcgi template bug.

I will not support v16 because this month or next go v17 whit a lot of bug fixes, so I wait that release.

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

Posted: Sat Aug 13, 2016 12:07 am
by baijianpeng
Good news! I also hope v17 will be better.

Thank you.

PS: could you please add a feature to allow me "do not install PHP 5.4 / PHP 5.5 at all"? Because I only need PHP 7 from your script, since VestaCP itself already installed PHP 5.6.25.

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

Posted: Sun Aug 14, 2016 6:55 pm
by pdcpl
Hi,

I have installed php selector on centos 7 and it went fine but when we select respective version it doesn't work it show still the old version of php. Even after updating the domain.sh file it's the same issue.

Regards,

Harsha