# Tweet Live

This is a README for the local installation of polemictweet.com website using a native Apache server

## Getting Started

Install Apache, PHP, php-intl and php-mod

```
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
```
Edit Apache configuration file

```
sudo vi /etc/apache2/sites-enabled/00-default.conf
```
Replace "/var/www/html" by the path of "tweet_live/web"

And add 

 ```    
<Directory /path/to/tweet_live/web>
Options Indexes FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride All
Require all granted
</Directory>
```

## Configuration

Set up configuration file

```
cd tweet_live
```

```
cp config.php.tmpl config.php
```
In the configuration file, replace 

"define('URL_ROOT', 'http://127.0.0.1/IRI/REPO_TWEET_LIVE/web/');" by "define('URL_ROOT', 'http://localhost/');"

and

"$C_default_registry = 'cdn';" by $C_default_registry = 'local';"

## Run

Check if the "vendor" directory exist

