Skip to content

Instantly share code, notes, and snippets.

@linuxbiekaisar
Last active February 4, 2022 19:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save linuxbiekaisar/aa0ef238fc9752d2e9cf8bf1fa0c76d1 to your computer and use it in GitHub Desktop.
Save linuxbiekaisar/aa0ef238fc9752d2e9cf8bf1fa0c76d1 to your computer and use it in GitHub Desktop.
How to setup hashtopolis in Ubuntu
#!/bin/sh
# Login as root
sudo su
# update system and install mysql
apt update
apt-get install mysql-server
# install different repository
apt-get install apache2 libapache2-mod-php php-mysql php php-gd php-pear php-curl git
# Create database
mysql_secure_installation
mysql -u root
CREATE DATABASE hashtopolis;
CREATE USER 'hashtopolis'@'localhost' IDENTIFIED BY 'hashtopolis';
GRANT ALL PRIVILEGES ON hashtopolis.* TO 'hashtopolis'@'localhost';
FLUSH PRIVILEGES;
EXIT;
cd /var/www/
git clone https://github.com/s3inlc/hashtopolis
cd hashtopolis
nano /etc/apache2/sites-available/000-default.conf
# Change the followings
DocumentRoot /var/www/hashtoplis/src
nano /etc/php/7.2/apache2/php.ini
#Change this line
memory_limit = 512M
upload_max_filesize = 500M
post_max_size = 500M
service apache2 reload
chown -R www-data:www-data .
@tomasvanagas
Copy link

DocumentRoot /var/www/hashtoplis/src

There is mistype in this line in word 'hashtopolis'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment