微信云托管搭建fastadmin总是打开页面空白,需要如何处理?
Dockerfile用的TP的,本地Docke正常运行,但是跑云托管就不行了,打开就空白页面。什么都不显示 尝试了50+包了,在内部执行php think发现竟然都执行报错 nginx: [emerg] still could not bind()
/xyhd # php think
PHP Warning: require(/xyhd/thinkphp/console.php): failed to open stream: No such file or directory in /xyhd/think on line 17
PHP Fatal error: require(): Failed opening required '/xyhd/thinkphp/console.php' (include_path='.:/usr/share/php7') in /xyhd/think on line 17
什么都启动不了,不过根目录静态文件倒是可以访问 nginx也就简单的,实在是不会了,求大神救救 server{
listen 80;
server_name localhost;
root /xyhd/public;
location / {
index index.html index.htm index.php;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
}
}
# pass the PHP scripts to FastCGI server
location ~ \.php(/.*)?$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
add_header Access-Control-Allow-Methods *;
add_header Access-Control-Max-Age 3600;
add_header Access-Control-Allow-Origin $http_origin;
add_header Access-Control-Allow-Headers $http_access_control_request_headers;
fastcgi_split_path_info ^((?U).+?\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REMOTE_X_IP $remote_addr;
set $Real $proxy_add_x_forwarded_for;
if ( $Real ~ (\d+)\.(\d+)\.(\d+)\.(\d+)\.(.*) ) {
set $Real $1.$2.$3.$4;
}
proxy_set_header X-Real-IP $Real;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}