Linode Ubuntu 17.10 Install

apt update && sudo apt dist-upgrade && sudo apt autoremove

-APACHE2
apt install apache2
ufw allow 'Apache Full'

-Mariadb
apt install mariadb-server mariadb-client
mysql_secure_installation

-PHP
apt install php-fpm
apt install php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysqlnd php-cli php-mcrypt php-ldap php-zip php-curl php-apcu php-imagick

-config
vim /etc/php/7.1/fpm/pool.d/www.conf
listen = 127.0.0.1:9000

vim /etc/apache2/sites-enabled/000-default.conf

SetHandler "proxy:fcgi://127.0.0.1:9000/"

a2enmod proxy_fcgi