This is G o o g l e's cache of http://www.debianclub.com/node/28 as retrieved on 16 Feb 2007 01:26:20 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?hl=en&q=cache%3Ahttp%3A%2F%2Fwww.debianclub.com%2Fnode%2F28&btnG=Search


Google is neither affiliated with the authors of this page nor responsible for its content.

User login

Links

debianclub.com
debian.org
ubuntuclub.com
blognone.com

Syndicate

Syndicate content

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
**********************