Skip to content

Server Prerequisites

Sein Coray edited this page Jan 18, 2018 · 32 revisions

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

  • A web server (Apache 2 recommended, but Nginx also possible, read below for nginx notes)
  • PHP 5.3 or higher (7.0 recommended)
  • php-mcrypt, 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)

Hashtopussy 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-mcrypt 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>/myphpadmin

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

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

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/hashtopussy/install

Nginx notes

When using Hashtoupssy 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