Skip to content

Latest commit

 

History

History
30 lines (28 loc) · 1.37 KB

README.md

File metadata and controls

30 lines (28 loc) · 1.37 KB

Donut

This script automatize the first server install process in an Ubuntu/Debian environment.

  • Get an empty virtual server
  • Download and launch this script under the /home/
$ cd 
$ wget -p https://raw.githubusercontent.com/gubi/Donut/master/server_init.sh -O server_init.sh
$ ./server_init.sh <WEBSERVER_TYPE> <DOMAIN.TLD>

(for example: $ ./server_init.sh apache example.com)

The script will proceed to execute this sequence of stuff:

  1. Add ondrej apt-repository for the latest version of PHP (Best supported)
  2. Add certbot apt-repository for the last version of Let’s Encrypt
  3. Update the System
  4. Upgrade the system
  5. Install your preferred Web Server
  6. Install python-certbot
  7. Update the System
  8. Install curl and software-properties-common
  9. Install the latest version of PHP
  10. Enable and configure the Firewall (ufw)
  11. Modify permissions on webserver root
  12. Remove the default html folder created by the web server
  13. Create the index.php and the info.php files
  14. Configure the web server (removing also the default configurations)
  15. Enable certbot certificates to keep updated via cron
  16. Restart the server

Please, help me perfecting this project