This script will install WordPress in no time by quickly asking you a few questions.
- Create the database where you will install WordPress, remember its name.
- Create a directory in your sites folder where you will install WordPress.
- Place the automated-wordpress-install folder next to the directory you defined in (2)
- CD into your site directory (defined in 2)
- Type the following command:
../automated-wordpress-install/automated-wp-install.sh
- Answer the questions, pay attention to the username/password generated for your as output of the script:`
- WordPress will install and update any plugins.
If you would like to install additional plugins, you can define these two files:
- remote-plugins.sh
- local-plugins.sh
Inside each file you can define plugins you would like to install by writing the corresponding WP-CLI argument.
Then you can invoice them as such:
automated-wp-install.sh -plugins (installs Wordpress + remote plugins specified)
automated-wp-install.sh -plugins -local (installs Wordpress + remote plugins specified + local plugins specified)
`
- Made the script more interactive by asking DB credentials, home directory, and site root.
- Rewrote ReadMe with correct instructions.
- The script now loads the local and remote plugins from different script files.
- Added variables for database user and database password.
- Modified Git Ignore file.
- Cleaned up ReadMe.
- Added conditionals to test against parameters for installation (thanks Pao).
- First version, basic functionality.