Home WebServer PanelaaPanel Change memory_limit on aaPanel

Change memory_limit on aaPanel

by Thạch Phạm
Published: Last Updated on
A+A-
Reset

In this article, AZDIGI will guide you on how to change memory_limit on aaPanel.

I. Introduction

In the process of using the website, we may encounter some problems with the parameters of the PHP version in use and common PHP parameters that we often need to change, such as:

  • memory_limit: Limit the physical memory (RAM) that a PHP script can be used, set to -1 if you want unlimited.
  • post_max_size: The maximum size of the uploaded data. To upload large files, this value must be greater than upload_max_filesize. And memory_limit must be greater than post_max_size.
  • upload_max_filesize: The maximum size of the uploaded file.

In this article, AZDIGI will show you how to change memory_limit on aaPanel, and you can do the same with post_max_size and upload_max_filesize.

II. Change memory_limit on aaPanel

To change memory_limit on aaPanel, we follow these 2 steps.

Step 1: Access the aaPanel admin page

To access the aaPanel admin interface, we access the link http://IP:8888 on the browser.

Below is my aaPanel interface:

Screen Shot 2020 11 08 at 10.40.11 AM
The management interface of aaPanel.

After accessing the aaPanel admin page, we continue to step 2 to change the memory_limit on aaPanel.

Step 2: Change memory_limit on aaPanel

On the aaPanel admin page, select the App Store section on the left.

how-to-change-memory-limit-on-aapanel
App Store – where to install/uninstall apps on aaPanel.

Find the PHP version you are using and need to change, then select the Setting button as shown below:

how-to-change-memory-limit-on-aapanel
Change configuration PHP 7.3 on aaPanel.

In the pop-up window, select Configuration as shown below:

how-to-change-memory-limit-on-aapanel
Where to change PHP parameters.

Here you can change the memory_limit parameter arbitrarily, PHP set the default this parameter as 128M. For example, I need a memory_limit of 2GB, so I will set it to 2048M. By default, this parameter of PHP is 128M.

how-to-change-memory-limit-on-aapanel
Change memory_limit on aaPanel.

In this interface, you can change other common parameters such as post_max_size and upload_max_filesize. Then save with the Save button.

However, up to this step, the parameter changes have not changed immediately, but you need to restart this PHP version to be updated by selecting the Service section => Restart.

how-to-change-memory-limit-on-aapanel
Restart the PHP 7.3 service.

Next, you can check again by creating an info.php file with the following content to see the current full PHP parameters.

AZDIGI Tutorial
/var/lib/mysql/

    

Below is the memory_limit parameter after I increase it to 2GB.

how-to-change-memory-limit-on-aapanel
The memory_limit parameter has been increased to 2048M.

III. Summary

With just two simple steps, we successfully changed the memory_limit on aaPanel. This change will help PHP scripts that require more than 128M of physical memory to work smoothly and without sudden stops. However, you should not increase it too high if you encounter PHP scripts that use up the server’s RAM.

Hope this article will be of help to you. Wishing you success!

See more useful articles about aaPanel at the following link:

If you need assistance, you can contact support in the ways below:

Đánh giá

Tham gia nhóm hỗ trợ Server - Hosting

Tham gia nhóm Hỗ trợ Server - Hosting & WordPress để cùng nhau hỏi đáp và hỗ trợ các vấn đề về WordPress, tối ưu máy chủ/server.

Tham gia ngay

Bài viết cùng chuyên mục

AZDIGI – Không chỉ là đơn vị hàng đầu trong lĩnh vực Web Hosting và Máy chủ, chúng tôi mong muốn mang lại những kiến thức bổ ích nhất và luôn cập nhật thường xuyên cho cộng đồng người đam mê thiết kế website, công nghệ,…

Vui lòng không sao chép nội dung nếu chưa xin phép. Designed and Developed by PenciDesign