-
Notifications
You must be signed in to change notification settings - Fork 246
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) TODO: here point to somewhere with an explanation what is special when using nginx. permissions on folders etc.)
- 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 = ...
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
cleanup:
sudo rm -r /var/www/hashtopussy/install