LNMP直接搭建discuz 遇到No input file specified 问题

回复 收藏
在lnmp下,直接搭建discuz时遇到了问题,过程如下:
1.安装mysql
2.安装php
3.安装nginx
4.下载discuz到/data/www目录下
5.解压缩discuz.zip
6.启动nginx测试得到nginx启动成功
7.修改配置文件使nginx能够解析php
配置文件/usr/local/nginx/conf/nginx.conf为
user nobody nobody;
worker_processes 2;
error_log /usr/local/nginx/logs/nginx_error.log crit;
pid /usr/local/nginx/logs/nginx.pid;
worker_rlimit_nofile 51200;

events
{
    use epoll;
    worker_connections 6000;
}

http
{
    include mime.types;
    default_type application/octet-stream;
    server_names_hash_bucket_size 3526;
    server_names_hash_max_size 4096;
    log_format combined_realip '$remote_addr $http_x_forwarded_for [$time_local]'
    '$host "$request_uri" $status'
    '"$http_referer" "$http_user_agent"';
    sendfile on;
    tcp_nopush on;
    keepalive_timeout 30;
    client_header_timeout 3m;
    client_body_timeout 3m;
    send_timeout 3m;
    connection_pool_size 256;
    client_header_buffer_size 1k;
    large_client_header_buffers 8 4k;
    request_pool_size 4k;
    output_buffers 4 32k;
    postpone_output 1460;
    client_max_body_size 10m;
    client_body_buffer_size 256k;
    client_body_temp_path /usr/local/nginx/client_body_temp;
    proxy_temp_path /usr/local/nginx/proxy_temp;
    fastcgi_temp_path /usr/local/nginx/fastcgi_temp;
    fastcgi_intercept_errors on;
    tcp_nodelay on;
    gzip on;
    gzip_min_length 1k;
    gzip_buffers 4 8k;
    gzip_comp_level 5;
    gzip_http_version 1.1;
    gzip_types text/plain application/x-javascript text/css text/htm application/xml;
    include vhosts/*.conf;

虚拟主机配置文件/usr/local/nginx/conf/vhosts/test.conf


server
{
    listen 80;
    server_name www.test.com;
    index index.html index.htm index.php;
    root /data/www;
    #deny all;

    location ~ \.php$ {
    include fastcgi_params;
    fastcgi_pass unix:/tmp/www.sock;
    #fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /data/www$fastcgi_script_name;
   }

}

其中/tmp/www.sock的访问权限已经修改为nobody。

IE访问www.test.com,出现404错误。
curl 访问出现如下问题
[root@serverCent ~]# curl -x127.0.0.1:80 www.test.com
No input file specified.

预期在IE输入www.test.com/install/
进入安装discuz界面。
这个在哪里出现了问题?
希望各位帮我指点一下。谢谢
2015-12-06 00:36 举报
已邀请:
0

初秋飞马

赞同来自:

问题解决了。
参考http://msiyuetian.blog.51cto.com/8637744/1691635
都是猿课的同学。

总结一下,注意浏览器的缓存,做实验的时候,把缓存清空。注意服务的重启。

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: