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
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
Hey,
You can increase the value of the parameter in php.ini of the server or in custom php.ini of the domain.
as i don't know how to
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.
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.
cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
-- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support
Submit a ticket | Check an existing ticket