Tắt nóng các module sử dụng PHPMyAdmin

Đối với một số server cung cấp giới hạn bộ nhớ PHP/MySQL khá ít, có lúc chúng ta sẽ gặp phải tình trạng site không thể hoạt động: hoặc hiện ra trang trắng, hoặc luôn báo lỗi Page not found, hoặc có Fatal error đại khái: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 302882 bytes) in /var/hsphere/local/home/user/domain/includes/database.inc on line 199. Đến lúc này, chúng ta đành phải giảm bớt lại chức năng sử dụng, để site có thể tạm thời hoạt động, nhưng, việc tắt bớt các module đến lúc này không phải lúc nào cũng dễ dàng, vì bộ nhớ PHP/MySQL đã quá tải. Chúng ta cũng có thể tắt bớt các module bằng giao diện PHPMyAdmin như sau:

  • Thực hiện câu truy vấn: SELECT * FROM system WHERE type = 'module' AND status = 1 ORDER BY name LIMIT 0, 300;
  • Bảng kết quả là danh sách các module hiện có trong hệ thống
  • Click chọn sửa status của module muốn tắt thành 0.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <sup> <br> <p> <h3>
  • Lines and paragraphs break automatically.
  • Link to content with [[some text]], where "some text" is the title of existing content or the title of a new piece of content to create. You can also link text to a different title by using [[link to this title|show this text]]. Link to outside URLs with [[http://www.example.com|some text]], or even [[http://www.example.com]].
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.