Skip to content

Instantly share code, notes, and snippets.

@elclanrs
Last active May 16, 2017 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elclanrs/e2eb6b1498bb92b8439356227a39ab40 to your computer and use it in GitHub Desktop.
Save elclanrs/e2eb6b1498bb92b8439356227a39ab40 to your computer and use it in GitHub Desktop.
  1. Install dependencies
apt update
apt install -y lamp-server^
apt install -y phpmyadmin
a2enmod rewrite # to use permalinks and htaccess
service apache2 restart
adduser vagrant www-data
  1. Edit /etc/apache/sites-enabled/000-default.conf:
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        <Directory /var/www/html/>
                AllowOverride All
                Require all granted
        </Directory>

        ErrorLog \${APACHE_LOG_DIR}/error.log
        CustomLog \${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment