How to increase PHP Upload limits on CloudPages?
August 6, 2021

When you set up a new server with CloudPages your default PHP upload limits are low. Users need to increase those limits so that they can import large databases or upload large themes/plugins inside WordPress. In this article, I will show you how to increase PHP upload limits on CloudPages.

To change or increase upload limits you need to access your server’s SSH through Putty or Bitvise.

For this article, we choose Bitvise, open Betvise SSH client, provide the User Name, IP, and port of your server.

You can also add the public key to your server for passwordless authentication, however, in this article, we use password authentication but in the production environment, I recommend using key-based authentication for security reasons.

Once you have added the required data click on the Login button.

After some time you will successfully be logged in, you can see the terminal and SFTP window on the sidebar click on the New SFTP window.

Goto to Remote file section, and go to /home/yourwebsitediectory/public_html, here create a new file info.php.

Now you can paste the following code into the info.php file and save it.




Once you have saved the file, open the https://websiteurl.com/info.php into your browser, you can see the following page. On this page check the location of Loaded Configuration File, here the php.ini file path is given, now you can open /usr/local/lsws/lsphp73/etc/php/7.X/litespeed/php.ini (path in your case can be different depending upon PHP version) via Bitvise and change your memory limits.

Now move to /usr/local/lsws/lsphp73/etc/php/7.x/litespeed/ location on SFTP. you can see the php.ini file is shown, right-click on it and then click on edit.

The file is opened in a default text editor, you can search the following parameters and update the value according to your choice and save it.

post_max_size: (this must be usually higher than upload_max_filesize)

upload_max_filesize: to increase the upload limit.

Once you update these configurations you need to kill all PHP processes.

Access your server terminal and run this command:

killall lsphp

Once you did the whole procedure, your upload limits are successfully updated.

Go to the info.php page and check the changed limits.

Habbi is the Lead Dev Engineer at CloudPages. He also loves to write about WordPress, SEO and Digital Marketing.

Recent Posts

Get Newsletter Updates

10 Most Common WordPress Errors and How to Fix Them

10 Most Common WordPress Errors and How to Fix Them

‘Oops! WordPress dashboard does not work correctly due to unforeseen errors.’ Your smooth and happy day can quickly turn into confusion when you open your WordPress and see this message appear on your screen. It can be pretty frustrating, especially if it is your...

read more
MySQL Performance Tuning Tips For Better Database Optimization

MySQL Performance Tuning Tips For Better Database Optimization

Though MySQL is considered one of the most popular database managers, it still needs to be optimised every once in a while. On the other hand, when we talk about complex and big data sets, you need to optimise for high performance regularly. MySQL performance tuning...

read more
How to Create Image and File Upload in PHP with jQuery AJAX

How to Create Image and File Upload in PHP with jQuery AJAX

The hallmark of the PHP application is that it enables you to upload files from clients to servers. However, you need to be patient to implement features with stress-free configuration and correct security. As a developer, you can use different scripts for PHP file...

read more
How to Join Two Tables in MySQL

How to Join Two Tables in MySQL

To give appropriate content for a WordPress website, MySQL stores data in tables. Irrespective of the prefix, each MySQL database table comprises columns and rows. The columns identify the data type, whereas the rows carry the actual data. In this article, we will...

read more




  1. Why Good Page Experience is Needed For Every Website - CloudPages - […] to its custom PHP LSAPI, it improves PHP performance. We can say this because this web server serves static…

Submit a Comment

Your email address will not be published.


Join Our Newsletter

Pin It on Pinterest

Share This