What this bash script does

  • Installs apache2 webserver, mysql-server and PHP required for wordpress
  • Enables Apache2 webserver to autostart
  • Enables mysql-server to autostart
  • Creates a randomly generated mysql DB name
  • Creates and randomly generated mysql username and password
  • Creates a randomly generated mysql root user password
  • Downloads and installs wordpress
  • Writes the usernames and passwords to local files /var/log/wpinstall.log
Copy to Clipboard

Github

Download

Copy to Clipboard