- Plesk for Linux
- Plesk for Windows
The phpinfo page cannot be opened when the option Permanent SEO-safe 301 redirect from HTTP to HTTPS is enabled in domain's Hosting Settings.
When clicking View the phpinfo() page at Domains > example.com > PHP Settings, Plesk shows the following error message:
PLESK_ERROR: Unable to retrieve information about the PHP configuration
This is a Plesk bug with ID PPPM-5027, which will be fixed in future product updates.
Until the fix is available, use one of the following workarounds:
Temporarily disable the Permanent SEO-safe 301 redirect from HTTP to HTTPS option in Plesk > Domains > example.com > Hosting Settings when checking phpinfo() through the PHP Settings page.
Create a PHP file with phpinfo() function:
In Plesk, go to Domains > example.com > File Manager.
Click New > Create File and name it
phpinfo.php. Click OK.
Open the file
phpinfo.phpand add the following content in it:
// Show all information, defaults to INFO_ALL
Open the URL
http://example.com/phpinfo.phpin a browser to view the phpinfo page.
A website hosted in Plesk is not accessible: open_basedir restriction in effect
Unable to open phpinfo() in Plesk when custom Modsecurity rules are in use: Unable to retrieve information about the PHP configuration
Unable to open phpinfo() in Plesk: Error: Unable to retrieve information about the PHP configuration