• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved PHP 7.0.17 unable to resolve hostnames

H9k

Regular Pleskian
Hi there! Since PHP7 plesk packages updated to 7.0.17, websites are no longer able to resolve hostnames.
Getting errors like these: cURL error 6: Could not resolve host: www.googleapis.com
Anyone else having this problem?
 
@Everyone,

The correct and patched version for Ubuntu 16.04.2 LTS would be 2.23-0ubuntu7 for libc-bin, libc6, libc6-dev and libc-i386.

Note that earlier versions of the libc* packages were partially patched, so it is not recommended to use lower versions than 2.23.

There are some common "do´s and don´ts" when applying the patched libc* packages, all depending on how one has identified the symptoms of libc* related problems.

The SYMPTOMS, caused by libc* related problems, are (amongst others)

- apt-get update related issues
- WordPress error messages, for instance:concerning RSS feeds (can be seen in the main page of the Dashboard)
- PHP related error messages (of many sorts)
- Curl related error messages
- Ping issues

and so on.

It has to be EMPHASIZED that there is NOT a PHP bug, a WP bug, a Curl bug or a networking issue (as suggested by ping related issues).

The root cause is simply an "incomplete" libc* package upgrade.

DO NOT mess with PHP or WordPress code and CERTAINLY DO NOT

- alter network or network interface settings, (and/or)
- add a nameserver to /etc/resolv.conf.

In order to complete the libc* package upgrade properly, we cannot rely on apt-get (it is not working properly), so do the following (in chronological order)

1) try a network service restart (note: I would not recommend this step, it can suffice, but starting with step 2 is better),

2) if step 1 does not work, simply REBOOT the server.

As a final remark, note that an excellent method to test for this libc* package related issue is the following:

- run the command: ping google.com (from the command line)

and if the result is "ping: unknown host google.com", then the libc* package related issue is present.

Hope the above helps a bit.

Regards.....
 
Back
Top