From 70e28d33378716c7f44ef7055f6fb1b00450cfac Mon Sep 17 00:00:00 2001 From: Wruczek Date: Thu, 2 Feb 2017 23:05:56 +0100 Subject: [PATCH] Created Website Installation (markdown) --- Website-Installation.md | 55 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Website-Installation.md diff --git a/Website-Installation.md b/Website-Installation.md new file mode 100644 index 0000000..4f371cd --- /dev/null +++ b/Website-Installation.md @@ -0,0 +1,55 @@ +This is a short tutorial on installing ts-website. + +### Requirements +#### General: +- A web server, shared hosting or dedicated server running Apache or nginx +- Access to your web server (via shell or FTP) +- A FTP Client + +#### Web Server: +- PHP 5.5 version or greater +- Enabled support for ``utf8_encode`` + +### Recommended configuration +- We recommend using PHP 7 with nginx or Apache + +`sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-cli php7.0-mysql php-xml php7.0-mbstring` + +### Recommended web server configuration +**Apache**: + 1. Enable [.htaccess support](http://stackoverflow.com/a/22526144) + 2. Enable mod_rewrite: (`sudo a2enmod rewrite && sudo service apache2 restart`) + 3. Edit `.htaccess` files, uncomment line number 19 (remove "#") + 4. Change `enablehta` in `config.php` to `true` + +**nginx**: + 1. Make sure your config is similar to [this one](https://gist.github.com/Wruczek/6ea965815e11a6c4f86c2771c65bda48) + - `.php` files served without extension + - Error pages changed to custom ones + 2. Change path to error pages + 3. Edit `.htaccess` files, uncomment line number 19 (remove "#") + 4. Change `enablehta` in `config.php` to `true` + +### Choose a installation method: +- [Normal installation](#normal-installation) - easier but slower + - if you don't have a SSH access, or you are not comfortable using it +- [Installation with shell access](#installation-with-shell-access) - harder but way faster + - if you have a shell access to your server + +### Normal installation +1. Download the latest website files from [here](https://github.com/Wruczek/ts-website/archive/master.zip). +2. Unzip downloaded files there, you will get a `ts-website-master` folder +3. Connect to FTP and upload files from inside of the `ts-website-master` folder to your web server +4. Navigate to your web server address in your browser + +### Installation with shell access +1. Connect to your SSH +2. `cd` into your web server directory (usually located in `/var/www` or `/var/www/html`) +3. Run: `wget https://github.com/Wruczek/ts-website/archive/master.zip && unzip master.zip && rm master.zip` +4. To move the files to the root directory, run: `mv ts-website-master/{*,.*} . 2>/dev/null;rm -r ts-website-master/ +` +5. Navigate to your web server address in your browser + +*** + +##### Heavly inspired by [piwik](http://piwik.org/docs/) documentation \ No newline at end of file