In this web hosting knowledge base article, we will help you understand why the error message “The uploaded file exceeds the upload_max_filesize directive in php.ini” appears and how to have it fixed.
If you are a WordPress user and you have chosen WordPress as your solution to make your project live online you may have seen this error at least once – when installing a theme, plugin or uploading media file. Don’t panic, there is a solution and here you can find it.
php.ini is one of the crucial files of PHP. It is read when PHP starts up and it controls the resource limits, file timeouts and upload sizes.
And when you encounter that error your next move is to increase the upload_max_filesize limit. In order to do this, you will need to modify your php.ini file. Depending on your hosting plan and hosting provider you may have the option to edit that file or use a visual interface to set the file size.
If you have the option to manage and tweak your php.ini file you have to just find the file and apply the needed changes. For UNIX installations your php.ini file may be located at /usr/local/lib/php.ini.
Or you can create such file and use a template with the standard configuration and then apply the changes needed by your application.
Fixing: the uploaded file exceeds the upload_max_filesize directive in php ini WordPress in WHM and cPanel
In WHM and cPanel you have also the option to manage the php.ini settings via visual interfaces.
In cPanel you can do it via PHP Selector tool called “Select PHP version” and set the size through a drop-down menu PHP options
In WHM you can use MultiPHP INI Editor and set the size by setting its value MB.
If you are not sure what the size limit should be you can check your theme or plugin server requirements and follow them accordingly. Keep in mind that your desired plugin or theme may require you to increase these settings too:
Once you increase them and they meet the requirements you should be able to apply your new theme and install the cool plugin you need. Along with your new images, you can now continue creating the site of your dreams.
You can benefit from a fast and reliable SSD WordPress Hosting with our shared hosting services. Now with a greatly discounted price! Start your new WordPress project without investing a large amount of money and grow your online presence!