Update All
sudo apt-get update
sudo apt-get install -y apache2
sudo apt-get install -y apache2 apache2-utils
sudo apt-get install -y mysql-server php5-mysql
sudo mysql_secure_installation
sudo apt-get install -y php5 libapache2-mod-php5 php5-mcrypt
sudo nano /etc/apache2/mods-enabled/dir.conf
cat /etc/apache2/mods-enabled/dir.conf
sudo service apache2 restart
sudo apt-get install php5-xdebug
sudo find / -name 'opcache.so'
sudo service apache2 restart
sudo nano /var/www/html/info.php
sudo apt-get install -y git-core
git config --global user.name "me"
git config --global user.email jasper@me.com
sudo apt-get install -y openssh-server
scp backup-domain_com-2014_08_29-full-xmx68o1np8.zip me@ubuntu.ubu:/var/www/html/
scp importbuddy.php me@ubuntu.ubu:/var/www/html/
sudo adduser me www-data
sudo chown username:www-data /var/www -R
sudo chmod g+w /var/www -R
sudo apt-get update
sudo apt-get install -y vsftpd
sudo reboot
cd /var/www/html/
chown me:www-data importbuddy.php
As access to user me is not allowed with 755 changed to 775. Server not shared and php mod used so OK
sudo service apache2 restart
sudo service apache2 restart
<Directory /usr/share> AllowOverride None Require all granted
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted
<Directory /srv/> Options Indexes FollowSymLinks AllowOverride None Require all granted
```sudo nano /etc/apache2/apache2.conf ```
```sudo service apache2 restart```
```cd /etc/apache2/mods-available```
<h4>Add Mod Headers as WordPress had issues loading Dashboard without it..</h4>
```sudo a2enmod headers```
```sudo service apache2 restart```
<h4>Add vhost in Ubuntu</h4>
```sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/img.ubu.conf```
```sudo nano /etc/apache2/sites-available/img.ubu.conf```
```sudo a2ensite img.ubu.conf```
```sudo service apache2 reload```