简体   繁体   中英

Increment upload size Wordpress

I want to increment the file size of Wordpress.

I've tried to change the php.ini file in /etc/php5/apache2/php.ini :

upload_max_filesize = 128M
post_max_size = 10M

I've tried adding to my theme's functions:

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

I've tried adding to the .htaccess file:

php_value upload_max_filesize 10M
php_value post_max_size 10M

Also I've tried to install a plugin called "Increase Upload Max Filesize" and the plugin is telling me:

Your upload_max_filesize was already 128M.
Your post_max_size was 16M.

After trying each of these 4 methods I've restarted apache service, but none of these is working, when I go to "Add media" Wordpress shows me that the maximum filesize is 1MB.

What's wrong?

I had a similar issue. In the end turned out there were 2 php.ini files. 1 in "php" files, and one in "phpmyadmin" files. When i changed both problem solved but not sure this what you are facing. Something similar is mentioned here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM