Installing WordPress on an Ubuntu Server

Setting up a WordPress can be tedious, let’s simplify that!

$ sudo apt-get install mysql-client mysql-server
$ sudo mysql_secure_installation
$ sudo apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd

Now that we have everything installed and our mysql server setup. we can now clone the WordPress repo

$ wget -c
$ tar -xzvf latest.tar.gz
$ mysql -u root -p
mysql> CREATE DATABASE wp_myblog;
mysql> GRANT ALL PRIVILEGES ON wp_myblog.* TO 'your_username_here'@'localhost' IDENTIFIED BY 'your_chosen_password_here';
mysql> EXIT;

Instead of setting up all of the apache steps, instead, you can run the following to start a new PHP web server (5.4 and later)

php -S

For a full setup guide, the following is a good full write up.


Innovative, entrepreneurial and positively unsatisfied mind that constantly pushes the tech boundaries to create new solutions and devices that change people’s lives. Throughout my career, I have had the opportunity of having a multi-disciplinary experience, which led me to wear the hats of: Architect, IoT Consultant (Internet of Things Consultant), Developer, Designer, Engineer, Server Admin, Consultant and Project Manager – to name a few. Based on this diversified background, I get projects done by following smart ideas and well-planned goals. In a world which is getting more unconventional by the day, I use unconventional ways, and a very healthy dose of integrity, to create devices and solutions that help companies go from a steady present to a dynamic future.

You may also like...