Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents

Introduction

Note

There is a better pattern using container technology to segregate accounts by container and mount file systems between containers. I'll write this up this approach if enough people want to use it.

As an application, WordPress is easy to use and feature rich. It has an established community, and in my opinion, the best selection of themes and the most usable blogging cms software package available. 

...

Initially I tried to make this work with ACL permissions, but the technology does not work as you would expect and not workable. Instead, I will be looking at container technology to segregate accounts by container and mount file systems between containers.

Install Packages

Install the packages to run WordPress,

For Ubuntu 16 

Code Block
languagebash
sudo apt-get install php # Installs PHP
sudo apt-get install mysql-server # Installs MySQL
sudo apt-get install php-mysql # Libraries to connect PHP to MySQL
sudo apt-get install php-gd # Libraries to allow image editing through browser, "Edit Media"
sudo apt-get install libapache2-mod-php # As of Apache 2.4 php module is no longer installed
sudo apt-get install php7.0-xml # Libraries to allow uploads


For Ubuntu 12 and under run the commands listed below

Code Block
languagebash
sudo apt-get install php5 # Installs PHP
sudo apt-get install mysql-server # Installs MySQL
sudo apt-get install php5-mysql # Libraries to connect PHP to MySQL
sudo apt-get install php5-gd # Libraries to allow image editing through browser, "Edit Media"

...

Edit php.ini to make use of the folders.
Ubuntu 16 

Code Block
languagebash
sudo vi /etc/php/7.0/cli/php.ini

Ubuntu 12

Code Block
languagebash
sudo vi /etc/php5/apache2/php.ini

Set Running Directory

...

Setup your Apache Virtual Hosts with the website root.

Info
For Ubuntu 16 php 7 mod needs to be enabled so run command sudo a2enmod php7.0

Setup WordPress

Make sure you are logged in a sudo enabled user. Setup WordPress as follows,

...