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
- 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. - Go to the Software Section: After logging in, locate the Software or Software/Services section on the cPanel dashboard.
- Open MultiPHP INI Editor: Within the Software section, you should find an option called MultiPHP INI Editor. Click on it.
- Select a Location: In the MultiPHP INI Editor page, choose the domain or the home directory you want to modify from the dropdown menu.
- 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
upload_max_filesize
from 2M to 64M, simply replace2M
with64M
. - 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 orG
for gigabytes. Example:64M
,512M
,1G
. - Propagation Time: Changes may take a few minutes to apply.
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.