This script configures LEMP stack on Ubuntu machine and installs the latest WordPress.
-
Clone the repo in a directory.
$ git clone https://github.com/bhavin192/wpinstall $ cd wpinstall
-
Modify the file
nginx.conf
if you want to customize the site configuration. -
Make the script executable.
$ sudo chmod +x wpinstall.sh
-
Run the script, it will ask for domain name of the site.
$ sudo ./wpinstall.sh
or you can specify the domain name as command line argument
$ sudo ./wpinstall.sh --domain "wp.example.com"
-
Log is stored in the file
wpinstall.log
-
After successful execution of the script, open the displayed link in a browser to complete further setup.
This script works but has lot of work to be done in order to ensure if WordPress is installed correctly.
Tested on Ubuntu 16.04 LTS (xenial)
instance of GCP
and AWS
.
To setup WordPress on LEMP stack using Docker see the docker-setup
directory.
WPInstall is licensed under GNU General Public License v3.0. See LICENSE for the full license text.