How to Increase PHP File Upload Limit Settings via php.ini from cPanel

If you need to upload larger files, increase memory limits, or modify other PHP settings, you can easily adjust the php.ini file values using cPanel. Follow the steps below to increase PHP limits such as upload_max_filesize, post_max_size, and memory_limit.


Steps to Increase PHP Settings

  1. Log into your cPanel: Access your cPanel by visiting yourdomain.com/cpanel or through your hosting provider’s client area. Enter your username and password to log in.
  2. Go to the Software Section: After logging in, locate the Software or Software/Services section on the cPanel dashboard.
  3. Open MultiPHP INI Editor: Within the Software section, you should find an option called MultiPHP INI Editor. Click on it.
  4. Select a Location: In the MultiPHP INI Editor page, choose the domain or the home directory you want to modify from the dropdown menu.
  5. Adjust PHP Directives: Once you have selected the domain, you will see a list of PHP directives. Some common ones include:
    • upload_max_filesize
    • post_max_size
    • memory_limit
    • max_execution_time
    Change the values as needed. For example, to increase upload_max_filesize from 2M to 64M, simply replace 2M with 64M.
  6. Save Your Changes: After making the necessary changes, scroll down and click on the Apply or Save button to store the updated PHP configuration.

Additional Tips

  • Use Reasonable Values: Setting values too high may impact server performance. Choose values based on your site’s requirements.
  • Units of Measurement: Use M for megabytes or G for gigabytes. Example: 64M, 512M, 1G.
  • Propagation Time: Changes may take a few minutes to apply.

Note: If you do not see the MultiPHP INI Editor option or do not have the ability to adjust these values, contact your hosting provider. They may need to make changes on your behalf, or you may need to edit the php.ini file manually via FTP or SSH.

Conclusion

By following these simple steps, you can quickly and easily increase the PHP configuration limits for your website from your cPanel. Adjusting the php.ini values can help accommodate larger file uploads, increased memory usage, and more, ensuring your site runs smoothly.

  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Понудени резултати

File Manager Access in cPanel

If you're a web hosting user looking to manage your server using cPanel, accessing the File...

Reset cPanel File Manager

If you want to start fresh with cPanel, resetting the File Manager is a great way to get a clean...

cPanel File Manager Backup: Complete Guide

The cPanel control panel is widely used to manage backend operations of websites. One useful...

AutoSSL in cPanel

cPanel has many features, like website backup and more. One of its important features is AutoSSL....

How to Create a Subdomain In cPanel

Creating a subdomain in cPanel is a simple way to organize your website and create separate...