Last active
January 19, 2017 15:21
-
-
Save miguelcperez/361bee4b40241c01ecbbd91fc18f0a77 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
- 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