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 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.* |
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 | |
sudo -i | |
apt update && apt upgrade -y | |
apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libsqlite3-dev wget libbz2-dev | |
apt install build-essential checkinstall | |
apt autoremove | |
apt install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev | |
cd /opt | |
wget https://www.python.org/ftp/python/3.9.9/Python-3.9.9.tgz | |
tar xzf Python-3.9.9.tgz |
OlderNewer