crazyaboutlinux

Well-Known Member
Nov 3, 2007
939
1
66
one of our client is trying to upload file through word press & getting the following error

Upload failed! The uploaded file exceeds the upload_max_filesize directive in php.ini
 

LinuxTechie

Well-Known Member
Jan 22, 2011
502
10
68
cPanel Access Level
Root Administrator
Hey!

>> Take a backup of the file php.ini ; The command php --ini will return the location of the php.ini
>> Open the php.ini using the editor vi and search for the parameter and increase the value.
>> Restart apache.

If you wants to increase the parameter only for one domain you can increase it in .htaccess/custom php.ini according to the handler used.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
41
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Does the user have their own php.ini file on the account? If so, then open up the php.ini file, look for upload_max_filesize and then increase it. This would be if you are using suPHP, which you can tell in WHM > Apache Configuration > PHP and SuExec Configuration area.

If you want to change the global setting for the server itself, you can edit /usr/local/lib/php.ini file and edit the size for upload_max_filesize there to have a larger value.