> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://doc.common-services.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 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:
1. Log into your hosting control panel (e.g., cPanel, Plesk, Cloudways, or o2switch).
2. Look for **Select PHP Version**, **PHP Selector**, or **PHP Manager**.
3. Go to the **Options** or **Advanced Settings** tab.
4. Locate a section labeled `disable_functions` or **Disabled Functions**.
5. If `phpinfo` is 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.