Remove XAMPP Memory Size limit

Source: Internet
Author: User
Tags root directory

Must be a lot of play WordPress friends are useful XAMPP build a local php+mysql environment for WordPress theme Templates and plug-in testing. But I have always encountered a problem: The remote server wordpress background export of "articles, comments, categories" (XML) files in the import to local WordPress, the following error (may be more content, such as articles):

Fatal error:allowed memory size of 33554432 bytes exhausted (tried to allocate 320160 bytes) in D:\xampp\htdocs\wp-admin\ Import\wordpress.php on line 125

The literal understanding should be memory size limit, before 2nd at JC prompted finally found a solution (assuming XAMPP installed in the D-packing directory):

1, open D:\xampp\apache\bin directory;

2, find and open php.ini configuration file;

3, search the memory, find the following content:

;;;;;;;;;;;;;;;;;;;

; Resource Limits;

;;;;;;;;;;;;;;;;;;;

Max_execution_time = 60; Maximum execution time of each script, in seconds

Max_input_time = 60; Maximum amount of time each script may spend parsing request data

Memory_limit = 32M; Maximum amount of memory a script may consume (16MB)

Memory_limit is the parameter that is used to set the size of the memory size, and the value is modified to 64M or greater. The other 2 parameters Max_execution_time and Max_input_time literal understanding should be timeout and import time settings, can also be adjusted as needed. Last saved;

5, back to the root directory of XAMPP, double-click Xampp_restart.exe Restart Apache and Mysql.

That ' s all. Back to Wordpress background, you can successfully import the XML file

It is easy to do it ~ no longer worry about memory size problem!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.