diff -r 92acbeb07057 -r 0b68fd2f9547 README.md --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Tue Dec 03 11:54:06 2019 +0100 @@ -0,0 +1,52 @@ +# 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 + + ``` + +Options Indexes FollowSymLinks +DirectoryIndex index.php index.html +AllowOverride All +Require all granted + +``` + +## 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 +