- 积分
- 4
- 威望
-
- 金钱
-
- 注册时间
- 2014-8-26
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
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;
} |
|