Block an IP using iptables
To block an IP using iptables, use iptables -A INPUT -s IPADDR -j DROP Replace IPADDR with IP address you need to…
To block an IP using iptables, use iptables -A INPUT -s IPADDR -j DROP Replace IPADDR with IP address you need to…
To encrypt a file using gpg command, run gpg -o myfile.tar.gpg –symmetric myfile.tar Now it will ask for a password. Once you…
New PC i have purchased have AMD Ryzen 3 2200G CPU. This come with Vega 8 iGPU. If you boot Ubuntu 18.04…
youtube-dl is a python package that allows you to download videos from youtube. You can also use yt-dlp, that is an actively…
LiteSpeed is a high performance web server. Install LiteSpeed Web Server Install CyberPanel on CentOS 7 Install OpenLiteSpeed on Ubuntu/Debian Install LiteSpeed…
To install netstat on Ubuntu/Debian, run To see all connections, run To see all listening connections, run To see routing table To…
To find dependencies for a package, run apt-cache depends PACKAGE_NAME Example root@ubuntu-s-4vcpu-8gb-nyc1-01:~# apt-cache depends php7.2 php7.2 |Depends: libapache2-mod-php7.2 |Depends: php7.2-fpm Depends: php7.2-cgi…
EDIT 2022-05: Now Plesk has an easy MySQL upgrade script, to do the upgrade, run wget https://support.plesk.com/hc/en-us/article_attachments/4584125667858/c7-mariadb-10.5-upgrade.sh && chmod +x c7-mariadb-10.5-upgrade.sh ./c7-mariadb-10.5-upgrade.sh…
To allow MySQL to connect from remote server on CentOS 7 server, you need to enable port 3306 in firewall. To do…
List all Repositories yum repolist List packages from a specific repo Following command disable all repos and enable EPEL repo. yum list…
CentOS 7 come with Python 2.7. To install python 3.6, first install the EPEL repo. yum install epel-repo -y Install IUS repo.…