WordPress plugin

Custom PHP Settings Pro

Custom PHP Settings Pro lets WordPress administrators review available PHP options and write selected values to the configuration file used by the server. The file must be writable by the webserver.

Custom PHP Settings Pro

Custom PHP Settings Pro lets WordPress administrators review available PHP options and write selected values to the configuration file used by the server. The file must be writable by the webserver.

Choose the configuration file for the PHP mode

When PHP runs as an Apache module, settings are written to .htaccess. In CGI or FastCGI mode, the extension uses the custom INI file named by the PHP configuration value user_ini.filename, commonly .user.ini. The PHP Information table shows the configured filename. The custom INI file should be in the site root and writable by the webserver.

The PHP Information table also shows user_ini.cache_ttl, which determines how long PHP may cache the custom INI file before reloading it. With a TTL of 300 seconds, changes may take up to five minutes to appear. The webserver should block access to .user.ini.

Review settings and Pro features

The settings table lists non-system PHP settings that the add-on can personalize. Modified values appear in red, including values changed elsewhere through a custom php.ini, WordPress, or another plugin. For example, enabling WP_DEBUG in wp-config.php can change the displayed error_reporting value. Directives marked PHP_INI_SYSTEM cannot be changed through the plugin.

  • Named configurations: Pro lets you save multiple configurations, each with its own PHP settings, then choose one to apply its values to the configuration file.
  • Apache environment variables: Pro lets you define custom variables when PHP runs as an Apache module and uses .htaccess. Apache's mod_env module must be enabled. The variables can then be accessed through $_SERVER.

Apply changes with care

Install and activate the plugin, open its settings page in WordPress, and review the available settings. Confirm that the relevant configuration file exists where required and is writable by the webserver. Choose and save supported values, enable the option to update the configuration file, then verify the values after PHP reloads its settings.

Review each directive before changing it. For example, setting variables_order to EPCS omits the $_GET superglobal. Setting post_max_size too low can prevent form data from reaching the server and being saved. If a value makes the site inaccessible, remove the plugin-marked block from the relevant .htaccess or custom INI file.

WordPress Vault Correios Automático – Rastreio, Frete, Etiqueta, Declaração e Devolução PRO Cost Calculator for Contact Form 7 Pro Cost Calculator PRO Cost of Goods for WooCommerce Pro Countdown Timer Pro Counter Number Pro Counters Block Premium Countix Sales Countdown Timer Pro Country State City dynamic dropdown PRO Coupon Affiliates PRO