Connect with us

Hi, what are you looking for?

Shell Scripting

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 'wp-install.sh' https://raw.githubusercontent.com/WebPraktikos/wp-install/master/wp-install.sh
Step-III (Run the Scripts)
# bash wp-install.sh
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 DATABASE techbrown
--------------
--------------
CREATE USER techbrown@localhost IDENTIFIED BY 'techbrown'
--------------
--------------
GRANT ALL PRIVILEGES ON techbrown.* TO techbrown@localhost
--------------
--------------
FLUSH PRIVILEGES
--------------
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.

Comments
Advertisement
Advertisement

Linux

In this tutorial we will configure ISCSI Target Server on CentOS 8 / RHEL 8. ISCSI stands for Internet Small Computer Systems Interface.  This...

Linux

In this tutorial we will configure SELinux Modes on CentOS 8 / RHEL 8. SELinux stands for Security-Enhanced Linux and it is developed by...

Linux

DNF stands Dandified YUM and this is the default package manager for RHEL 8 / CentOS 8.  This tutorial explains you how to create...

Linux

If you forget a root password of your RHEL 8 and CentOS 8 and want to reset the password so that the RHEL 8...

Windows

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

Advertisement

You May Also Like

Windows

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

Windows

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

Windows

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

Windows

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