Increasing the WordPress Memory Limit

Wordpress 1 phút đọc
Increasing the WordPress Memory Limit

1. Edit your wp-config.php file and enter something like:

define('WP_MEMORY_LIMIT', '256M');

WordPress memory can be different to the server – you need to set this regardless of server memory settings

http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

2. If you have access to your PHP.ini file, change the line in PHP.ini
If your line shows 32M try 256M:

memory_limit = 256M ; Maximum amount of memory a script may consume (256MB)

3. If you don’t have access to PHP.ini try adding this to the .htaccess file:
php_value memory_limit 256M

4. If none of the above works then talk to your host.

SẴN SÀNG BẮT ĐẦU?

Xây dựng một doanh nghiệp số hiệu quả hơn.

Hãy để đội ngũ chuyên gia của chúng tôi tư vấn giải pháp phù hợp nhất cho doanh nghiệp của bạn.

Nói chuyện với chuyên gia Tư vấn miễn phí và nhanh chóng
Gọi tư vấn