...
Install the packages to run WordPress,
For Ubuntu 16
Code Block | ||
---|---|---|
| ||
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 |
For Ubuntu 12 and under run the commands listed below
Code Block | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
sudo vi /etc/php/7.0/cli/php.ini |
Ubuntu 12
Code Block | ||
---|---|---|
| ||
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,
...