I created a droplet in ubuntu 16.04 following the following tutorial and it works like a charm: https://www.digitalocean.com/community/tutorials/how-to-install-hhvm-with-nginx-on-ubuntu-14-04. My goal is to create a shared hosting for my clients projects to replace my current Apache server with PHP-FPM running PHP 5.6 (they will not have access to the server). Searching I did not find a definitive way to isolate the execution of these websites in different users as it is traditionally done by PHP -FPM to increase security. Is this isolation necessary for this scenario? how to do this? Any help is very welcome. Thank you!
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.
Click below to sign up and get $100 of credit to try our products over 60 days!
I am going to work on this same scenario on a debian 8 install. I intend to follow this - https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-server-blocks-virtual-hosts-on-ubuntu-16-04
If your users will have no direct access to the server this step should not be necessary. Should you choose to go forward, this guide seems to have all the bases covered on how to configure PHP-FPM for this type of use-case.
Hi, I finally go it going. You need one hhvm installation and the rest will work. Follow these tuts:
https://www.howtoforge.com/tutorial/install-wordpress-nginx-mariadb-hhvm-debian-8/ https://www.digitalocean.com/community/tutorials/how-to-set-up-wordpress-multisite-with-nginx-on-ubuntu-14-04
I strongly recommend you use MariaDB instead of MySQL
And the Nginx will look like these FOR EACH SITE. Place the blocks at /etc/nginx/sites-available/default (you can make a copy of default and then delete everything)
All the best.
Thanks ryanpq for the quick reply. I understood your point of view regarding security, but I would like to know how to isolate the websites in the new environment that is Nginx with HHVM, maybe I was not clear enough in my initial question. Thank you anyway!