Plesk

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

Symptoms 

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:

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

Exit mobile version