企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## denha框架的环境要求如下 >[info]PHP >= 7.2.0 ## PHP扩展需要 >[info]PDO PHP Extension >MBstring PHP Extension ***** ## Composer安装 进入项目根目录然后执行 ``` composer create-project denha/denha denha ``` ***** ## 配置nginx >[info] 需要开启伪静态 > 建议目录指向public ``` server { listen 80; server_name 127.0.0.1 ; root "/path/to/public"; location / { index index.php index.html; if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$1 last; } } location ~ \.php(.*)$ { set $path_info ""; set $real_script_name $fastcgi_script_name; if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") { set $real_script_name $1; set $path_info $2; } fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } } ``` ## 启动nginx 打开浏览器输入 http://127.0.0.1 如果不出问题将会出现以下页面 ![](https://img.kancloud.cn/54/a1/54a156000137218fb5ed4928d606b454_1914x964.png) >[success]自此框架完美运行