Articles on: ​Onyx Documentation

user.ini - Changing PHP settings and restarting PHP

You are able to make changes to some PHP settings via a .user.ini file. This file doesn't exist by default - you will need to create it within the html folder of the relevant site.

You can create this using the Onyx File Manager or by uploading a file using FTP.

Create the file in your site's root folder: /www/html/



Add your required PHP settings and click Save.



Our suggested settings are:

max_execution_time = 900max_input_time = 600memory_limit = 2048Mmax_input_vars = 8000


Note: This file cannot be blank. Saving this file without adding data will result in the file not being created.

In order for your PHP settings to take effect you'll need to restart PHP within your account.
Click on the Tools option on the left hand side.



Click on Restart PHP



You can ensure your changes have taken effect by creating a phpinfo file.

Standard PHP settings



Below, you can see the default PHP values. These values will be overridden by your .user.ini file.

max_input_vars = 1000memory_limit = 256Mpost_max_size = 100Mupload_max_filesize = 100M


*

*

Updated on: 24/01/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!