我已经解决了数十个可能的解决方案,但找不到任何可行的方法。基本上,PHP文件不在我的NginX + PHP_fpm + Ubuntu 14服务器上执行。我有所有软件包,它们正在运行。我已经清除了浏览器缓存等,但是还没有任何工作。我感谢所有的帮助!
截至目前,如果我尝试访问PHP文件,则GET会将其作为HTML文件返回,但不会执行该脚本。
这是我的nginx.conf文件:
worker_processes 1;
worker_rlimit_nofile 8192;
events {
worker_connections 3000;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
http {
include /etc/nginx/mime.types;
#default_type application/octet-stream;
default_type text/html;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Run Code Online (Sandbox Code Playgroud)
这是我的/ sites-available / default文件:
##
# You should look at the following URL's in order to grasp a solid understanding …Run Code Online (Sandbox Code Playgroud)