Skip to content

Instantly share code, notes, and snippets.

View LinuxFintech's full-sized avatar
🏠
Working from home

Sabiqun Fabiha LinuxFintech

🏠
Working from home
View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / Completely Uninstall LEMP Ubuntu 20.04 LTS
Last active October 5, 2022 20:14
Completely Uninstall LEMP Ubuntu
sudo apt-get remove nginx nginx-common
sudo apt-get purge nginx nginx-common
sudo rm -rf /etc/nginx
sudo apt update -y
sudo apt upgrade -y
sudo apt-get autoremove
# This will remove PHP version. Type your php version before run below command. I am using php7.2
sudo apt-get purge `dpkg -l | grep php7.2| awk '{print $2}' |tr "\n" " "`
sudo apt-get purge php7.*
@LinuxFintech
LinuxFintech / Docker Compose
Created July 5, 2021 16:51 — forked from UbuntuEvangelist/Docker and Docker Compose Install
Docker and Docker Compose Install Ubuntu 20.04 LTS
#!/bin/sh
apt update -y
apt-get upgrade -y
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable
apt install apt-show-versions
@UbuntuEvangelist
UbuntuEvangelist / How to switch php version in ubuntu
Last active April 7, 2022 17:55
Switch php versions on commandline ubuntu
# Install PHP & check version
apt install software-properties-common
add-apt-repository ppa:ondrej/apache2
apt update -y
apt upgrade -y
# For php7.3 (use any)
apt install -y php7.3
apt install libapache2-mod-php7.3 php7.3 unzip php7.3-xml php7.3-mysql php7.3-imap php7.3-zip php7.3-intl php7.3-curl ntp -y
@UbuntuEvangelist
UbuntuEvangelist / Docker and Docker Compose Install
Last active April 25, 2025 18:11
Docker and Docker Compose Install Ubuntu 24.04 LTS
#!/bin/sh
apt update -y
apt-get upgrade -y
dpkg-reconfigure tzdata
apt install build-essential checkinstall
apt install ubuntu-restricted-extras
apt install software-properties-common
apt upgrade -o APT::Get::Show-Upgraded=true
apt-show-versions | grep upgradeable