บทความ:PHP วิธีแก้ปัญหา Fatal error: Allowed memory size of 8388608 bytes exhausted


200917 May

ปรกติถ้าเราติดตั๊ง CMS ไม่ว่าจะเป็น Drupal , Joomla, หรือ WordPress แล้วประสบปัญหาแบบนี้ ก้อไม่ต้องตกใจไปเพราะมันมีวิธีแก้ลองอ่านบทความด้านล่างนี้ดู แล้วก้อลองทำตามเพราะตอนที่ ผมลง Drupla ใหม่ ๆ ก้อเจอะปัญหาแบบนี้ก้อเชื่อว่ามือใหม่ทุกคนก้อคงจะต้องเจอะลองทำตามดูน่ะคับ Just to summarize: สรุปคราว ๆ น่ะคับ
1. You can increase the memory allowed per process by editing this line in your php.ini file and restarting Apache:
กรณีที่ 1 แรกถ้าคุณเข้าไปแก้ php.ini ได้
สามารถเข้าไปแก้ไฟล์ php.ini โดย searchหาคำว่า memory_limit แล้วก้อเพิ่ม Memory
memory_limit = 16M (add the line if it is missing)
แล้วอย่าลืม Restart Apache คุณด้วยล่ะ
2. If you do not have access to php.ini but your webspace is able to handle ".htaccess" files then you should be able to set it by adding the following line to .htaccess file (like Keelix06 mentioned)
กรณีที่ 2 ให้คุณจัดการที่ไฟล์ .htaccess ให้เพิ่มบรรด้านล่างนี้ลง
php_value memory_limit 16M
3. One alternative is to contact your service provider and ask them to change that setting. Maybe they are kind enough to help.
วิธีสุดท้ายให้ติดต่อเจ้าหน้าที่ ที่คุณได้เช่า hosting ไว้เพื่อสอบถามการ set ค่าต่าง
สุดท้ายเชื่อว่าต้องมีซักวิธีที่คุณจะแก้ไขได้ซักอย่างน่ะคับ

หมวดหมู่สินค้า

ขายหูฟัง Sennheiser CX500, Sennheiser CX300 , Sennheiser MM50, Monster Beats , Bose in ear
รับ Preorder หูฟังจากต่างประเทศ

Earphone
(20)

รวม หูฟังทุกรุ่นต่าง ๆ ใน Shop

Sennheiser
(7)

ขาย หูฟัง Sennheiser CX500,ขาย หูฟัง Sennheiser CX300, ขาย หูฟัง Sennheiser MM50

AKG
(3)

หูฟัง AKG ใน Shop

Creative
(1)

หูฟัง Creative ใน shop

DIY
(4)

DVD และ VCD การสอนต่างๆและเรียนรู้ต่างๆด้วยด้วยตัวเอง

Bose
(1)

รวมหูฟังยี่ห้อ Bose

Bluetooth stereo
(5)

รวมหูฟัง อุปกรณ์ บูลทูธ ต่าง ๆ
และ หูฟังบูลทูธสเตอริโอสำหรับฟังเพลง

Finger Style Guitar
(7)

รวม DVD แนวเพลง Finger Style Guitar ต่างๆ

fingerstyle
(3)

DVD และ VCD เพลงแนว Finger Style Guitar

Tommy Emmanuel
(3)

รวมงานเพลง Tommy Emmanuel
แนว Finger Style Guitar

pair bluetooth
(1)

วิธีการ Pair อุปกรณ์ Bluetooth ต่าง ๆ

SMF
(2)

บทความและความรู้ด้านการพัฒนาเว็บไซต์

css
(11)

บทความเกี่ยวกับ CSS, เทคนิคต่าง ๆในการใช้ CSS เรียนรู้การแก้ไขต่าง ๆ

css hack
(4)

บทความเกี่ยวกับ CSS, เทคนิคในการปัญหา cross browser ในการแสดงผลของ browser ที่แตกต่าง ๆ กัน

drupal
(12)

บทความเกี่ยว Drupal แนะนำการใช้งาน Drupal และเทคนิคต่างๆในการใช้งาน

javascript
(13)

บทความเกี่ยว Javascript แนะนำการใช้งานวิธีแก้ไขต่างๆ

JSON
(1)
php
(4)
SEO
(3)
Web Tools
(3)

แนะนำเครื่องมือสำหรับพัฒนาเวบไซต์

Who's online

There are currently 0 users and 4 guests online.

ขายหูฟัง Sennheiser CX500, Sennheiser CX300 , Sennheiser MM50, Monster Beats , Bose in ear
รับ Preorder หูฟังจากต่างประเทศ

หน้าแรก Shop
(41)

หน้าแรกของ Shop