How to make Automated Startup Script to Install WordPress with Apache, PHP and MySQL

You can copy and paste the following bash script into the startup script area of the Vultr Control Panel.

It will install all of necessary packages to run WordPress, generate and import database credentials, and open the necessary firewall ports.

Install WordPress with Apache, PHP and MySQL (Automated Startup Script)

Install WordPress with Apache, PHP and MySQL (Automated Startup Script)



 

You will not need, but can retrieve the database credentials by tailing the end of the /tmp/firstboot.log file after installation. It is also recommended to remove the /tmp/firstboot.log file upon installation. You will be able to access your installation at http://yourip.