Last active
May 16, 2017 20:45
-
-
Save elclanrs/e2eb6b1498bb92b8439356227a39ab40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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