Created
August 26, 2015 21:33
-
-
Save nw/eee923e628ba24470bd2 to your computer and use it in GitHub Desktop.
This file contains 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
# example uses shared folder /media/sf_vm/www, change for your needs | |
sudo usermod -a -G vboxsf www-data | |
sudo usermod -a -G vboxsf <user name> | |
cd /etc/apache2/sites-available | |
sudo cp 000-default.conf weblab.conf | |
sudo nano weblab.conf | |
// Change DocumentRoot to point at your shared mount `www` directory /media/sf_vm/www | |
// cntrl-x then 'Y' to save changes | |
cd ../sites-enabled/ | |
sudo rm 000-default.conf | |
sudo ln -s ../sites-available/weblab.conf weblab.conf | |
cd ../conf-available | |
sudo nano host-share.conf | |
# add contents of host-share.conf below | |
cd ../conf-enabled | |
sudo ln -s ../conf-available/host-share.conf host-share.conf | |
cp /var/www/html/index.html /media/sf_vm/www/index.html | |
cd /media/sf_vm/www | |
nano info.php | |
# add contents of info.php below and save | |
sudo apt-get install phpmyadmin | |
# sudo apt-get purge phpmyadmin // interactive install is easy to screw up, this is just incase to start the process over. | |
sudo service apache2 restart |
This file contains 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
<?php | |
phpinfo(); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment