/etc/php5/apache2/php.iniand increase the setting for
upload_max_filesizeBy default, it is only 2MB
If you restart apache after making the change:
sudo service apache2 restart
It takes affect right away!
Find all php.ini files:
root@server:~# find / -name php.ini
Edit the files:
root@server:~# nano /usr/local/vesta/php/lib/php.ini
Use crtl + w for search for upload
Change this line:
uploadmaxfilesize = 2M
uploadmaxfilesize = 10M
Repeat for all files:
root@server:~# nano /usr/local/vesta/src/rpm/conf/php.ini
root@server:~# nano /etc/php5/apache2/php.ini (this is probably the one you should change)
root@server:~# nano /etc/php5/cli/php.ini
root@server:~# nano /etc/php5/cgi/php.ini
root@server:~# sudo service apache2 restart
We have installed using once click wordpress on ubuntu.
Our upload size has been restricted to 8M .
how should we go about increasing it ?
Login to SSH
Try uploading again :)
This option is for the base date of upload in PHPMyAdmin, but I want to know how to increase the upload of Media in WordPress (php.ini the wp-admin folder) because I have not found. Uploading default WordPress is 20M. Can anyone help? Thank you.
Same problem here.
I tried to open file /etc/php5/apache2/php.ini but I got permission denied?
First if you dont find php.ini file create one and insert
maxexecutiontime=300 and save the file
Next specify the path of php.ini file inside .htaccess file using suPHPConfigPath/home/username/publichtml where username should be the username mentioned in cpanel. You can refer http://www.vinaypn.com/how-to-fix-maximum-upload-size-exceeded-error-in-wordpress-running-on-shared-hosting/
I have done it!
For increasing your file limit the easiest way is by loging into WHM and click on the Manu links at the left side called " Service configurations" Then click on "PHP Configuration Editor" then browse down to the line that has this: "Core ... uploadmaxfilesize ....The maximum size of an uploaded file." change the value from 2M to whatever you wanted, better keep to a minimum as per your requirement, I added mine to 6M and now I can upload up to 6MB.
WordPress Error – How to Fix The uploaded file exceeds the uploadmaxfilesize directive in php.ini
If you are building your new website you always get a problem The Uploaded file exceeds the uploadmaxfilesize directive in php.ini. So that Post is for you in these Post i show you WordPress Error – How to Fix The uploaded file exceeds the uploadmaxfilesize directive in php.ini without slowing down the Speed of Your Website .
1.Open your CPanel Account.
2.Go to ( Select PHP Version ) in your CPanel Account .
Done Now you can upload any PLUGIN or THEME without getting WordPress-Error-How-to-Fix-The-uploaded-file-exceeds-the-uploadmaxfilesize-directive-in-php.ini !!!
For Detailed Step by Step Guide Visit Here = https://www.codingauthority.com/wordpress-error/wordpress-error-fix-uploaded-file-exceeds-uploadmaxfilesize-directive-php-ini/