This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
45 lines (39 loc) · 2.34 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
Permission setup:
-464/575 for almost everything with apache:somedevgroup owner (allows staff and interns in somedevgroup to code)
-664/775 for app/cache and app/logs (must be writable by apache)
-370 or 300 for app/store (must be writable but not readable -- for study data uploads)
Things to do:
- update your local bundles by using composer:
$ php composer.phar self-update
$ php composer.phar update
- copy address_format into vendor/commerceguys/addressing/resources/ (replace the original one)
$ cp address_format vendor/commerceguys/addressing/resources/ -r
- create the database in the MySQL db (requires connecting to the db as root)
CREATE DATABASE `yourprojectname`;
- create the appropriate user in the MySQL db, with a password of your choice
CREATE USER 'yourprojectname'@'localhost' IDENTIFIED BY 'yourGENERATEDandLONGpassword';
GRANT ALL PRIVILEGES ON `yourprojectname`.* TO 'yourprojectname'@'localhost' WITH GRANT OPTION;
- give the password to the authorised users by leaving it in a file in their home
- create app/config/parameters.yml and add your MySQL user/password information
$ cp app/config/parameters.yml.dist app/config/parameters.yml
$ nano app/configs.parameters.yml
- generate the DB tables with Doctrine
$ php app/console doctrine:schema:update --force
- generate the CSS and JS files with Assetic
$ php app/console assetic:dump --env=prod --no-debug
- make sure app/store/ is configured as desired (at least writable upload/, payment/ and screening/ folders):
# mkdir app/store/{upload,payment,screening} -p
# chmod 370 app/store
# chown apache:<somedevgroup> app/store
- [tweak app/config/ further if necessary, normally you don't need to]
- go to src/UCL/StudyBundle/Resources/config/ and hack your project into shape!
- if not using the forum, remove the web/forum directory, else read below
- when done hacking, modify web/app_dev.php to remove developer mode
If using the forum:
- Complete the install by moving conf-defaults to conf and following the website's instructions:
$ mv web/forum/conf-defaults web/forum/conf
CREATE DATABASE `yourforumname`;
CREATE USER 'yourforumname'@'localhost' IDENTIFIED BY 'yourGENERATEDandLONGpassword';
GRANT ALL PRIVILEGES ON `yourforumname`.* TO 'yourforumname'@'localhost' WITH GRANT OPTION;
(go to website and fill the install form)
- Integrate the forum with your website