首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >nginx+php5.3.3+phpmyadmin总是返回500?

nginx+php5.3.3+phpmyadmin总是返回500?

提问于 2016-05-22 18:49:51
回答 3关注 0查看 802

各位大侠,我的服务器总是走不通,单独访问其他php文件就行,访问index就是500,不知道为什么?能给我点指点吗?http://119.29.84.51:8080/test.php 这样可以访问http://119.29.84.51:8080/index.php 这样不行我这里配置是指向phpMyAdmin配置如下,应该没什么问题server { listen 8080; server_name localhost; # server_name 119.29.84.51; #charset koi8-r; root /mydata/web/phpMyAdmin; access_log /mydata/web/host.access.log main; # Load configuration files for the default server block. # include /etc/nginx/default.d/.conf; location / { root /mydata/web/phpMyAdmin;#This dir to //usr/share/nginx/html index index.php index.html index.htm;# if (-f $request_filename) {# expires max;# break;# } } error_page 404 /404.html; location = /404.html { root /usr/share/nginx/html; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /usr/share/nginx/html; } # proxy the PHP scripts to Apache listening on 127.0.0.1:80 location ~ .php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+.php)(.)$; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } # #location ~ .php$ { # proxy_pass http://127.0.0.1; #} # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # # location ~ .php$ { # root html; # fastcgi_pass 127.0.0.1:9000; # fastcgi_index index.php; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # include fastcgi_params; #} 不知道是否php有些函数功能没开放什么的原因没有?

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档