Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

curl shows error on Plesk server: Could not resolve host: example.com: Name or service not known

 
apachecentosclicloudflaredomains

Symptoms 

  • cURL utility does not work on the Plesk server.

  • Other tools are able to resolve the hostname properly.
  • Unable to open PHP page that uses cURL:

    Could not resolve host: example.com: Name or service not known

  • CentOS/RHEL was upgraded to the newer version

  • OpenSSL packages were updated recently:

    # grep -i ssl /var/log/yum.log
    Updated: 1:openssl-libs-1.0.2k-12.el7.x86_64
    Updated: 1:openssl-1.0.2k-12.el7.x86_64

  • glibc package was updated recently:

    # grep -i glibc /var/log/yum.log
    Updated: 1:glibc-2.17-196.el7_4.2.x86_64
    Updated: 1

  • Cannot issue Let's Encrypt certificate:

    ERR [extension/letsencrypt] Domain validation failed: Could not obtain directory: cURL error 6: Could not resolve host: acme-v01.api.letsencrypt.org; Name or service not known 

  • Plesk license cannot be updated:

    license server https://id-00.kaid.plesk.com:443/ (): Couldn't resolve host name(6) cURL cannot communicate with license server https://id-00.kaid.plesk.com:443/ (): Couldn't resolve host name(6) (Error code: 2)

  • Unable to add domains to Cloudflare with Cloudflare ServerShield extension.

  • Unable to install a license key in Tools & Settings > License Management > Install Key. Following error message appears in Plesk interface:

    Error: cURL cannot communicate with license server https://id-00.kaid.plesk.com:5224/ (): Couldn't resolve host name(6) cURL cannot communicate with license server https://id-00.kaid.plesk.com:5224/ (): Couldn't resolve host name(6)

  • In some cases license can be successfully installed via CLI with the following command:

    # plesk bin license -i AAAAA-BBBBB-CCCCC-DDDDD-EEEEE

Cause

Shared libraries used by curl were updated, for example: OpenSSL, glibc.

Resolution

Click on a section to expand

Solution via Plesk UI:

  1. Log in to Plesk.
  2. Navigate to Tools & Settings > Server Management > Restart Server:
    rest.JPG

Alternatively, restart required services one by one:

  1. Log into Plesk.

  2. Navigate to Tools & Settings > Server Management > Services Management

  3. Click on 'Restart' button for each FPM service, Apache and Nginx:

Note: Restart of Plesk services (sw-cp-server and sw-engine) is possible only from the command-line interface.

Solution via the command-line interface:

  1. Connect to the server via SSH.

  2. Restart the services:

    # systemctl restart sw-engine sw-cp-server httpd nginx php-fpm plesk-php72-fpm

    Note: restart other FPM-services if used, execute the command below:

    # plesk bin php_handler --list | grep -E plesk.*fpm | awk -F" " '{ print $1 }' | while read i; do service $i restart; done

  3. If this does not help, reboot the server:

    # reboot

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

What is Cloudflare and How To Set It Up For Your Site?

Read More »

Your Complete .htaccess Guide: Including .htaccess Basics and More

Read More »

NGINX vs Apache – Which Is the Best Web Server in 2024?

Read More »
Knowledge Base

.html files of a website show a blank page page when Apache PageSpeed module is enabled on a Plesk server

Read More »

How to allow access to a website directory from specific IP address in Plesk?

Read More »

How to find and edit PHP configuration files in Plesk for a domain or for global PHP handler

Read More »

How to install the php-mcrypt module on a Plesk server

Read More »

Hosting Wiki

  • CLI
  • DBMS Interface
  • Server Redundancy
  • Cloudflare
  • Bare Metal Server
  • PhpMyAdmin
  • phpPgAdmin
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • PHP
  • Domain
  • Plesk
  • Apache Tomcat
  • NGINX
  • Apache
  • Web Server
  • DNS Server
  • SSH
  • HTTP
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family