075-845-490 | 097-165-2449
Line ID: @hostnakhonitech
🎉 โปรโมชั่นพิเศษ! ลด 10% สำหรับลูกค้าใหม่
NakhoniTech
075-845-490
support@NakhoniTech.com

How to enable displaying php errors on site Print

  • 1

To enable displaying PHP errors

  1. Open your website with file manager61
  2. Go to public_html directory
  3. Create .htaccess file (if it does not exist already)
  4. add this line: php_value display_errors 1
  5. save file

Now when your website has a problem you will see exactly what the problem is and may google for it.

Remember to remove the line when the problem is solved.


Was this answer helpful?

Related Articles

จะทำการ block IP โดยใช้ .htaccess ได้อย่างไร สามารถทำได้โดยระบุ IP ที่ต้องการบลอกที่ .htaccess ไฟล์ โดเยการสร้างไฟล์วางไว้ที่ public_html... วิธีการเปลี่ยนหน้าแรกจากไฟล์ index เป็นชื่ออื่นที่ต้องการใน hosting ของเรา ภายในไฟล์ .htacess ให้ระบุข้อมูลต่อไปนี้ครับ DirectoryIndex ชื่อไฟล1 ชื่อไฟล์2 ชื่อไฟล์3... Leverage browser caching Change the request headers of your resources to use caching. Optimize your caching strategy.... การป้องกัน Hotlink: วิธีการป้องกันไม่ให้ผู้อื่นขโมยไฟล์ของคุณ สร้างไฟล์. htaccess ในไดเร็กทอรี public_html ของคุณโดยใช้รหัสต่อไปนี้: RewriteEngine on... วิธี เปิดแสดงลิสต์ไฟล์ในโฟลเดอร์บนเซิร์ฟเวอร์ ด้วย .htaccess วิธีการเปิดแสดงไฟล์ที่อยู่ในโฟลเดอร์ใดๆ บนเซิร์ฟเวอร์ โดยใช้ .htaccess เป็นตัวกำหนดค่าได้ดังนี้...
« Back