المقالات

Disable Root Login via SSH

Edit the SSH config file: sudo nano /etc/ssh/sshd_config Find the line PermitRootLogin...

How to Harden SSH Security on Your Linux VPS

Edit the SSH config file: nano /etc/ssh/sshd_config Change the default port from 22 to...

How to Install and Configure a LAMP Stack on Your Linux VPS

For CentOS/Ubuntu: Run: sudo apt install apache2 mysql-server php php-mysql (Ubuntu) or yum...

How to Install and Configure cPanel on Your Linux VPS

Ensure your VPS is running a supported OS (CentOS, AlmaLinux, RockyLinux). Run: yum...

How to Install and Secure MySQL on Your Linux VPS

Install MySQL: sudo apt install mysql-server (Ubuntu) or yum install mariadb-server (CentOS)...

How to Schedule Automatic Backups on Your VPS

Use rsync and cron jobs.

How to Secure Your VPS Against Common Threats

Disable root login (Linux) or RDP (Windows) from unknown IPs. Enable SSH key...

How to Set Up Email Services on Your VPS

Install Postfix (Linux) or MailEnable (Windows). Set DNS records (MX, SPF, DKIM, DMARC)....

How to Set Up UFW Firewall on Ubuntu VPS

Install UFW: sudo apt install ufw Set default policies: ufw default deny incoming...

How to Set Up a Swap File on Your Linux VPS

Create a file: fallocate -l 2G /swapfile Secure it: chmod 600 /swapfile Format:...

Install and Configure Fail2Ban

Install: sudo apt install fail2ban or sudo yum install fail2ban Copy default config:...

Keep Your System Updated with Unattended Upgrades

Ubuntu/Debian: Install: sudo apt install unattended-upgrades Enable: sudo...

Limit Access with a Firewall (UFW/Firewalld)

UFW (Ubuntu): Default deny: sudo ufw default deny incoming Allow necessary ports: sudo...

Set Up SSH Key Authentication

Generate a key pair on your local machine: ssh-keygen Copy the public key to your VPS:...