简体   繁体   English

增加上传大小Wordpress

[英]Increment upload size Wordpress

I want to increment the file size of Wordpress. 我想增加Wordpress的文件大小。

I've tried to change the php.ini file in /etc/php5/apache2/php.ini : 我试图更改/etc/php5/apache2/php.ini中的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: 我尝试添加到.htaccess文件中:

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. 在尝试了这4种方法中的每一种之后,我已经重新启动了apache服务,但是当我转到“添加媒体”时,这些都不起作用,Wordpress向我显示最大文件大小为1MB。

What's wrong? 怎么了?

I had a similar issue. 我有一个类似的问题。 In the end turned out there were 2 php.ini files. 最终结果是有2个php.ini文件。 1 in "php" files, and one in "phpmyadmin" files. 1个在“ php”文件中,一个在“ phpmyadmin”文件中。 When i changed both problem solved but not sure this what you are facing. 当我改变了两个问题都解决了,但不确定这是您要面对的。 Something similar is mentioned here . 这里提到类似的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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