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)

Step 1 of 6

Start by accessing your Web Hosting dashboard.

Step 2 of 6

From there, select File Manager.

Step 3 of 6

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.

Step 4 of 6

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.

Step 5 of 6

Next, choose Edit from the list of options.

Step 6 of 6

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)

Step 1 of 5

Start by accessing your Web Hosting dashboard.

Step 2 of 5

From there, select Plesk Admin.

Step 3 of 5

Next, click httpdocs below the heading for your Primary Domain.

Step 4 of 5

Find and select your .user.ini file and then click Edit in Text Editor. This can be found within your account’s root directory.

Step 5 of 5

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.