Hosting your WordPress blogs on your own server is better than on a shared server. New webmasters will opt for shared environments as they’re easy to setup and manage.

The one big hurdle of running your own server is you become the server, network and security guru. Everything falls on your shoulder.

You must secure and patch it with updates, configure it to enhance its performance which can be daunting for many new users.

As daunting as it may look to host and manage your WordPress content yourself, it’s far better than in a shared environment.

So, this brief tutorial is going to show you how to easily configure your Ubuntu Linux server and take the fears away. Installing WordPress on Ubuntu Linux is pretty easy.

All one has to do is to make sure he/she has root access to the server and that the server has Internet connectivity. The rest can come later.

Below are the steps to enable WordPress to function on Ubuntu server.

Install Apache2 Web server

The first thing to do is to install Apache2 webserver. WordPress requires a webserver to function.. to install Apache2, run the commands below.

sudo apt-get install apache2

The three commands below are necessary but not required.

sudo systemctl start apache2
sudo systemctl restart apache2
sudo systemctl enable apache2

Now that Apache2 is installed, the next step is to install a database server.

Install mysql database server

WordPress also requires a database server to function. WordPress uses a database server to store its content. To install a database server on Ubuntu servers, run the commands below.

sudo apt-get install mysql-server mysql-client

During the installation, you’ll be prompted to type and confirm a root password for MySQL.. do it, please.


The three commends below are necessary but not required.

sudo systemctl start mysql
sudo systemctl restart mysql
sudo systemctl enable mysql

Now that Apache2 webserver and MySQL database server packages are installed, the final piece to allow WordPress to function on Ubuntu servers are PHP and its modules.

Install PHP5 & Modules

WordPress also requires PHP5 and some of its modules to function. To install these packages, run the commands below.

sudo apt-get -y install php5 libapache2-mod-php5 php5-mysqlnd php5-curl php5-gd php-pear php5-imagick php5-mcrypt php5-ps php5-pspell php5-recode php5-tidy php5-xmlrpc php5-xsl

At this point, your server is now ready to configure for WordPress.. All required packages to support WordPress are now installed.

If you reach this point of the post and you didn’t get any errors after running the commands above, then you’re good.. If you followed everything above correct, then you shouldn’t get errors.

Our next tutorial will show you how to configure these software packages. We’ll configure from here in our next post.


How To Install LAMP On Ubuntu 15.04 Server