#忽略ftp權(quán)限
每當我們想在wordpress上升級外掛程式或者是升級wordpress的時候,就會彈出一個ftp登錄,但是我們怎麼跳過ftp登入呢
解決方法
打開我們的word press設(shè)定檔wp-config.php
[18:35:08?root@zhang?~]#vim?/apps/nginx/html/wordpress/wp-config.php
然後在這個檔案的最後一行下面添加上這兩個777權(quán)限
define("FS_CHMOD_DIR",?0777); define("FS_CHMOD_FILE",?0777);
在給word press這個目錄添加用戶權(quán)限,假如我們用的是nginx用戶執(zhí)行word press這個服務(wù)。
[18:37:31?root@zhang?~]#chmod?-R?777?/apps/nginx/html/wordpress/ [18:37:50?root@zhang?~]#chown?-R?nginx:nginx?/apps/nginx/html/wordpress/
以上就是wordpress升級需設(shè)定ftp的解決方法。