If you’re thinking without writing, you only think you’re thinking.
(Leslie B. Lamport)

Apache2: Forbidden You don't have permission to access /dir/ on this server

sudo adduser username www-data

sudo chown -R www-data:www-data /var/www

sudo chmod -R g+rw /var/www