apache error 403 มีวิธีแก้ยังไงคับ
Error code 403 don't have permiss...
ไม่ทราบมีใครเคยเป็นมั่งคับ
เกี่ยวกับ ssl หรือเปล่า
พอมีวิธีแก้หรือเปล่าคับ พอดีลองหาวิธีแก้ดู ก็ใช้ไม่ได้ เลยคับ
ขอบคุณมากคับ
Permission Set
ตัวนี้พี่เทพแนะนำให้ผมรู้จักเมื่อหลายเดือนที่ผ่านมาครับ
เราจะตั้ง Permission เป็นดังนี้นะครับ
Directory : 711 (User: rwx, Group: x, Other: x)
File: 755 (User:rwx, Group: rx, Other: rx)
สมมติว่า DocumentRoot อยู่ที่ /home/webs/example นะครับ
เริ่มทดสอบคำสั่งก่อน เพื่อความปลอดภัย
# find /home/webs/example -type d -exec file '{}' \;
/home/webs/example/Wallpaper/: directory
# find /home/webs/example -type f -exec file '{}' \;
/home/webs/example/Wallpaper/debian038.jpg: JPEG image data, JFIF standard 1.01 /home/webs/example/Wallpaper/debian073.jpg: JPEG image data, JFIF standard 1.02 /home/webs/example/Wallpaper/debian096.jpg: JPEG image data, JFIF standard 1.02
ที่ให้ตรวจสอบอย่างนี้ก่อนเพื่อให้แน่ใจว่าเราใช้คำสั่งถูกต้อง และจะเห็นว่า
-type d สำหรับค้นหา directory
-type f สำหรับค้นหา file
ต่อไปเราจะตั้งค่า Permission ตามที่ระบุไว้ข้างต้น
find /home/webs/example -type d -exec chmod 711 '{}' \;
find /home/webs/example -type f -exec chmod 755 '{}' \;
คราวนี้เรื่อง Permission ก็น่าจะหมดไปแล้วนะครับ :)
**********************
Key ID: D4CEFD37
Fingerprint: 1ED3 27F6 48C8 5C9D 4285 F24D D64E C0AF D4CE FD37
**********************









Recent comments
1 day 22 hours ago
2 days 14 hours ago
1 week 4 days ago
2 weeks 6 days ago
3 weeks 5 days ago
3 weeks 6 days ago
4 weeks 21 hours ago
4 weeks 23 hours ago
4 weeks 1 day ago
4 weeks 3 days ago