1. Test DNS Resolution from SSH
SSH into the server and try:
dig wordpress.org
If that fails or is slow, your server's DNS resolver is broken.
Fix: Edit /etc/resolv.conf and add Google DNS:
nameserver 8.8.8.8 nameserver 1.1.1.1
Then retry.
2. Test wget and curl Manually
wget https://downloads.wordpress.org/plugin/litespeed-cache.latest-stable.zip
curl -I https://downloads.wordpress.org/plugin/litespeed-cache.latest-stable.zip
Check for:
- Slow response
- DNS timeout
- No output
If wget fails again but curl succeeds, it's definitely a wget + DNS combo issue.
3. Disable IPv6 Temporarily (Common Cause)
In /etc/sysctl.conf or /etc/sysctl.d/99-disable-ipv6.conf, add:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
Then apply it:
sysctl -p
Then re-test wget.
4. Firewall, SELinux, or Hosting Filters
- Check if csf (if installed) or firewalld is blocking outbound connections
- Disable SELinux temporarily for testing:
setenforce 0
5. Plugin Auto-Installer Fallback
If nothing works, manually install the plugin via FTP or WP Admin:
- Download from: https://wordpress.org/plugins/litespeed-cache/
- Upload ZIP via WP Admin → Plugins → Add New → Upload