วิธีเพิ่มขีด จำกัด หน่วยความจำ memory limit PHP ใน DirectAdmin

To change upload size in DirectAdmin you need to edit php.ini

Firstly you need to find your php.ini. A new and easy trick to find your php.ini would be to ask php itself what it's using, eg:

/usr/local/bin/php --ini | grep 'Loaded Configuration File'

If you're running the default version of CLI php, your php.ini will be located at:

/usr/local/lib/php.ini

Edit php.ini. Search for Maximum allowed size for uploaded files.

upload_max_filesize = 2M

Change the 2M to whatever new value you want. If no "memory_limit" found, add the following line at the end of php.ini

memory_limit = 128M; /* Change the 128M to your needs */Save file.

Restart Apache. Consider that this setting may also be related:

Maximum size of POST data that PHP will accept.

post_max_size = 8M

Also some RoundCube versions have limits set in the file

/var/www/html/roundcube/.htaccess

So be sure to increase them there as well, if they're set.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

วิธีดู Username/Password ของ admin

สามารถดู Username/Password ของ admin ได้โดย 1 cat...

จำรหัสผ่านไม่ได้ FORGOT ADMIN PASSWORD

วันดีคืนดีก็เกินลืมรหัสผ่านของ admin ขึ้นมาซะดื้อๆ ครั้นจะลองเดาแล้วก็ ไม่ใช่ซักรหัสเลย...

การตั้งค่าวันเวลาที่จะให้?Cronjob ทำงาน

การทำงานของระบบ?Cronjob จะเน้นการทำงานซ้ำ ๆ ในเวลาเดิมเรื่อย ๆ เช่นทำงานทุก ๆ 1 ปี และปีละ 1...

วิธี เปลี่ยนภาษาเมนู DirectAdmin เป็นภาษาไทย หรือ ภาษาอังกฤษ Language DirectAdmin

วิธี เปลี่ยนภาษาเมนู DirectAdmin เป็นภาษาไทย หรือ ภาษาอังกฤษ Language DirectAdmin 1....

วิธีแก้ไขให้ DirectAdmin อ่านภาษาไทยได้

SSH เข้าไปยัง Server หรือ ที่เรียกโปรแกรมว่า putty วิธีใช้คำสั่ง แก้ไขไฟล์ vi...