搜索内容

ThinkPHP

  • Linux

    宝塔面板启动nginx出现报错 nginx启动,出现libluajit-5.1.so.2错误的解决方法

    通过宝塔面板启动Nginx 提示报错,通过 nginx configtest 提示报错如下 nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory 这种情况是动态链接库失效   解决办法 1、编辑 vim /etc/ld.so.conf 将 /usr/local/lib 加载最后一行,最后的……
    admin 2024-12-20
  • PHP

    关于Thinkphp程序报 Class ‘think\Image’ not found 问题解决方法

    解决方法如下: 一、 把 ./vendor/topthink/think-image/src下的文件 全部全部复制到 (包括image.php和image文件夹)  ./thinkphp/library/think 目录下 ,在登录后台 就可以正常上传了。(也可能是 /core/library/think 目录) 二、 在报错的文件中 直接引用image.php文件 require(ROOT_PATH.'/tp5/vendor/topthink/thi……
    admin 2024-01-29
  • Apache

    The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection.

    The client needs a new connection for this request as the requested host name does not match the Server Name Indication (SNI) in use for this connection. 原因是使用apache 由于启用HTTP2,浏览器默认在同证书、同IP的情况下会采取连接复用 ,如果配置两个站点的配置不通 或根证书不一致,会导致服务器拒绝浏览……
    admin 2023-12-29
  • ThinkPHP

    Thinkphp修复XSS跨站脚本攻击

      网站收到漏洞整改通知,参考教程https://blog.csdn.net/qq15577969/article/details/130633666 设置后还是不行 , 最后找了很多教程,在.htaccess文件中添加  Header set Content-Security-Policy "default-src 'self';"   完整的配置如图  <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / ……
    admin 2023-08-29