A simple method to modify the php memory for drupal runtime

Source: Internet
Author: User
Tags memory usage drupal

When the Drupal website runs out of memory due to excessive navigation memory overflow, Baidu can basically solve the problem. However, the search results are often not cumbersome, or have poor applicability, and cannot effectively solve the problem of insufficient php memory in drupal. Don't panic. What I teach you today is to use the simplest method to modify the php memory during drupal runtime.

Find the settings. php file, which usually exists in your sites/default/directory, if you haven't made any changes.

Use Ctrl + F to locate the location of the "PHP settings" string, which is usually around 270 rows and may vary depending on different file locations.

Add the following line of code and save it to take effect immediately. Do not forget to make comments so that you do not forget the modifications later ~

Ini_set ('memory _ limit ', '64m ');

Now let's run the drupal website to see if the display of memory usage has dropped.

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.