Page 1 of 1
Diffrent PHP version - two domain
Posted: Wed Sep 21, 2016 5:58 am
by maniek015
Hello.
I have two sites (two domains) in my VestaCP.
First i want PHP 7.0 version , second domain I want to 5.6.24 version.
Is it possible to have two versions of PHP on the same server? If you have a topic is sorry for doubling
Re: Diffrent PHP version - two domain
Posted: Wed Sep 21, 2016 6:43 am
by ScIT
Hi
Have found the following and do already some internal testing:
http://anikin.pw/all/multiversionnost-p ... s-vestacp/
For compiling php binary I use atm "phpbrew".
Different PHP Versions are already running (5.3, 5.4 and 7.0), but I need to do further testings, if it realy works as expected.
Regards
Raphael
Re: Diffrent PHP version - two domain
Posted: Mon Sep 26, 2016 8:29 am
by ScIT
Ok, "MultiPHP" Configuration works like a charm. I've done some documentation with apache2 template files if you want to do it "by hand":
https://git.scit.ch/rs/VestaCP-MultiPHP
Also there seems to be a script here in the forum for automated installation:
viewtopic.php?f=19&t=10854 (but seems to be CentOS only).
Best Regards
Raphael
Re: Diffrent PHP version - two domain
Posted: Mon Sep 26, 2016 3:01 pm
by maniek015
This is work for VestaCP on Debian system?
Re: Diffrent PHP version - two domain
Posted: Mon Sep 26, 2016 3:12 pm
by skurudo
maniek015 wrote:This is work for VestaCP on Debian system?
First link for Debian.
Pretty nice guide.
Re: Diffrent PHP version - two domain
Posted: Mon Sep 26, 2016 5:26 pm
by ScIT
skurudo wrote:maniek015 wrote:This is work for VestaCP on Debian system?
First link for Debian.
Pretty nice guide.
Hi Skurudo
Thank you, will translate the german parts soon to english. Guide is tested on Ubuntu Server 14.04 LTS, should also work on Debian, maybe someone can test it and let us know ;-).
Update: Tutorial is now tranlsated in english with some additional references and comments.
Best Regards
Raphael
Re: Diffrent PHP version - two domain
Posted: Mon Sep 26, 2016 5:59 pm
by skurudo
ScIT wrote:
Thank you, will translate the german parts soon to english. Guide is tested on Ubuntu Server 14.04 LTS, should also work on Debian, maybe someone can test it and let us know ;-).
Thank you, it's nice guide.
German was my school language, it was fine too ;-)
Raphael, may be you wish make your own topic in
viewforum.php?f=19 ? And we make this topic sticky.
Re: Diffrent PHP version - two domain
Posted: Tue Sep 27, 2016 9:38 am
by ScIT
skurudo wrote:Raphael, may be you wish make your own topic in
viewforum.php?f=19 ? And we make this topic sticky.
Done =>
viewtopic.php?f=19&p=50824#p50824
Re: Diffrent PHP version - two domain
Posted: Tue Sep 27, 2016 11:48 am
by skurudo
Thanks, new sticky topic appear;-)