Changing the maximum upload size in php.ini

Error text: file_name" has failed to upload due to an error - This file exceeds the maximum upload size for this site. You will need to increase the allowed memory in your php.ini file. The instructions below will show you on how to fix the php memory error by adjusting the appropriate sections of your local php.ini file.

memory_limit = 128M

upload_max_filesize = 128M

post_max_size = 128M

VestaCP  : vi /etc/php.ini 

DirectAdmin :vi /usr/local/php/lib/php.ini
หรือ : vi /usr/local/php56/lib/php.ini

  • MySQL, phpMyAdmin
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

การ Compile Apache (DirectAdmin Custombuild)

หากท่านพบปัญหาในการใช้งาน หรือต้องการอัพเดต Apache เวอร์ชั่นใหม่สามารถ SSH เข้าเซิฟเวอร์ของท่าน...

การ Compile PHP (DirectAdmin Custombuild)

หากท่านพบปัญหาในการใช้งาน หรือต้องการอัพเดต Apache เวอร์ชั่นใหม่สามารถ SSH เข้าเซิฟเวอร์ของท่าน...

การ Update ProFTPD (DirectAdmin)

ท่านสามารถ SSH เข้าสู่เซิฟเวอร์ของท่าน จากนั้นสั่งคำสั่ง่ต่อไปนี้ เพื่อทำการ Update ProFTPD ได้...

การ Update RoundCube Webmail (DirectAdmin)

ท่านสามารถ SSH เข้าสู่เซิฟเวอร์ของท่าน   จากนั้นสั่งคำสั่งต่อไปนี้เพื่อทำการ Update RoundCube...

การตั้งค่า Default Webmail ให้ DirectAdmin

หาก ท่านต้องการตั้งค่าให้ปุ่ม Webmail ที่อยู่ด้านบนของ DirectAdmin เป็น Webmail...