The error ’14: PYCURL ERROR 7′ is a classical one and may have more than one issue for which is getting flagged. There can be different areas from where it is coming and so the resolution differs. I have listed all of the places and resolutions which I came across from experiences.

Fix 14: PYCURL ERROR 7 – Failed to connect to Network

Remove HTTPS from your Repos

Login to server shell using root or Sudoer. Go to following location,

/etc/yum.repos.d/ using

cd /etc/yum.repos.d/

then, edit repos using nano or vi and check for repos one by one for HTTPS

E.g. nano CentOS-Base.repo


Remove all ‘s‘ from HTTPS and make it just HTTP. Save the repo file and try yum now with,

yum clean all
yum update

You will need to check this and correct it for all repos. Note: This may also for error ‘PYCURL ERROR 6

Check your Firewall port 443

Well, I am not using SSL on my server. However, for some reasons my WordPress plugin and theme updates were not happening automatically or even manually. They always returned error ‘Couldn’t connect to host‘. Just for testing I opened the port 443 and it worked like wonder.

If you are using CSF-LFD WebMin module then you can simply go to Firewall Configuration and add the port in IPv4 and IPv6.

If you are handling firewall manually, then you can type the below from SSH and press enter,

iptables -A INPUT -p tcp --dport 443 -j ACCEPT

Check your CSF and LFD Firewall

Well Tiny and LWP issue is not directly related but it is worth to check and fix it. If you are not using SSL on your website then just go to CSF Firewall Configuration and search ‘URLGET‘. Set this option to ‘1‘ to use HTTP.

Setting HTTP:Tiny in CSF
Setting HTTP:Tiny in CSF

Let me know if you were able to resolve Pycurl Error using some different fix.

By Mrinal Buddekar

Data Manager and a technology enthusiast! Mrinal Buddekar is Pune based blogger who loves building server, websites, technology, and affiliate blogging.

Hey there!

Help us reach out to awesome people lie you out there. We publish Tech and WordPress, Deals, and Reviews. WE DON'T SPAM!

Your Information will never be shared with any third party