เราจะ Permission ไฟล์ใน localhost ได้ไหมครับ

เริ่มโดย dekjj, 09 ธันวาคม 2012, 10:57:57

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

dekjj

พอดีว่าจะติดตั้ง scrip บน localhost แต่มันติดตรงตั้องเซ็ต File Permission บางไฟล์ ให้เป็น 777 ก่อน ไม่รู้ว่าจะทำยังไง



ขอบคุณครับ

xvlnw.com

localhost ไม่ต้อง permission 777 นะครับ เพราะเราได้สิทธิ์ใช้งานตรงนั้นอยู่แล้ว

อาจจะตั้งค่าอะไรผิดหรือปล่าวครับ ?
[direct=https://cloudhost.in.th/wordpress-hosting]ツ ⓌⓄⓇⒹⓅⓇⒺⓈⓈ ⒽⓄⓈⓉⒾⓃⒼ [/direct] :wanwan014:  :D
[direct=https://cloudhost.in.th/cloudhosting.html]Cloud Hosting[/direct] [direct=https://cloudhost.in.th/cloudvps.html]Cloud Server[/direct] [direct=https://cloudhost.in.th/vpshosting.html]Cloud VPS Hosting[/direct] [direct=https://cloudhost.in.th/windowsvps.html]Cloud Windows[/direct] Tel: 080-348-0843 LINE: ixvlnw

เด็กหลังห้อง

ส่วนมากมันก็ใช้ได้เลยนี่น่า ไม่ต้องไปตั้ง 777 นี่น่า  :-[

dekjj

อ้างถึงจาก: xvlnw.com ใน 09 ธันวาคม 2012, 10:59:40
localhost ไม่ต้อง permission 777 นะครับ เพราะเราได้สิทธิ์ใช้งานตรงนั้นอยู่แล้ว

อาจจะตั้งค่าอะไรผิดหรือปล่าวครับ ?

อันนี้คือ folder จะเป็น 777 อยู่แล้ว แต่ไฟล์มันเป็น 666 อ่ะครับ ผมก็เลยงง มันจะเป็นไฟล์นามสกุล file.ini , file.txt

Maxio

ถ้า linux ก็สั่ง
chmod -R 777 httpdocs/folder
หรือ
chmod -R 777 var/www/folder


ถ้า windows ไม่มี chmod 777 ครับ มีแต่ Full Control

ถ้าจะใช้ command line ก็ตามนี้ครับ เข้า run >> cmd

icacls "C:\folder" /g everyone:f สำหรับให้สิทธิ์ทุกคน

icacls "C:\folder" /g administrator:f  สำหรับ administrator

แต่ในวินโดว์ ทำง่ายกว่านั้นครับ แค่กด คลิกขวาที่โฟลเดอร์ >> properties >> เลือก security tab >> Edit

ตรงช่อง Allow ติ๊กถูกที่ Full Control ก็จะได้สิทธิ์เทียบเท่ากับ chmod 777 ใน linux ครับ

ประมาณนี้มั้งครับ

toruto

อ้างถึงจาก: Maxio ใน 09 ธันวาคม 2012, 11:34:10
ถ้า linux ก็สั่ง
chmod -R 777 httpdocs/folder
หรือ
chmod -R 777 var/www/folder


ถ้า windows ไม่มี chmod 777 ครับ มีแต่ Full Control

ถ้าจะใช้ command line ก็ตามนี้ครับ เข้า run >> cmd

icacls "C:\folder" /g everyone:f สำหรับให้สิทธิ์ทุกคน

icacls "C:\folder" /g administrator:f  สำหรับ administrator

แต่ในวินโดว์ ทำง่ายกว่านั้นครับ แค่กด คลิกขวาที่โฟลเดอร์ >> properties >> เลือก security tab >> Edit

ตรงช่อง Allow ติ๊กถูกที่ Full Control ก็จะได้สิทธิ์เทียบเท่ากับ chmod 777 ใน linux ครับ

ประมาณนี้มั้งครับ

ว้าว สงสัยมาตั้งนาน