Created
September 11, 2015 11:28
-
-
Save kis/00a47fef49bf833c1e2a 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
How to setup project locally | |
1. Clone project from github: git clone [email protected]:boo1ean/network.git | |
2. Go to project dir and run: ./composer.phar install | |
3. Set rw permissions for runtime folders: chmod 777 -R public/assets/ app/runtime/ | |
4. Add new site record to apache conf sudo gedit /etc/apache2/sites-available/network (will create new file if doesn't exist) And put: | |
<VirtualHost *:80> | |
ServerName your-servername-here | |
DocumentRoot /path/to/network/public | |
<Directory /path/to/network/public> | |
DirectoryIndex index.php | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
5. Add new record to hosts file due to have access to local server through alias sudo gedit /etc/hosts and add new line: | |
NOTE: alias should be same as ServerName from apache virtual host config | |
127.0.0.1 your-servername-here | |
6. Enable mod_rewrite for apache: sudo a2enmod rewrite | |
7. Enable newly added site: sudo a2ensite network | |
8. Restart apache: sudo service apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment