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
update your system, Install prerequisites: | |
sudo apt install -y git curl wget zip unzip | |
Install PHP 7+ | |
============== | |
sudo apt install php libapache2-mod-php php-mysql | |
sudo apt install php7.2-common php7.2-cli php7.2-gd php7.2-mysql php7.2-curl php7.2-intl php7.2-mbstring php7.2-bcmath php7.2-imap php7.2-xml php7.2-zip | |
php --version | |
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
1.Enable Disable firewall on Ubuntu 18.04 | |
Check a current firewall status | |
$ sudo ufw status | |
Enable Firewall | |
$ sudo ufw enable | |
Disable Firewall |
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
# Youtube: https://www.youtube.com/watch?v=CdK8Nb-ED9M | |
#Install NGINX | |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
sudo systemctl restart nginx | |
sudo systemctl stop nginx | |
sudo systemctl start nginx | |
sudo systemctl status nginx |
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
# Youtube: https://www.youtube.com/watch?v=CdK8Nb-ED9M | |
#Install NGINX | |
sudo apt-get update | |
sudo apt-get install nginx | |
sudo systemctl start nginx | |
sudo systemctl enable nginx | |
sudo systemctl restart nginx | |
sudo systemctl stop nginx | |
sudo systemctl start nginx | |
sudo systemctl status nginx |
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
#!/bin/sh | |
# This command will update & upgrade your system | |
sudo apt update && sudo apt-get upgrade --fix-missing | |
# Install the package build-essential for making the package and checkinstall for putting it into your package manager | |
sudo apt install build-essential checkinstall | |
# Install Ubuntu Restricted Extras | |
sudo apt install ubuntu-restricted-extras |
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 | |
mysql --version | |
sudo apt install mariadb-server | |
sudo mysql_secure_installation | |
Enter current password for root (enter for none): Just press the Enter | |
Set root password? [Y/n]: Y | |
New password: Enter password |
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
# YouTube: https://youtu.be/9FX87-m6jMM | |
sudo apt update | |
sudo apt upgrade | |
sudo apt install nginx | |
nginx --version | |
sudo nginx -T | |
sudo service nginx start | |
sudo service nginx stop | |
sudo service nginx start |
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
# YouTube: https://www.youtube.com/watch?v=ymE3h8CzBXQ | |
# What is a LAMP Stack? | |
# LAMP (Linux, Apache, MySQL, PHP) stack is a common, free, and open-source web stack used for | |
# hosting web content in a Linux environment. | |
# Step 0: Before we install the LAMP stack, it’s a good idea to update repository and software packages: | |
sudo apt update | |
sudo apt upgrade |
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
# This commands will setup MySQL and create a DB | |
sudo apt update | |
sudo apt install mysql-server | |
sudo mysql_secure_installation | |
sudo mysql -u root -p | |
CREATE DATABASE badhon DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; | |
GRANT ALL ON badhon.* TO 'buser'@'localhost' IDENTIFIED BY 'B@Dho2019P@'; |
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-get update | |
sudo apt-get install rabbitmq-server | |
sudo update-rc.d rabbitmq-server defaults | |
sudo service rabbitmq-server start | |
sudo rabbitmq-plugins enable rabbitmq_management | |
sudo rabbitmqctl add_user admin password | |
sudo rabbitmqctl set_user_tags admin administrator | |
sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" |