0

im trying to increase the file media size in wordpress but having no look i have done the pho.ini file and increased it that way but no look, perhaps wordpress have locked it down so you cant change the maximum file size, ive had a look around blogs and everyone is using the php.ini file but none of the blogs are very recent so i cant get a solution because they are all for the old versions of wordpress. and my hosting provider hasn't capped my upload limits, my current php.ini file is this:

   memory_limit = 52M
   upload_max_filesize = 100M
   upload_max_filesize = 100M
   post_max_size = 100M

i have changed this many a time to increase my file upload limit to 6GB.

4

2 回答 2

1

您也可以从您的最终域为您的域执行此操作。您可以从您域的 wp-config.php 或 .htaccess 文件执行此操作。这是代码:

为了wp-config.php:

define(’WP_MEMORY_LIMIT’, ‘64M’);

为了.htaccess:

php_value memory_limit 64M

谢谢,

于 2013-08-21T12:22:54.197 回答
0

文件 php.ini 的位置取决于 PHP 的安装。

了解它的最安全方法是通过以下脚本:

phpinfo();

修改php.ini文件

upload_max_filesize = 64M

post_max_size = 64M

在 wordpress 根目录中创建了一个 .htaccesss 文件,其中包含以下内容:

 php_value upload_max_filesize 64M

 php_value post_max_size 64M

 php_value max_execution_time 300

 php_value max_input_time 300

对于 wordpress 根目录中的 wp-config.php 文件:

define(’WP_MEMORY_LIMIT’, ‘64M’);
于 2014-03-21T06:13:00.983 回答