กรุณาปิด AdBlock!

Cancel your adBlock please.

ขยายหน้าเว็บRegister Login
 โฆษณา
หน้า: [1]  ลงล่าง
  พิมพ์  
topic

Internal Server Error The server encountered an internal error ...  (อ่าน 8440 ครั้ง)

ไอที
« เมื่อ: 23, 05 2008, 10:39:00 AM »
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.4 (Win32) PHP/5.2.3 Server at localhost Port 80

------------------------------------------
ปัญหา error code ด้านบน จะพบมากใน Apache เวอร์ชั่นใหม่ๆ ซึ่งที่ผมทดสอบดูโดยลง Appserv 2.5.9 ครับ ที่เป็นแบบนี้เพราะว่า apache ได้ตรวจสอบพบไฟล์ .htaccess ครับ

คงรู้ใช้มั้ยครับว่าไฟล์นี้เอาไว้ทำอะไร ถ้ายังไม่ทราบ ลองค้นหาจาก google ดูครับ

คนที่ทำ mod_rewrite ต้องเจอปัญหานี้แน่ๆครับ เนื่องจาก เราไม่ได้เปิดใช้ module MOD_REWRITE ครับ

วิธีแก้ไขก็คือ ให้ท่านเปิด ไฟล์ httpd.conf ใน apache ขึ้นมาครับ

จากนั้นค้นหาคำว่า mod_rewrite หรือ rewrite

ใน AppServ2.5.9 จะมีบรรทัดนี้ครับ

#LoadModule rewrite_module modules/mod_rewrite.so

ให้ลบเอา # หน้าบรรทัดนี้ออกครับ เพื่อ config ให้ server อนุญาตให้เราใช้ mod_rewrite ได้

จากนั้น Save แล้ว Restart Apache ด้วยครับ อาจจะ Stop และ Start ใหม่ ถ้าการ restart ไม่ได้ผล

ลองทำดูนะครับ...

อ่านวิธีการทำ Mod_rewrite : http://www.dekitclub.com/forum/index.php?topic=853.0 link
เด็กไอทีคลับ
เด็กไอทีตัวพ่อ
เด็กไอทีคลับชั้นเซียน
*
พลังความคิด 89
กระทู้: 3,536
บันทึกการเข้า
หน้า: [1]  ขึ้นบน
  พิมพ์  
 
กระโดดไป: