equal
deleted
inserted
replaced
|
1 # Tweet Live |
|
2 |
|
3 This is a README for the local installation of polemictweet.com website using a native Apache server |
|
4 |
|
5 ## Getting Started |
|
6 |
|
7 Install Apache, PHP, php-intl and php-mod |
|
8 |
|
9 ``` |
|
10 sudo apt update && sudo apt-get install apache2 && sudo apt-get install php && sudo apt-get install php-intl && sudo apt-get install libapache2-mod-php |
|
11 ``` |
|
12 Edit Apache configuration file |
|
13 |
|
14 ``` |
|
15 sudo vi /etc/apache2/sites-enabled/00-default.conf |
|
16 ``` |
|
17 Replace "/var/www/html" by the path of "tweet_live/web" |
|
18 |
|
19 And add |
|
20 |
|
21 ``` |
|
22 <Directory /path/to/tweet_live/web> |
|
23 Options Indexes FollowSymLinks |
|
24 DirectoryIndex index.php index.html |
|
25 AllowOverride All |
|
26 Require all granted |
|
27 </Directory> |
|
28 ``` |
|
29 |
|
30 ## Configuration |
|
31 |
|
32 Set up configuration file |
|
33 |
|
34 ``` |
|
35 cd tweet_live |
|
36 ``` |
|
37 |
|
38 ``` |
|
39 cp config.php.tmpl config.php |
|
40 ``` |
|
41 In the configuration file, replace |
|
42 |
|
43 "define('URL_ROOT', 'http://127.0.0.1/IRI/REPO_TWEET_LIVE/web/');" by "define('URL_ROOT', 'http://localhost/');" |
|
44 |
|
45 and |
|
46 |
|
47 "$C_default_registry = 'cdn';" by $C_default_registry = 'local';" |
|
48 |
|
49 ## Run |
|
50 |
|
51 Check if the "vendor" directory exist |
|
52 |