Skip to content

Instantly share code, notes, and snippets.

@wouerner
Last active November 5, 2015 19:26
Show Gist options
  • Save wouerner/b0cbaf10dbe337471ccc to your computer and use it in GitHub Desktop.
Save wouerner/b0cbaf10dbe337471ccc to your computer and use it in GitHub Desktop.
composer create-project laravel/laravel --prefer-dist foo2
sudo vim /etc/hosts
add 192.168.33.11 foo2.local.dev
cd ~/Dev/maquina/vagrant
vagrant up
vagrant ssh
cd /etc/apache2/sites-available/
sudo cp site_foo.conf foo2.conf
sudo a2ensite foo2.conf
sudo vim foo2.conf
add
<VirtualHost *:80>
ServerName foo2.local.dev
DocumentRoot "/var/www/foo2/public"
<Directory "/var/www/foo2/public">
DirectoryIndex index.php
AllowOverride All
Allow from all
Require all granted
</Directory>
</VirtualHost>
sudo a2ensite foo2.conf
sudo service apache2 reload
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment