phpinfo() page can not be opened for a Plesk domain: DOMDocument::loadHTML():

Started by mahesh, Dec 23, 2023, 05:27 AM

Previous topic - Next topic

mahesh

Question:
phpinfo() page can not be opened for a Plesk domain: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
Symptoms
  • It is not possible to open phpinfo() page in Plesk > Domains > example.com > PHP Settings with:
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
Until the bug is fixed, use the following workaround:

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:

<?php
phpinfo
();
?>

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