Skip to content

Instantly share code, notes, and snippets.

View badhonhitech's full-sized avatar
💭
I may be slow to respond.

khaleda ferdous badhonhitech

💭
I may be slow to respond.
View GitHub Profile
@badhonhitech
badhonhitech / mysql.sh
Created December 1, 2019 17:59
MySQL Install Linux
# 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@';
# 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
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 December 7, 2019 18:02
How to setup Nginx on Ubuntu
# 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
@badhonhitech
badhonhitech / ThingsToDo.sh
Last active April 22, 2020 19:15
Things To Do After Installing Ubuntu 18.04 LTS Desktop
#!/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
@badhonhitech
badhonhitech / LEMP Stack.sh
Created April 23, 2020 17:11 — forked from linuxbiekaisar/LEMP Stack.sh
Install Nginx, Php and Mariadb on Ubuntu
# 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 April 23, 2020 17:11 — forked from linuxbiekaisar/LEMP Stack.sh
Install Nginx, Php and Mariadb on Ubuntu
# 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 / Ubuntu Firewall
Last active May 5, 2020 20:19
Working With 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 / setup.sh
Created June 3, 2020 14:57 — forked from UbuntuEvangelist/setup.sh
phpWallet - e-wallet and online payment gateway system
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
#!/bin/bash
# Part 1
# To Install latest Git using PPA run this command:
sudo add-apt-repository ppa:git-core/ppa
sudo apt update
sudo apt install git
# To check Git version run this command: