This is a simple script that allow you to create a VHost for your PHP based website on your Nginx server. Also the system is able to create a sftp user to manage the contents, disabling the shell access.
All the websites will be stored under /srv/www directory and the main domain will always be the non-www one.
Requirements:
- PHP-FPM;
- NGINX;
Credits:
This script was inspired by the work of: http://www.sebdangerfield.me.uk/2012/05/nginx-and-php-fpm-bash-script-for-creating-new-vhosts-under-separate-fpm-pools/
Nginx Template inspired by: http://rtcamp.com/tutorials/nginx-wordpress-fastcgi_cache-with-conditional-purging/
This work is free of any charge, but if you want to donate for a beer or a coffee feel free to do it!
Bitcoin: 1BWmKKaDzyvVqNQgZNUWV7rcU91MMqPAXT
- 11/08/2011 Project created by Mitesh Ashar
- 27/11/2012
- 05/06/2013 Added support for sftp + /var/www
- 08/06/2013 Moved to /srv/www and subdomain support
- 09/06/2013 Added support with Wordpress dedicated template, changed php-fpm permission to www-data