wordpress 檔案權限

參考網址:http://benjr.tw/10912

root@ubuntu:~# ll -a /var/www/html
total 196
drwxr-xr-x  5 root       root      4096 Oct 30 23:24 ./
drwxr-xr-x  3 root       root      4096 Oct 30 23:23 ../
-rw-rw-r--  1 root       www-data     0 Oct 31 00:11 .htaccess
-rw-r--r--  1 root       root       418 Sep 24  2013 index.php
-rw-r--r--  1 root       root     19935 Jan  2  2017 license.txt
-rw-r--r--  1 root       root      7413 Dec 12  2016 readme.html
-rw-r--r--  1 root       root      5447 Sep 27  2016 wp-activate.php
drwxr-xr-x  9 www-data   www-data  4096 Sep 19 14:21 wp-admin/
-rw-r--r--  1 root       root       364 Dec 19  2015 wp-blog-header.php
-rw-r--r--  1 root       root      1627 Aug 29  2016 wp-comments-post.php
-r--r-----  1 root       www-data  3273 Oct 30 23:23 wp-config.php
drwxrwxr-x  5 root       www-data  4096 Oct 30 23:40 wp-content/
-rw-r--r--  1 root       root      3286 May 24  2015 wp-cron.php
drwxr-xr-x 18 root       root     12288 Sep 19 14:21 wp-includes/
-rw-r--r--  1 root       root      2422 Nov 20  2016 wp-links-opml.php
-rw-r--r--  1 root       root      3301 Oct 24  2016 wp-load.php
-rw-r--r--  1 root       root     34327 May 12 10:12 wp-login.php
-rw-r--r--  1 root       root      8048 Jan 10  2017 wp-mail.php
-rw-r--r--  1 root       root     16200 Apr  6  2017 wp-settings.php
-rw-r--r--  1 root       root     29924 Jan 24  2017 wp-signup.php
-rw-r--r--  1 root       root      4513 Oct 14  2016 wp-trackback.php
-rw-r--r--  1 root       root      3065 Aug 31  2016 xmlrpc.php
root@ubuntu:~# ll /var/www/html/wp-content/
total 24
drwxrwxr-x 5 root www-data 4096 Oct 30 23:40 ./
drwxr-xr-x 5 root root     4096 Oct 30 23:24 ../
-rw-rw-r-- 1 root www-data   28 Jan  8  2012 index.php
drwxrwxr-x 3 root www-data 4096 Oct 31 00:07 plugins/
drwxrwxr-x 5 root www-data 4096 Sep 19 14:21 themes/
drwxrwxr-x 2 root www-data 4096 Oct 30 23:25 uploads/

 

本篇發表於 軟體使用。將永久鏈結加入書籤。