Plz anyone can help me on how to fix this issue on WordPress “The uploaded file exceeds the upload_max_filesize directive in php.ini”. Whenever I install a theme, I get this error.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
If you restart apache after making the change: sudo service apache2 restart
It takes affect right away!
Right, you need to edit the file <code>/etc/php5/apache2/php.ini</code> and increase the setting for <code>upload_max_filesize</code> By default, it is only 2MB <br> <br>See: http://php.net/upload-max-filesize <br>
Find all php.ini files: root@server:~# find / -name php.ini /usr/local/vesta/php/lib/php.ini /usr/local/vesta/src/rpm/conf/php.ini /etc/php5/apache2/php.ini /etc/php5/cli/php.ini /etc/php5/cgi/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: upload_max_filesize = 2M To: upload_max_filesize = 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
Restart apache: root@server:~# sudo service apache2 restart
WordPress Error – How to Fix The uploaded file exceeds the upload_max_filesize directive in php.ini If you are building your new website you always get a problem The Uploaded file exceeds the upload_max_filesize 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 upload_max_filesize 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 . 3. Now Click on ( Switch to PHP Options ) . 4. Now Go To ( Upload Max_Filesize ) & Select Max Size Then Click on ( Apply ) … 5.Click on ( Save ) …
Done Now you can upload any PLUGIN or THEME without getting WordPress-Error-How-to-Fix-The-uploaded-file-exceeds-the-upload_max_filesize-directive-in-php.ini !!! For Detailed Step by Step Guide Visit Here = https://www.codingauthority.com/wordpress-error/wordpress-error-fix-uploaded-file-exceeds-upload_max_filesize-directive-php-ini/
Thank YOU geoff45e7908988 this is the solution I needed…
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 … upload_max_filesize …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.
Have fun! Harib Shaqsy haribshaqsy. com
First if you dont find php.ini file create one and insert upload_max_filesize=128M post_max_size=129M max_execution_time=300 and save the file
Next specify the path of php.ini file inside .htaccess file using suPHP_ConfigPath/home/username/public_html 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/
Same problem here.
I tried to open file /etc/php5/apache2/php.ini but I got permission denied?
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.
Login to SSH
Try uploading again :)
Login to SSH
upload_max_filesize = 2M
(default is set to 2MB)sudo service apache2 restart
) Done!Try uploading again :)
Connect to your root via the following: For example, if the server IP address was 123.234.123.234, the command would look like this: ssh root@123.234.123.234.
Enter your password and hit enter. Paste the following command. vim /etc/php5/apache2/php.ini Then hit enter. Type /upload_max_filesize Then hit enter. Use your cursor to hover over the 2M and change 16M. You can use the delete button to remove additional characters if you make a mistake. exit (press control x to exit) restart Apache by using command (sudo service apache2 restart) Done! Try uploading again :)
This option is for the date base 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.
I think you need to edit the php.ini file and change the default value you need to find the pathof the file and nano it or vi as a su here’s a link that may help you http://wptheming.com/2009/07/upload_max_filesize/
in my case I am using WHM and I am able to edit the php settingsfrom within the WHM control panel.