Skip to content

boo1ean/network

Repository files navigation

Conventions

Before starting work on the project read our code conventions

How to setup project locally

1. Clone project from github: git clone git@github.com: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