-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
Description
1Panel 版本
v1.10.6-lts
问题描述
我在测试你们PHP运行时,我使用本地的已经安装的PHP 8.3.6
//PHP 8.3.6 (cli) (built: Apr 15 2024 19:21:47) (NTS)- 站点 执行,停止,再启动.配置都被你们修改得没了.站点就没法工作了.
重现步骤
- 站点 执行,停止,再启动.
#测试启动正常配置
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 /www/sites/phpMyAdmin/index;
location ~ [^/]\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
include fastcgi-php.conf;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /opt/1panel/apps/openresty/openresty/www/sites/phpMyAdmin/index/index.php;
}
}
# 停止 启动后配置
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 /www/sites/phpMyAdmin/index;
include /www/sites/phpMyAdmin/proxy/*.conf;
location ~ [^/]\.php(/|$) {
fastcgi_pass 127.0.0.1:9000;
include fastcgi-php.conf;
include fastcgi_params;
set $real_script_name $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {
set $real_script_name $1;
set $path_info $2;
}
fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;
fastcgi_param SCRIPT_NAME $real_script_name;
fastcgi_param PATH_INFO $path_info;
}
}
# 这些地方被修改了.
include /www/sites/phpMyAdmin/proxy/*.conf;
location