Skip to content

Instantly share code, notes, and snippets.

@elclanrs
Last active May 16, 2017 20:45
Show Gist options
  • Select an option

  • Save elclanrs/e2eb6b1498bb92b8439356227a39ab40 to your computer and use it in GitHub Desktop.

Select an option

Save elclanrs/e2eb6b1498bb92b8439356227a39ab40 to your computer and use it in GitHub Desktop.
#!/bin/bash
apt update
apt install -y lamp-server^
apt install -y phpmyadmin
apt install -y vim
a2enmod rewrite
service apache2 restart
adduser vagrant www-data
echo "<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /vagrant/wordpress
<Directory /vagrant/wordpress/>
AllowOverride All
Require all granted
EnableSendfile off
</Directory>
ErrorLog \${APACHE_LOG_DIR}/error.log
CustomLog \${APACHE_LOG_DIR}/access.log combined
</VirtualHost>" > /etc/apache2/sites-enabled/000-default.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment