I have already setup multiple websites on 64bit Ubuntu 16 Nginx server with php 7 Now I’d like to add another website to the same droplet to use php 5, (this premade site need ionCube loader, ionCube doesn’t support php7) Please help
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
For adding multiple sites on nginx server you should utilize
Nginx Server Blocks (Virtual Hosts)
. More about Nginx Server Blocks you can read in this DigitalOcean tutorial.The main idea is to have one VH to point on php-5, while another will point to php-7. This could be done by setting correct php path under ~.php$ location in Server Block config file. Taken from Ubuntu 14.04 LEMP tutorial your php config should be something like…
For php-7 we will reefer to Ubuntu 16.04 LEMP tutorial, here it should look like
For full guide reefer to links I given you, they’re pretty good-written tutorials. :) I hope this will fix problem
For adding multiple sites on nginx server you should utilize
Nginx Server Blocks (Virtual Hosts)
. More about Nginx Server Blocks you can read in this DigitalOcean tutorial.The main idea is to have one VH to point on php-5, while another will point to php-7. This could be done by setting correct php path under ~.php$ location in Server Block config file. Taken from Ubuntu 14.04 LEMP tutorial your php config should be something like…
For php-7 we will reefer to Ubuntu 16.04 LEMP tutorial, here it should look like
For full guide reefer to links I given you, they’re pretty good-written tutorials. :) I hope this will fix problem
Hey i am trying to install prosper202 app. And my site is already working with php7 ubuntu 16…But the prosper usses some deprecated functions which will run below php 5.3…I used the method you said but a error is coming up…
" Package ‘php5-fpm’ has no installation candidate " What to do, i google can came to know that now in ubuntu 16…php7 is standard …Can you guide a bit plz