Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Secure phpMyAdmin with UFW on Ubuntu—install Apache and phpMyAdmin with
apt install apache2 phpmyadmin
then allow HTTP/HTTPS with
ufw allow 80 && ufw allow 443
Restrict phpMyAdmin access to your IP (e g 192 168 1 100) with
ufw allow from 192.168.1.100 to any port 80
and
ufw deny 80
—enable with
ufw enable
Check with
ufw status
—expect \"80 ALLOW 192 168 1 100\" Add SSL with Certbot (
certbot --apache
) On DigitalOcean test at https://ip/phpmyadmin—only your IP works ensuring MySQL uptime and security against public access

Back to All Tips