Cantech Knowledge Base

Your Go-To Hosting Resource

How to Enable File Uploads in cPanel?

Being able to accept files from users is an important feature regardless of whether you’re operating a WordPress site, a custom web app, or a basic contact form. Unfortunately, due to security and performance considerations, a lot of hosting environments impose strict default limits on file size. If you see an error message saying, ‘File exceeds upload_max_filesize’ or if you just want to increase your limit, cPanel offers an easy way to do that. You can adjust your PHP settings to allow for larger file uploads, while also ensuring that your site is running the way you want it to without requiring a lot of complex server administration.

To get started, log into cPanel.

Go to the Software section of cPanel and select the MultiPHP INI Editor option.

Select Editor mode.

To select a domain, use the drop down menu.

At the bottom of your existing code, add the line file_uploads = On.

Then, click on the Save button to save your changes.

How to make a phpinfo file to access the PHP modules for your domain:

In your cPanel dashboard, select File Manager under the FILES section

Locate the public_html folder and click on it.

To create a new file, click on the File option.

Enter a file name that ends with the .php extension. In this example, we’ll use info.php.

To begin, click on Create New File.

You may notice a new file has been created named info.php.

Now, do a right click on info.php and select Edit.

Once you click Edit, a dialogue box appears asking you to select a Character Encoding.

You may simply click on Edit if you’d rather not select an encoding.

Once the window appears, please insert the following code:

<?php
phpinfo();
?>

Finally, click on Save Changes to save the file.

Now please visit the following URL: http://domainname/filename.php 

In this instance, the URL is http://cantechadmin20978.com/info.php

Now go to the Core section and you should see file_uploads is On for both Local Value and Master Value.

Conclusion

Adjusting file upload settings in cPanel can save you and your users a lot of trouble. You can customize your server’s settings based on your needs in Select PHP Version and MultiPHP INI Editor. As a note, keep your limits somewhat conservative. Even though you can set a huge upload limit, staying within your needs keeps the server stable and helps avoid overuse. After making your changes and confirming with a test upload, your site will be ready to accept files and documents from your users.

March 30, 2026