VestaCP MultiPHP (Debian/Ubuntu)
Posted: Tue Sep 27, 2016 7:28 am
Better way to solve it: viewtopic.php?f=41&t=17129
Hi!
As already discussed in thread viewtopic.php?f=11&t=12691 and viewtopic.php?f=10&t=12734 I published "my" solution for VestaCP with MultiPHP and PHPBrew. The Solution is based on a little rewrite of the idea from Peter Anikin (http://anikin.pw/all/multiversionnost-p ... s-vestacp/).
You can find the guide on our GITLab Server: https://git.scit.ch/rs/VestaCP-MultiPHP
After installation you should be able to choose the different PHP Versions inside of VestaCP -> WEB -> Domain -> Web Template (Apache2):
After that you have to rebuild the user with v-rebuild-user or inside of VestaCP Backend. Now you can use different PHP Versions for different Domains.
If you need to edit your php.ini file or include additional modules such as Ioncube you will find it under: /usr/local/php/php/php_x.x.x/etc/php.ini - after modification you don't need to restart Apache2, the change will be loaded directly with the next request over php cgi.
MultiPHP is tested on Ubuntu Server 14.04 LTS, maybe someone can try this on Debian and let us know if it works.
Best Regards
Raphael
Edit 2016-09-27: Modified Installation Guide and added setup informations for PHP 5.5 and 5.6.
I would suggest to switch base system to PHP 5.6, only 5.x version that is still supported (http://php.net/supported-versions.php) - then you can still switch to 5.4 or 5.3 if needed.
Hi!
As already discussed in thread viewtopic.php?f=11&t=12691 and viewtopic.php?f=10&t=12734 I published "my" solution for VestaCP with MultiPHP and PHPBrew. The Solution is based on a little rewrite of the idea from Peter Anikin (http://anikin.pw/all/multiversionnost-p ... s-vestacp/).
You can find the guide on our GITLab Server: https://git.scit.ch/rs/VestaCP-MultiPHP
After installation you should be able to choose the different PHP Versions inside of VestaCP -> WEB -> Domain -> Web Template (Apache2):
After that you have to rebuild the user with v-rebuild-user or inside of VestaCP Backend. Now you can use different PHP Versions for different Domains.
If you need to edit your php.ini file or include additional modules such as Ioncube you will find it under: /usr/local/php/php/php_x.x.x/etc/php.ini - after modification you don't need to restart Apache2, the change will be loaded directly with the next request over php cgi.
MultiPHP is tested on Ubuntu Server 14.04 LTS, maybe someone can try this on Debian and let us know if it works.
Best Regards
Raphael
Edit 2016-09-27: Modified Installation Guide and added setup informations for PHP 5.5 and 5.6.
I would suggest to switch base system to PHP 5.6, only 5.x version that is still supported (http://php.net/supported-versions.php) - then you can still switch to 5.4 or 5.3 if needed.