VPS侦探论坛

 找回密码
 注册
查看: 7750|回复: 4

访问挂载的目录出现No input file specified.求救

[复制链接]
发表于 2014-8-26 09:16:34 | 显示全部楼层 |阅读模式

mount -t cifs -o uid=500,gid=500,username=username,password=*** //192.168.xx.xx/www /webser/www/code/ -o nolock用上面这个命令挂载好window下的一个目录,有写入权限,无论是通过192.168.XX.XX/code/**这样访问还是新建一个虚拟机来访问都会出现No input file specified.
网上搜了好多,什么改php.ini的root_dir 、pathinfo什么的都么用,我把nginx工作进程改成root用户了还是一样
root      1758  0.0  1.1  18504 12332 ?        S    09:02   0:00 nginx: worker process



nginx测试结果如下:
[root@localhost etc]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful


配置如下:
server
        {
                listen 80 default;
                #listen [::]:80 default ipv6only=on;
                server_name www.lnmp.org;
                index index.html index.htm index.php;
                root  /webser/www;

                #error_page   404   /404.html;
                location ~ [^/]\.php(/|$)
                        {
                                # comment try_files $uri =404; to enable pathinfo
                                try_files $uri =404;
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fastcgi.conf;
                                #include pathinfo.conf;
                        }

                location /nginx_status {
                        stub_status on;
                        access_log   off;
                }

                location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
                        {
                                expires      30d;
                        }

                location ~ .*\.(js|css)?$
                        {
                                expires      12h;
                        }

                access_log  /home/wwwlogs/access.log  access;
        }
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-8-26 11:03:35 | 显示全部楼层


你确定挂载的目录能直接访问吗
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2014-8-26 11:14:20 | 显示全部楼层

可以访问的,下面新建一个.htm或者txt的文件可以,php后缀的就不行,centos6.5,6.2都是这样。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-9-27 00:37:08 | 显示全部楼层



同求这个问题,我也是出现这样的状况。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2014-9-27 12:46:54 | 显示全部楼层

换个5.4吧,我也遇过

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-5-18 21:37 , Processed in 0.027025 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表