Skip to content

Instantly share code, notes, and snippets.

@miguelcperez
Last active January 19, 2017 15:21
Show Gist options
  • Save miguelcperez/361bee4b40241c01ecbbd91fc18f0a77 to your computer and use it in GitHub Desktop.
Save miguelcperez/361bee4b40241c01ecbbd91fc18f0a77 to your computer and use it in GitHub Desktop.
- Enter into the folder sites-available.
* cd /etc/apache2/sites-available
- Add this text and create your site conf file.
* sudo nano site.dev.conf
<VirtualHost *:80>
ServerName site.dev
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/project_name/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SetEnv APPLICATION_ENV "development"
<Directory /var/www/html/project_name/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
-Restart Apache Service.
* sudo service apache2 restart
-Enable virtual host.
* sudo a2ensite dota.dev.conf
-Restart Apache Service.
* sudo service apache2 restart
-Change Permissions
* chmod o+w -R storage
* chmod o+w -R bootstrap/cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment