How to Fix Error: "PHP function: phpinfo() should be enabled" - Amazon Marketplace Plus
When accessing the information page of the Amazon Marketplace Plus module, you may encounter the following diagnostic warning message:
PHP function: phpinfo() should be enabled. The module requires this function to provide diagnostic information.
Why Does This Error Occur?
The phpinfo() function is a native PHP command that outputs a comprehensive summary of your server's technical configuration (such as PHP version, memory limits, maximum execution time, and active extensions). The module uses this function securely to analyze your environment and ensure your server meets the necessary requirements to connect with Amazon.
If this warning appears, it means your hosting provider has disabled this function for global server security reasons via a directive called disable_functions in the server configuration, blocking the module from reading this essential diagnostic data.
How to Resolve the Error
To fix this warning, you need to allow the execution of the phpinfo() function. Depending on your hosting configuration, you can do this using one of the following methods:
Method 1: Change Settings via Your Hosting Control Panel (Recommended)
Some modern hosting platforms allow you to manage restricted PHP functions directly:
- Log into your hosting control panel (e.g., cPanel, Plesk, Cloudways, or o2switch).
- Look for Select PHP Version, PHP Selector, or PHP Manager.
- Go to the Options or Advanced Settings tab.
- Locate a section labeled
disable_functionsor Disabled Functions. - If
phpinfois present in that list, delete it to re-enable the function, then save your changes.
Method 2: Contact Your Hosting Support
Many managed hosting providers implement strict server-wide rules that block specific database or PHP commands by default. If you cannot change these settings yourself, reach out to your host's technical support team.
Updated on: 03/06/2026
Thank you!
