Connect with us

Hi, what are you looking for?

Shell Script

Bash Script: Install WordPress with LAMP Stack on Ubuntu 16.04

How to Install WordPress Using Script on Ubuntu 16.04 / Debian 9 / Linux Mint 19 . WordPress installations is the most easy installations during the present period of time. Thanks to GITHUB user webpraktikos that is provides the script to install WordPress very easy providing script named as WP-Install on GITHUB. Thanks to Linus Torvalds for making such a great GITHUB websites for supporting and developing the innovative open source technologies.

Install LAMP on Ubuntu / Debian / Linux Mint

Step-I (Installation of LAMP Packages)
# apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql php5-mysqlnd curl
Step-II (Setup the MySQL Credentials)
Setup the MySQL credentials during the LAMP installations

2 configuring Mysql server root repeat password

Step-II (Restart the Apache and MySQL services)
# service apache2 restart
# service mysql restart

Install WordPress Using Scripts on Ubuntu / Debian / Linux Mint

Step-I (Change the Directory)
# cd /var/www/html
Step-II (Download the Scripts)
# curl -L -o ''
Step-III (Run the Scripts)
# bash
Sample Output

Note: Replace techbrown with your desired credentials.

WordPress database name: techbrown
WordPress database user: techbrown
WordPress database password:
Install WordPress? [Y/n] y
Create a NEW database with entered info? [Y/n] y
Enter password for the MySQL root account:
CREATE USER techbrown@localhost IDENTIFIED BY 'techbrown'
GRANT ALL PRIVILEGES ON techbrown.* TO techbrown@localhost
Now, go to your WordPress site to finish installation!
Step-IV (Check your IP)
# ifconfig
Step-V (Open your Web Browser (Firefox) to setup your WordPress Websites)
3 WordPress Installation Credential Setup

4 WordPress Credential Status

Step-VI (Login to WordPress)
Login to WordPress with your credentials

5 WordPress Login
6 WordPress Dashboard

Step-VII (Run Your WordPress Website)
7 WordPress Site

Final Results:

That’s all finally you have setup your WordPress Blog by using the GIT-HUB WordPress installation Scripts this is the most easy and analytical methods to install your WordPress blog with LAMP packages and ready to install the WordPress installation even in seconds without using any tool the sript will work out of box. IF you have any queries regarding to the setup user the comment section below.


You May Also Like


How to auto upgrade JioFi firmware for JioFi 2 / JioFi 3 / JioFi 4 / JioFi 5 / JioFi 6 and other JioFi...


Internet is the most important public network for connecting to the WEB. For internet connection requirement the ISP is required as well as it...


How to download and install the Mobile Intel 4 Series Express Chipset Graphics Drivers for Windows 10.  Windows 10 is the one of the...


How to Install and Configure PCSX2 on Windows 10. The Windows 10 is the most recommended operating system for the Games. In stream platform...