How to change PHP setting using .user.ini 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.

  1. Create the file in your sites docroot folder /www/html/
  2. Add the required PHP settings and click Save.
    If you don't enter and contents and click Save no file will be created.
  3. In order for your PHP settings to take effect you'll need to restart PHP within your account.
    This can be achieved from the Dashboard by visiting Settings > Tools and clicking the Restart PHP button.
  4. You can confirm the current PHP settings - to ensure you're changes have taken effect by creating a phpinfo file.

Some default settings

max_input_vars = 1000
memory_limit = 256M
post_max_size = 100M
upload_max_filesize = 100M

How did we do?

Powered by HelpDocs (opens in a new tab)
© Krystal Hosting 2020