This project should create a small PHP sandbox environment ready for the user to upload the PHP application in it's root directory.
It is assumed that Nginx, PHP-FPM, MySQL/MariaDB are installed and configured.
Currently the playbook is compatible with Ubuntu only.
When triggering the script:
- The user must provide the FQDN of which the application will be served from.
- Specify to create a database or not
The logical sequence should be:
- Create a directory for the application based on the user input i.e.
/var/www/www.example.com
- Put index.php in the root directory
/var/www/www.example.com/index.php
- If a database is required, then create a new database, database user and password.
- Create a new nginx virtual host for serving the new application