Skip to content

Instantly share code, notes, and snippets.

💭
I may be slow to respond.

khaleda ferdous badhonhitech

💭
I may be slow to respond.
View GitHub Profile
@badhonhitech
badhonhitech / setup.sh
Created Jun 3, 2020 — forked from UbuntuEvangelist/setup.sh
phpWallet - e-wallet and online payment gateway system
View setup.sh
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
@badhonhitech
badhonhitech / Ubuntu Firewall
Last active May 5, 2020
Working With Ubuntu Firewall
View Ubuntu Firewall
1.Enable Disable firewall on Ubuntu 18.04
Check a current firewall status
$ sudo ufw status
Enable Firewall
$ sudo ufw enable
Disable Firewall
@badhonhitech
badhonhitech / LEMP Stack.sh
Created Apr 23, 2020 — forked from linuxbiekaisar/LEMP Stack.sh
Install Nginx, Php and Mariadb on Ubuntu
View LEMP Stack.sh
# 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
@badhonhitech
badhonhitech / LEMP Stack.sh
Created Apr 23, 2020 — forked from linuxbiekaisar/LEMP Stack.sh
Install Nginx, Php and Mariadb on Ubuntu
View LEMP Stack.sh
# 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
@badhonhitech
badhonhitech / ThingsToDo.sh
Last active Apr 22, 2020 — forked from UbuntuEvangelist/ThingsToDo.sh
Things To Do After Installing Ubuntu 18.04 LTS Desktop
View ThingsToDo.sh
#!/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
View mariadb.sh
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
@badhonhitech
badhonhitech / nginx.sh
Last active Dec 7, 2019
How to setup Nginx on Ubuntu
View nginx.sh
# 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
View lampinstall.sh
# 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
@badhonhitech
badhonhitech / mysql.sh
Created Dec 1, 2019
MySQL Install Linux
View mysql.sh
# 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@';
@badhonhitech
badhonhitech / rabbitmq.sh
Created Nov 29, 2019
Install RabbitMQ on Ubuntu 18.04
View rabbitmq.sh
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 ".*" ".*" ".*"
You can’t perform that action at this time.