Cobra Forum

Plesk Panel => Plesk Service/Interface => Topic started by: mahesh on Dec 23, 2023, 05:27 AM

Title: phpinfo() page can not be opened for a Plesk domain: DOMDocument::loadHTML():
Post by: mahesh on Dec 23, 2023, 05:27 AM
Question:
phpinfo() page can not be opened for a Plesk domain: DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
Symptoms
DOMDocument::loadHTML(): Argument #1 ($source) must not be empty
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.