来源:toutiao.com/i6860736292339057156/先来说说为啥要写这篇文章,之前看了下 Nginx 的访问日志,发现每天有好多国外的 IP 地址来访问我的网站,并且访问的内容基本上都是恶意的。因此我决定禁止国外 IP 来访问我的网站。想要实现…
文章目录 一、开启php服务报错日志二、php报错is_dir():open_basedir restriction in effect. File(.log) is not within the allowed path(s)三、php_network_getaddresses getaddrinfo failed redis 报错解决 架构是简单的单机 nginx php , 没有并发量࿰…
1. 使用oneinstack安装lnmp环境,按照"Recommend PHP 7.4 or greater and MySQL version 5.7 or MariaDB version 10.4 or greater."的wordpress官方建议配置生成安装脚本。配置后在/root/oneinstack/options.conf中可找到安装的相关目录位置和密码等。 2.…