Changing the PHP parameters in BrainyCP
Step-by-step guide to editing PHP parameters using the user.ini configuration in BrainyCP.
BrainyCP control panel allows you to configure PHP parameters individually for each website using the user.ini file. This file contains PHP interpreter settings that apply only to the selected virtual host.
Quick start
- To configure PHP settings, log in to your BrainyCP control panel on your VPS.
- Go to WWW → Configuration of user.ini.
Don't have a VPS yet?
Fornex offers VPS hosting with full root access, 24/7 support, and DDoS protection. Get a stable server with NVMe disks for fast and reliable operation. Find more details on the Fornex VPS page.
PHP configuration section in BrainyCP control panel
Editing the user.ini file
- Select the website for which you want to modify PHP settings.
- Apply the configuration changes.
- Click Save to apply the new parameters.
Editing user.ini in BrainyCP
Key user.ini parameters
Below are the most commonly used configuration directives:
upload_max_filesize
Maximum file size allowed for upload to the server.
Value is specified in megabytes (e.g., 64M).
post_max_size
Maximum data size that can be sent in a POST request.
This value should be greater than upload_max_filesize but less than memory_limit.
memory_limit
The maximum amount of memory allocated to a single PHP script.
Helps prevent excessive resource usage.
display_errors
Enables or disables the display of PHP errors on the website.
Useful for debugging, but should be disabled on production environments.
error_reporting
Defines which PHP errors should be reported (warnings, notices, deprecated functions, etc.).
Works together with display_errors.
max_input_time
Number of seconds PHP can use to process input data (e.g., file uploads or POST requests).
default_charset
Default character encoding for PHP documents.
Common values include: UTF-8, ASCII, Windows-1251 (CP1251).
opcache.revalidate_freq
Specifies the interval (in seconds) at which OPcache checks for file changes.
1 — check every second
0 — constant checking
date.timezone
Sets the PHP timezone (e.g., "Europe/Moscow").
Help
If you have any questions or need assistance, please contact us through the ticket system — we're always here to help!