方法: (此方法適用於 Ubuntu Linux, 因其 web server 的 user account 是 www-data)
chown www-data:www-data -R * # Let apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--

沒有留言:
張貼留言