-
Notifications
You must be signed in to change notification settings - Fork 30
How to install Crew
ratibus edited this page Feb 5, 2013
·
10 revisions
cd /path/to/your/workspace
git clone git://github.com/pmsipilot/Crew.git
cd Crew
CREATE DATABASE crew DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL ON crew.* TO crew@localhost IDENTIFIED BY 'crew-sql-password';
FLUSH PRIVILEGES;
cp config/databases.yml.dist config/databases.yml
cp config/propel.ini.dist config/propel.ini
Edit those new files, to configure the database connection :
- replace
%db-host%
with your database host name (ex: localhost) - replace
%db-name%
with your database name (ex: crew) - replace
%db-user%
with your database username (ex: usr-crew) - replace
%db-password%
with your database password (ex: toto++)
./symfony crew:init
With public directory : /path/to/your/workspace/Crew/web
Apache configuration file sample :
Alias /crew/packed /path/to/your/workspace/Crew/cache/packed
Alias /crew /path/to/your/workspace/Crew/web
<Directory "/path/to/your/workspace/Crew/web">
AllowOverride All
Allow from All
</Directory>
<Directory "/path/to/your/workspace/Crew/cache/packed">
Allow from All
<IfModule mod_deflate.c>
BrowserMatch ^Mozilla/4 no-gzip
BrowserMatch \bMSIE\s7 !no-gzip
BrowserMatch \bMSIE.*SV !no-gzip
BrowserMatch \bOpera !no-gzip
SetOutputFilter DEFLATE
</IfModule>
<IfModule mod_headers.c>
Header append Vary User-Agent env=!dont-vary
</IfModule>
</Directory>
<FilesMatch "\.(gif|jpg|jpeg|png|css|js)$">
FileETag none
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 11 months"
</IfModule>
</FilesMatch>