Hello to everyone when im trying to set my wordpress site i uploaded a custom theme which is 5.6 mb in size,so when im trying to upload the file …..
I got this error : The uploaded file exceeds the upload_max_filesize directive in php.ini Error ,how can i increase the php.ini max file size data in MB and To which specific value i should increase ,i purchased cpanel and vps server hosting in Go Daddy.
arunraj503
As shown in the above image,you need to login to your cpanel from your hosting provider,remember cpanel may look different as from shown image because different hosting providers come up with different cpanel interface,on the search bar,search as Php and you will find php.ini multi editor or something which shows the option as php.ini. We need to click and open so that we can increase the max upload size to a different value(we are going to increase max upload size to remove the error or php.ini)once you open that click on domain and find max upload file size and change it to a higher MB value as i shown in the above pic it is 2 MB and i Made it to 6 MB which solved the PHP.ini error
shree
There will be a option called Max_upload_size,we need to increase this parameter in order to solve this error,just open multi editor Php.ini on your hosting provider cpanel.
Here click on drop down and set Home directory,after that you will be able to see Max_upload_size parameter,by default most of the cpanel hosting providers will have it as 2MB,make it as 8MB or something you want as max upload limit.
Thus you can get rid of this php.ini error,this most happens when using with wordpress.