How do I change the PHP settings for my hosting account?
This article will show you how to change the default PHP settings within your hosting plan.
If you need to update your PHP settings to meet the growing needs of your website, you can do this by changing the PHP initialisation file within your account. Click the relevant title from the list below and follow the provided instructions to get started:
Please note: this process only applies to Web Hosting plans purchased after July 2020 and Premium Hosting plans purchased after August 2020 (cPanel).
Linux Web Hosting (cPanel)
Start by accessing your Web Hosting dashboard.
From there, select File Manager.
If you haven’t already done so, you’ll need to enable hidden files within File Manager. To do this, click Settings in the top-right corner and then click the tickbox for Show Hidden Files (dotfiles) in the pop-up window that appears. Once done, click Save.
Find and open your /public_html folder and then right-click the .user.ini file.
If, however, you can’t find this file, you can create one using the built-in text editor, which should include the following values:
memory_limit = 128M
max_input_vars = 2000
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 120
Make sure you save the file as .user.ini or else it won’t work.
Next, choose Edit from the list of options.
You will now see the main PHP settings, including the maximum file upload size, post size, memory limit and more.
Make the necessary changes, and then click Save Changes to confirm them.
Windows Web Hosting (Plesk)
Start by accessing your Web Hosting dashboard.
From there, select Plesk Admin.
Next, click httpdocs below the heading for your Primary Domain.
Find and select your .user.ini file and then click Edit in Text Editor. This can be found within your account’s root directory.
You will now see the main PHP settings, including the maximum file upload size, post size, memory limit and more.
Make the necessary changes, and then click OK to save them.