wordpress安装插件提示wp-content权限错误问题-WordPress主题

摘要:使用Wordpress程序在网站后台安装主题或者插件的时候,总是会提示需要我们提供FTP信息的界面。“要执行请求的操作,…

使用WordPress程序在网站后台安装主题或者插件的时候,总是会提示需要我们提供FTP信息的界面。“要执行请求的操作,WordPress需要访问您网页服务器的权限”

授权方式:如果服务器环境是lnmp一键安装包那可以使用授权组来解决。
chown -R www /home/wwwroot/www.yousite.com(修改成网站域名目录)

函数方式:可以在wp-config.php文件中添加函数代码。

将上面的函数添加到wordpress根目录wp-config.php文件最后面就可以。

解决这个问题这两个方法都是通用的,大家可以根据自身的习惯进行操作。。

来源:http://www.wazhuti.com/2627.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_13044.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?