Default PHP INI values could lower than desired. CyberPanel allows you to easily modify your PHP settings such as the upload limit, memory limit, execution time, and other PHP INI configurations directly from its dashboard
These include the following;
- upload_max_filesize: Limits the maximum size of uploaded files.
- post_max_size: Limits the maximum size of POST data, including file uploads.
- memory_limit: Limits the amount of memory a script is allowed to consume.
- max_execution_time: Sets the maximum time a script is allowed to run before being terminated.
- max_input_time: Controls how long a script can take to parse input data, like form submissions or file uploads.
- display_errors: Controls whether or not errors and warnings generated by PHP scripts are shown in the browser
Prerequisites #
- CyberPanel Installed – Make sure that CyberPanel is already installed and configured on your server. If not, follow the CyberPanel installation guide.
- Domain Configured: – Ensure that you have at least one website or domain set up on your server. Here is how to.
Step-by-Step Guide to Adjust PHP INI Settings #
- Open your browser and access CyberPanel as guided here
- Step 2: Navigate to PHP Settings
* Once logged in, locate the PHP section on the left-hand menu.
* Click on PHP > Edit PHP Configs to access the PHP configuration page.


Step 3: Select PHP Version and Edit PHP INI Settings
On the Edit PHP Configs page, you will see a drop-down menu where you can select the PHP version for which you want to adjust the settings.
Select the appropriate PHP version that your website or application is using. For example, if your site is running on PHP 7.4, select PHP 7.4 from the drop-down menu.
You will be presented with the most commonly modified PHP INI settings. Adjust them as desired then click on Save Changes

NB: For the PHP changes to work, repeat step 3 above for all PHP versions that are provided in the drop-down, and not only the one being used by your app
Step 4: Restart PHP
Once you have done adjustments for ALL PHP versions, you can restart the PHP service by clicking the Restart PHP button or by running the following command via SSH
systemctl restart lsws
