Articles in this section

phpinfo() page can not be opened for a Plesk domain: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty

Plesk for Linux kb: technical

Symptoms

  • It is not possible to open phpinfo() page in Plesk > Domains > example.com > PHP Settings with:

    CONFIG_TEXT: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty

  • Manually created phpinfo() scripts are working properly.

  • A custom PHP handler installed from 3rd-party or OS repositories is used for the domain.

Cause

A Plesk bug with ID PPPM-13986.

Resolution

The bug has been fixed in Plesk Obsidian 18.0.53. Install latest updates to fix it.

If it is not possible to update Plesk for some reason, use the following workaround:

Create phpinfo() script manually and access it via web-browser
  1. Log into Plesk.

  2. Go to Domains > example.com > File Manager.

  3. Click New > Create File and name it phpinfo.php. Click OK.

  4. Open the file phpinfo.php and add the following content to it:

    CONFIG_TEXT: <?php
    phpinfo();
    ?>

  5. To view the phpinfo() page open the http://example.com/phpinfo.php URL in a browser.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.