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.
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.
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.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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?
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.
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.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?
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
hi, skamasle,skamasle wrote:
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.
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.
Edit /usr/local/vesta/func/domain.shbaijianpeng wrote:hi, skamasle,skamasle wrote:
Please read first post and follow topic, there is a bug in new vesta release whit fastcgi.
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.
Find
Code: Select all
$user $domain $ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html
Code: Select all
$user $domain $local_ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
joem wrote:
Edit /usr/local/vesta/func/domain.sh
FindReplace withCode: Select all
$user $domain $ip $HOMEDIR $HOMEDIR/$user/web/$domain/public_html
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.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
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.
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.
I will not support v16 because this month or next go v17 whit a lot of bug fixes, so I wait that release.
-
- Posts: 301
- Joined: Tue Dec 22, 2015 2:06 pm
Re: VestaCP PHP Selector for Centos add php 7, 5.6 and 5.5.
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.
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.
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
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