Options
The PHP Options page allows you to modify PHP settings stored in the php.ini
file.
For more advanced users, the PHP.INI Editor can be used - if available.
How to Change PHP Options
- Open OpenPanel and navigate to PHP > PHP Options.
- Select the desired PHP version from the dropdown.
- Modify the options you want to change.
- Click Save to apply changes.
Settings will be saved to the php.ini
file for the selected PHP version, and the PHP container will restart to apply changes immediately. These settings apply to all domains using that PHP version.
Available Options
The list of configurable PHP options is determined by the system administrator. By default, the following options are available:
allow_url_fopen
date.timezone
disable_functions
display_errors
error_reporting
file_uploads
log_errors
max_execution_time
max_input_time
max_input_vars
memory_limit
open_basedir
output_buffering
post_max_size
short_open_tag
upload_max_filesize
zlib.output_compression
Customizing Available Options
Administrators can customize the available options:
- For all new users: Edit
/etc/openpanel/php/options.txt
- For a specific user: Edit
/home/USERNAME/php.ini/options.txt
Important Notes
Some PHP options cannot be configured from this page. Instead, they must be set on the PHP Limits page:
max_execution_time
max_input_time
max_input_vars
memory_limit
post_max_size
upload_max_filesize
These limits are enforced at the container level and require a different configuration method.