PHP Settings

Description

This plugin provides a simple user interface with a code editor to edit your local .ini settings.
This can be used to change settings like upload_max_filesize or max_execution_time which are often set to very low values by the hosting companies.
Clicking on “Save Settings” creates 3 files: .user.ini, php.ini and php5.ini and saves your settings asynchronously without reloading the page.

The plugin also features a table containing a list of all the core PHP settings and their active values.
Settings that are successfully overridden become highlighted in the table.
Additionally, you can click on any one of the settings in the table and copy it to the editor.
This makes it extremely easy to add or remove directives in a local .ini file.
Finally, a search box is built into the settings table to allow you to search for PHP directives to easily see their current value or copy them to the editor.

Features

  • Code editor with syntax highlighting
  • A table showing all PHP core settings and their values
  • A Search box to search for PHP directives
  • Settings that are locally overridden become highlighted in the table
  • Click on any setting field in the table to copy it to the editor
  • Save the settings to local .ini files asynchronously (no page reload)
  • Delete local .ini files created by the plugin
  • Refresh the PHP settings table asynchronously (no page reload)

Usage

  1. Got to Tools -> PHP Settings
  2. Use the editor to manually add PHP settings (For example, max_execution_time = 120), or
  3. Click on “Settings” and then click on one of the settings in the table to automatically copy it to the editor
  4. Click on “Save Settings” to save the editor contents to local .ini files. If the files do not exist, they will be created.
  5. Click on “Settings” again and then click “Refresh Table” to see the changes take effect. You might need to wait a few minutes before the changes are updated in the system.
  6. To delete the .ini files created by the program, click on “Delete .ini Files”. This will restore the master PHP settings.

Useful Links

Screenshots

  • INI Settings Editor
  • PHP Core Setting Table

Installation

  1. Download and activate the plugin.
  2. Navigate to Tools->PHP Settings
  3. Use the INI editor to add/remove php.ini directives
  4. Click “Save Settings” to save the contents of the INI editor to a local .ini file

FAQ

My PHP Settings remained unchanged after saving the changes

This can happen for multiple reasons.
1. You are trying to set a directive that cannot be locally overridden (see this table)
1. You need to recycle your application pool
1. Your hosting company set your PHP to ignore local .ini files

Reviews

Great tool, for audit as well

Great tool, for audit as well. Using Opera browser, to select the directive for editing I had to click on the directive description instead of the checkbox.

Works Like a Charm!

Thanks to the developer for this super simple but effective plugin to increase PHP memory limit, Upload size, Execution time Etc.

A great way to create your PHP file

You can use it to modify your PHP file as the needs arise.
I keep a separate text file for each website, and then when I start a new website I can copy and paste different selections in its handy editor.
It is just wonderful!
Thanks a lot

Simple and FANTASTIC

Been looking all morning to resolve this and this works like a dream. Problem resolved with a minute of uploading this brilliant plug-in.

Used to increase max upload file size which was set at 2M by the host (tight ar*es).

I’ll certainly be donating to this guy. (Don’t be tight… give the guy a coffee at least!)

Thanks Buddy.

Simple and useful

This plugin got the job done. I needed to change max_execution_time and I did it without any code knowledge.

Read all 9 reviews

Contributors & Developers

“PHP Settings” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.6

  • (FIX) Fixed an issue that was causing PHP 7.1 to throw a lexical error.

1.0.5

  • (FIX) Fixed the “you do not have sufficient privileges” error

1.0.4

  • (NEW) Added checkboxes to allow bulk copy of directives to editor
  • (NEW) Added a search box to search for PHP directives (based on the great list.js script)
  • (IMPROVE) Improved security in AJAX calls

1.0.3

  • (NEW) Added a link to the PHP settings page in the plugins page
  • (FIX) Locally overridden directives are now copied properly to the editor

1.0.2

  • (FIX) The plugin will gracefully shutdown if the PHP version is too old
  • (IMPROVED) Reorganized file structure in a more logical way
  • (IMPROVED) Changed naming conventions to prevent class name collisions

1.0.1

  • (NEW) An error message will be shown if PHP does not have sufficient permissions to write files
  • (IMPROVED) Error handling & displaying
  • (IMPROVED) Scripts/Styles loading

1.0.0

  • Initial release