PHP 配置被自动修改错误 #5069
Replies: 5 comments 3 replies
-
本地 php 情况下,1panel 不会修改配置,提供一下完整的复现步骤以及截图,我们看看 |
Beta Was this translation helpful? Give feedback.
-
看下配置 信息 我重新新建了站点,观察了下 配置文件的变化. 还有我补充下,这个应该不是 BT 影响吧,在安装你们的面板之前我安装了宝塔.实际上宝塔没有安装php环境.不知道跟这个有没影响,但是我已经成功配置你们 1panel面板 成功运行了 php的. |
Beta Was this translation helpful? Give feedback.
-
看起来不像是我们的问题,你是停止网站之后又打开了是吗 |
Beta Was this translation helpful? Give feedback.
-
是的,新建站点后,然后,停止站点,再次启动,配置文件就发生改变了. 这是你们 网站 停止 状态 你们自动修改的配置. server {
listen 9996 ;
server_name php.test.com;
index index.php index.html index.htm default.php default.htm default.html;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Real-IP $remote_addr;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
access_log /www/sites/phpMyAdmin/log/access.log;
error_log /www/sites/phpMyAdmin/log/error.log;
location ^~ /.well-known/acme-challenge {
allow all;
root /usr/share/nginx/html;
}
root /usr/share/nginx/html/stop;
} |
Beta Was this translation helpful? Give feedback.
-
好的,我们先复现一下 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1Panel 版本
v1.10.6-lts
问题描述
我在测试你们PHP运行时,我使用本地的已经安装的PHP 8.3.6
//PHP 8.3.6 (cli) (built: Apr 15 2024 19:21:47) (NTS)
重现步骤
Beta Was this translation helpful? Give feedback.
All reactions