ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
[TOC] ## 概述 在 lnmp 的 lnmp.conf 中 ``` Download_Mirror='https://soft.vpser.net' Nginx_Modules_Options='' PHP_Modules_Options='' ##MySQL/MariaDB database directory## MySQL_Data_Dir='/usr/local/mysql/var' MariaDB_Data_Dir='/usr/local/mariadb/var' ##Default website home directory## Default_Website_Dir='/home/wwwroot/default' Enable_Nginx_Openssl='y' Enable_PHP_Fileinfo='n' Enable_Nginx_Lua='n' Enable_Swap='y' ``` 注意: 1. 一般都是需要设置为 Enable_PHP_Fileinfo='y' 2. 也可在src/php*.tar.gz 重新进行编译 3. thinkphp 的vhost 配置需要 root 为 项目的 public 目录 ## 问题 ### open_basedir restriction in effect /usr/local/nginx/conf/fastcgi.conf ``` fastcgi_param PHP_ADMIN_VALUE "open_basedir=$document_root/:/tmp/:/proc/:/home/wwwroot/sosplus.top"; ``` 在最后添加自己的项目路径