Updated: January 22, 2025
If you’re managing a WordPress site, knowing your PHP configuration is crucial for troubleshooting, optimizing performance, and ensuring compatibility with themes and plugins. Instead of manually uploading a phpinfo.php
file to your server, the View PHP Information WordPress Plugin provides an easier way to access all PHP settings directly from your WordPress dashboard.
This lightweight and powerful plugin allows you to view detailed PHP configuration settings without needing FTP access or complex coding knowledge. Whether you’re debugging issues, verifying PHP extensions, or optimizing your hosting environment, this plugin is an essential tool for every WordPress administrator.
Why You Need the View PHP Information WordPress Plugin
Many WordPress errors and performance issues arise due to PHP settings. Whether you’re experiencing memory limits, max execution time issues, or missing PHP extensions, this plugin helps you quickly identify and resolve problems.
Common Use Cases for This Plugin:
- Check PHP Version – Ensure your WordPress site is running on the latest PHP version for better security and speed.
- Debug Server Errors – Identify PHP settings causing white screen errors, plugin conflicts, or slow performance.
- Verify PHP Extensions – Confirm whether required extensions like cURL, GD Library, or ionCube Loader are enabled.
- Monitor Resource Limits – View memory limit, upload max size, and execution time settings to optimize your site’s performance.
Instead of relying on your hosting provider to provide this information, this plugin gives you direct access to all PHP settings with just one click.
How to Use the View PHP Information WordPress Plugin
Setting up the View PHP Information WordPress Plugin is quick and hassle-free. Follow these steps to install and activate it on your WordPress website.
- Download the Plugin
- You can download the View PHP Information WordPress Plugin here.
- Install the Plugin on WordPress
- Log in to your WordPress Dashboard.
- Navigate to Plugins > Add New.
- Click Upload Plugin at the top.
- Choose the plugin ZIP file you downloaded and click Install Now.
- Activate the Plugin
- After installation, click Activate Plugin to enable it on your website.
- Access Your PHP Information
- In the WordPress Dashboard, go to Tools > PHP Info.
- The plugin will display detailed PHP configuration settings, including:
- PHP Version
- Memory Limits
- Max Execution Time
- Enabled PHP Extensions
- Server Information
- Use this information to troubleshoot issues, optimize performance, or verify server settings.
How the Plugin Works
This plugin generates and displays your PHP configuration using the built-in phpinfo()
function. Normally, to access this data, you’d need to:
- Manually create a
phpinfo.php
file. - Upload it to your public_html directory via FTP.
- Access the file in a browser (
yourdomain.com/phpinfo.php
). - Delete the file as it exposes private information publicly.
- Repeat if you need to get information again.
However, the View PHP Information WordPress Plugin eliminates this manual process by integrating PHP information directly into your WordPress dashboard. This saves time and enhances security since you don’t have to expose sensitive PHP details to the public.
Alternative Method: Adding Custom Code Manually
If you prefer not to use a plugin, you can manually add the exclusion code to your WordPress functions.php file.
- Open functions.php
- In your WordPress Dashboard, go to Appearance > Theme Editor.
- Open your active theme’s functions.php file.
- Insert the code and click Update File.
function add_phpinfo_menu() { add_menu_page( 'PHP Info', 'PHP Info', 'manage_options', 'phpinfo-page', 'display_phpinfo' ); } add_action('admin_menu', 'add_phpinfo_menu'); function display_phpinfo() { if (!current_user_can('manage_options')) { wp_die(__('You do not have sufficient permissions to access this page.')); } echo '<div class="wrap">'; ob_start(); phpinfo(); $phpinfo_content = ob_get_clean(); echo $phpinfo_content; echo '</div>'; }
- Refresh the page
- This allows the code you saved to run.
Why Choose the View PHP Information WordPress Plugin?
- Easy Setup – No coding required, just install and activate.
- Dashboard Integration – Access PHP settings without using FTP or cPanel.
- Improved Security – Avoid exposing sensitive PHP details to the public.
- Lightweight & Fast – Minimal impact on website performance.
- Completely Free – No hidden costs or premium upgrades.
This plugin is perfect for developers, site admins, and WordPress users who need quick access to PHP configuration without any hassle.