I am using cPanel of my website to increase maximum upload file size for wordpress media uploads. I have used the codes(found out from google) for this purpose wp-config.php, .htaccess but nothing is working. In my cPanel, there is no service for php configuration editor under software / services section or anywhere else. Please help what should I do?
My .htaccess shows this code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I tried by placing the code:
php_value upload_max_filesize 20M
php_value post_max_size 20M
inside and outside # blocks, it gives 500 error rather.
In my case it was
wp-admin/.user.ini
:Login to your WHM panel if you have access to
Then go to Software -> MultiPHP INI Editor
Then select the php version from the dropdown, then scroll down for the upload_max_filesize which will be 2M by default, now increase it according to your need.
Also enable the file_uploads for HTTP file uploads for convenience.
If you don't have access to WHM, then follow the .htaccess method.
You should not replace the text entirely. Add the text after the "# END WordPress".
New Cpanel Settings on a Godaddy
From Cpanel go to:
Increase post max size and upload max file size, save and your done.
We can increase maximum upload file size for WordPress media uploads in 3 different ways.
That's are
For .htaccess way, add following code,
for PHP.INI file method, add following code,
for Theme’s Functions.php File, add following code,
For More Details->>>
On CPanel 64.0.40 (I didn't try any other version): Go in "Software" then "Select PHP Version" then "Switch To PHP Options" then upload_max_filesize => click on the value and select the one you prefer :) It's super hidden for such a critical option...