Skip to content

Server Prerequisites

Sein Coray edited this page Jul 21, 2018 · 32 revisions

To set up a Hashtopolis server you will need following components:

  • A web server (Apache 2 recommended, but Nginx also possible, read below for nginx notes)
  • 64-bit PHP 7.0+
  • php-gd modules, pear, php-curl
  • MySQL server 5.x with a database user with all privileges on a database

You may want to increase these PHP parameters to accommodate your intended usage.

sudo nano /etc/php/7.0/apache2/php.ini
memory_limit = ...
upload_max_filesize = ...
post_max_size = ...

Ubuntu 16.10 Install with Apache2

Video Tutorial (Thanks to winxp5421)

Hashtopolis Install video

Installation procedure

Install required software:

sudo apt update && sudo apt upgrade
sudo apt install mysql-server
sudo apt install apache2
sudo apt install libapache2-mod-php php-mysql php php-gd php-pear php-curl
sudo apt install git
sudo apt install phpmyadmin

secure the mysql installation:

mysql_secure_installation

Create a mySQL User and a Database the user can read and write to by navigating to: http://<serverIP>/phpmyadmin

clone the source code and put it into the www dir:

git clone https://github.com/s3inlc/hashtopolis.git
cd hashtopolis/src
sudo mkdir /var/www/hashtopolis
sudo cp -r * /var/www/hashtopolis
sudo chown -R www-data:www-data /var/www/hashtopolis

Make sure that on Apache the "AllowOverride" directive is set to allow usage of .htaccess files. This way all the directories which should be protected from HTTP access will be automatically safe.

cleanup:

sudo rm -r /var/www/hashtopolis/install

Nginx notes

When using Hashtopolis with nginx you need to set your nginx configuration to block http access to all directories which are protected with a .htaccess file.

Clone this wiki locally