username: password: สมัครสมาชิก
เยี่ยมชม   ครั้ง 21,371 สมาชิก 688 VDO
3,290 บลอก 288 บทความ 222 E-Book
495 บทความ IT 44 ตัวอย่างโค้ด 631 กระทู้
ค้นหา:
 
Java Thailand Board
keawsopa
kohana Error 500

ดีครับผม.....

 เนื่องจากมีการเปลี่ยน example.htaccess   ให้เหลือ .htaccess เพิ่มไม่ต้องการให้พิ่มตรง index.php

และมีการเปลี่ยนแปลง ตรง   RewriteBase /kohana/  ให้เป็นโจคของผม RewriteBase /tutor/  ตาม Vdo เลย

ผมก็ทำตาม vdo ที่สอนนะครับผม... แต่กับทำไม่ได้นะครับรผม...

ซึ่งมีการแจ้งลายละเอียดดังนี้ครับผม...

Internal Server Error

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

Please contact the server administrator, dekcisinformation@gmail.com 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.1 Server at localhost Port 80
 

 

รบกวนพี่ ๆๆ ด้วยนะครับผม....

ขอบคุณมากครับผม...


first_member

ขอดู url เวลาพิมพ์

แล้วก็ใน application/config/config.php ครับ มันจะมีตัวแปรในนั้นอยู่


hopes

งั้น คงต้องไป config apache ให้เปิด mod_rewrite ครับ

ถ้า ใช้ appserv 

- เข้าไป folder apache2.2/conf/
- หาไฟล์ httpd.conf แล้วเปิดด้วย editor เพื่อไข
- บรรทัดที่จะแก้ไข อยู่ประมาณ
196 #LoadModule rewrite_module modules/mod_rewrite.so
- ลบ # ออกแล้ว save ครับ หลังจากนั้นก็ restart apache ก็น่าจะได้แล้วนะครับ

 


keawsopa

 ครับผม..

; ตอนที่ยังไม่ลบ  example.htaccess

http://localhost/tutor/index.php/hello_world/hello

และ run ผ่านไปได้สวยพี่น้อง...

 

; ตอนที่ลบ .htaccess แล้ว

http://localhost/tutor/hello_world/hello

# Installation directory
RewriteBase /tutor/   // แก้ไข project ตาม Vdo

 

ส่วนในการแก้ไข application/config/config.php

$config['site_domain'] = '/localhost/tutor/';         /// เหมือนกันกับตอนสอนเลยนะครับผม....

 

ครับผม..

 


keawsopa

โอ้ว ได้ แล้วครับผม ... ต้องขอบคุณพี่ hopes   ถ้าไม่ได้พี่ผมคงเริ่มต้นไม่ถูกต้องเหมือนกันนะครับผม..

 

แต่ผมไม่ีค่อยเข้าใจนะ... พี่ช่วยอธิบายให้พอ คราว ๆๆ หน่อยได้เปล่า ว่าทำไมถึงได้เกิดจากสาเหตุนี้นะครับผม...

 

ขอบคุณมากครับผม.....


first_member

อ้อ มันไม่ยอมให้เราทำการ เล่นกับ url ได้ เลยไปเปิด mod_rewirte ครับ

พอเราเปิดมันแล้ว ก็สามารถเล่นอะไรก็ได้กับ url ชนิดที่ว่า ตกแต่งได้ดั่งใจคุณ เหอ ๆ

ซึ่งตัว kohana มันจำเป็นต้องใช้ครับ ต้องขออภัยที่ VDO ไม่ได้บอกไว้ เพราะปกติเค้าจะเปิดให้แล้ว


keawsopa

 ขอบคุณครับ ท่านจอมยุทธ ที่ช่วยชี้แนะ


zenzor

สุดหยอดครับ !! ^^



p@e

ขอบคุณท่าน hopes ที่ชี้แนะ ผมก็ติดปัญหานี้เช่นกัน


TRotencrop

ขอบคุณมากครับ ตอนแรกนั่งงมตั้งนาน


jutamart

 ขอบคุณมากมากค่า (ทั้งคนถามและคนตอบเลย)   หาอยู่นานมักมัก


teckhack

 ขอบคุณมากเลยครับ ผมก็เจอปัญหานี้เหมือนกันเลย 


MosaD

ขอบคุณมากครับ^^


Jeeo

 ขอบคุณมากครับ


kanjerokung

แบบนี้นี้เอง งมอยู่ตั้งนาน ขอบคุณครับ คุณ hopes


cs-online

ขอบคุณมากครับ


cs-online

 

แต่ทำไมพอ sent data to controller แล้วหน้าต่อไปถึง

Internal Server Error

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

Please contact the server administrator, my-calmly@hotmail.com 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
 
แบบนี้อีกอ่าครับ รบกวนพี่ๆเช่นกันนะครับ

teenking

ขอบคุณมากครับ


google


A1234A

กำลังเริ่มศึกษามาเก็บความรู้


juisrikaew

ขอบคุณครับผม


googlepro

 ความรู้ ชัดๆๆ ชอบ เว็บนี้จริงๆๆเลย


normalman

ขอบคุณมากคับ ผมก็หาวิธีทำอยู่ ขอบคุณหลายๆครับ


hassadin1

 แล้วเวลา เราใช้ CSS file หรือ image ไฟล์ มันมีปัญหาหรือป่าวครับ ตอนนี้ ไฟล์ view ผม มันอ้างพาธ .css กับ image ไม่ได้เลยคับ

ร่วมแสดงความคิดเห็น *
กระดาน: 631
โพส: 2,026