Created
November 23, 2020 15:47
-
-
Save ThinkLikeLinux/e401edac1e7bb85df73166ec2dd5181b to your computer and use it in GitHub Desktop.
I will do Hashtopolis Install into Linux
This file contains hidden or 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
sudo apt update | |
sudo apt upgrade | |
sudo apt install apache2 | |
apache2 -v | |
sudo systemctl enable apache2 | |
sudo service apache2 restart | |
sudo service apache2 status | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
mysql --version | |
sudo service mysql enable | |
sudo service mysql restart | |
sudo service mysql status | |
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf | |
#And then change the bind-address line to 0.0.0.0 | |
# Save and exit | |
sudo ufw allow from any to any port 3306 proto tcp | |
sudo systemctl restart mysql | |
sudo systemctl enable mysql | |
sudo mysql | |
CREATE DATABASE hashtopolis; | |
CREATE USER 'netadmin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'H@Sh2021%'; | |
ALTER USER 'netadmin'@'localhost' IDENTIFIED WITH mysql_native_password BY 'H@Sh2021%'; | |
GRANT CREATE, ALTER, DROP, INSERT, UPDATE, DELETE, SELECT on *.* TO 'netadmin'@'localhost' WITH GRANT OPTION; | |
use hashtopolis; | |
FLUSH PRIVILEGES; | |
exit | |
mysql -u masum -p | |
sudo apt-get install software-properties-common | |
sudo add-apt-repository ppa:ondrej/php | |
sudo apt install php7.2-fpm php7.2-common php7.2-mbstring php7.2-xmlrpc php7.2-soap php7.2-gd php7.2-xml php7.2-intl php7.2-mysql php7.2-cli php7.2-zip php7.2-curl | |
sudo apt install libapache2-mod-php php-mysql php php-gd php-pear php-curl | |
php --version | |
sudo apt install mlocate | |
locate php | |
sudo nano /etc/php/7.2/cli/php.ini | |
file_uploads = On | |
allow_url_fopen = On | |
short_open_tag = On | |
memory_limit = 256M | |
upload_max_filesize = 100M | |
max_execution_time = 360 | |
date.timezone = America/Chicago | |
# Install PHPmyAdmin | |
sudo apt update | |
sudo apt install phpmyadmin | |
sudo apt install -y php-mbstring | |
sudo apt-get install gettext | |
sudo nano /etc/apache2/apache2.conf | |
# Then add the following line to the end of the file: | |
Include /etc/phpmyadmin/apache.conf | |
# save ctrl+x then y and hit enter. Then restart apache: | |
sudo service apache2 restart | |
# visit: http://localhost/phpmyadmin/ | |
git clone https://github.com/s3inlc/hashtopolis.git | |
sudo cp -r hashtopolis /var/www/hashtopolis | |
sudo chown -R www-data:www-data /var/www/hashtopolis | |
sudo nano /etc/apache2/apache2.conf | |
#Change | |
KeepAliveTimeout 10 | |
MaxKeepAliveRequests 1000 | |
AllowOverride All | |
sudo service apache2 restart | |
cd /etc/apache2/sites-available | |
sudo nano 000-default.conf | |
GNU nano 4.8 000-default.conf Modified | |
<VirtualHost *:80> | |
ServerName www.example.com | |
ServerAdmin webmaster@localhost | |
DocumentRoot /var/www/hashtopolis/src | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> | |
<Directory /var/www/hashtopolis/src> | |
AllowOverride All | |
</Directory> | |
#Save and exit | |
sudo service apache2 reload | |
sudo service apache2 restart | |
visit: http://localhost/src/i | |
If u need Hashtopolis related app setup Linux contact with me: | |
Telegram:@ThinkLikeLinux | |
email: [email protected] | |
WhatsApp:+8801309824364 | |
Skype:live:.cid.bd73b6d4d960b474 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment