我已经使用Nginx在Linux上安装了WordPress, 但是当我尝试安装主题时, 它每次都会要求我进行FTP连接确认。
#1
我先找到问题的解决方案, 我们需要更改访问目录的所有权权限
chown -R www-data:www-data your-wordpress-directory
现在, 我们删除安全权限以确认连接, 以使其从wp-config.php直接安装。
define('FS_METHOD', 'direct');
现在我们需要确保是否设置了文件夹的权限
sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;
来源:
https://www.srcmini02.com/64898.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_41176.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57