Last active
February 4, 2022 19:53
-
-
Save linuxbiekaisar/aa0ef238fc9752d2e9cf8bf1fa0c76d1 to your computer and use it in GitHub Desktop.
How to setup hashtopolis in Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 . | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DocumentRoot /var/www/hashtoplis/src
There is mistype in this line in word 'hashtopolis'