wordpress 更新以及下載外掛:wordpress 安裝失敗:無法建立目錄
阿新 • • 發佈:2018-11-19
給站點目錄開放對應使用者許可權:
舊的許可權如下:
[[email protected]_16_5_centos ~]# cd /var/www/html/ [[email protected]_16_5_centos html]# ls -l wpblog 總用量 192 -rw-r--r-- 1 root root 418 9月 25 2013 index.php -rw-r--r-- 1 root root 19935 1月 6 2018 license.txt -rw-r--r-- 1 root root 7001 2月 8 2018 readme.html -rw-r--r-- 1 root root 5434 9月 23 2017 wp-activate.php drwxr-xr-x 9 root root 4096 11月 15 09:35 wp-admin -rw-r--r-- 1 root root 364 12月 19 2015 wp-blog-header.php -rw-r--r-- 1 root root 1627 8月 29 2016 wp-comments-post.php -rw-r--r-- 1 root root 3703 11月 15 09:17 wp-config.php -rw-r--r-- 1 root root 2930 2月 8 2018 wp-config-sample.php drwxr-xr-x 5 root root 4096 11月 15 09:35 wp-content -rw-r--r-- 1 root root 3669 8月 20 2017 wp-cron.php drwxr-xr-x 18 root root 12288 11月 15 09:39 wp-includes -rw-r--r-- 1 root root 2422 11月 21 2016 wp-links-opml.php -rw-r--r-- 1 root root 3306 8月 22 2017 wp-load.php -rw-r--r-- 1 root root 36583 10月 13 2017 wp-login.php -rw-r--r-- 1 root root 8048 1月 11 2017 wp-mail.php -rw-r--r-- 1 root root 16246 10月 4 2017 wp-settings.php -rw-r--r-- 1 root root 30071 10月 18 2017 wp-signup.php -rw-r--r-- 1 root root 4620 10月 23 2017 wp-trackback.php -rw-r--r-- 1 root root 3065 8月 31 2016 xmlrpc.php
開放給指定使用者許可權:
[[email protected]_16_5_centos html]# chown -R zhensong:zhensong wpblog
開放後:
[[email protected]_16_5_centos html]# ls -l wpblog 總用量 192 -rw-r--r-- 1 zhensong zhensong 418 9月 25 2013 index.php -rw-r--r-- 1 zhensong zhensong 19935 1月 6 2018 license.txt -rw-r--r-- 1 zhensong zhensong 7001 2月 8 2018 readme.html -rw-r--r-- 1 zhensong zhensong 5434 9月 23 2017 wp-activate.php drwxr-xr-x 9 zhensong zhensong 4096 11月 15 09:35 wp-admin -rw-r--r-- 1 zhensong zhensong 364 12月 19 2015 wp-blog-header.php -rw-r--r-- 1 zhensong zhensong 1627 8月 29 2016 wp-comments-post.php -rw-r--r-- 1 zhensong zhensong 3703 11月 15 09:17 wp-config.php -rw-r--r-- 1 zhensong zhensong 2930 2月 8 2018 wp-config-sample.php drwxr-xr-x 5 zhensong zhensong 4096 11月 15 09:35 wp-content -rw-r--r-- 1 zhensong zhensong 3669 8月 20 2017 wp-cron.php drwxr-xr-x 18 zhensong zhensong 12288 11月 15 09:39 wp-includes -rw-r--r-- 1 zhensong zhensong 2422 11月 21 2016 wp-links-opml.php -rw-r--r-- 1 zhensong zhensong 3306 8月 22 2017 wp-load.php -rw-r--r-- 1 zhensong zhensong 36583 10月 13 2017 wp-login.php -rw-r--r-- 1 zhensong zhensong 8048 1月 11 2017 wp-mail.php -rw-r--r-- 1 zhensong zhensong 16246 10月 4 2017 wp-settings.php -rw-r--r-- 1 zhensong zhensong 30071 10月 18 2017 wp-signup.php -rw-r--r-- 1 zhensong zhensong 4620 10月 23 2017 wp-trackback.php -rw-r--r-- 1 zhensong zhensong 3065 8月 31 2016 xmlrpc.php
可以更新wordpress或者下載外掛了。