You are not logged in.

#1 2013-03-30 15:08:48

hongy19
Member
From: China
Registered: 2005-04-08
Posts: 85
Website

File not found error for php

Today i installed php and nginx at my laptop. I found there is always a error "File not found." when I visit 127.0.0.1/index.php if I put index.php in /tmp or subfolder of /tmp.
But if i put index.php in other folder, there is no such problem

Is there anyone who know why?

[hongy19@Archlinux http]$ cat /etc/nginx/nginx.conf |grep -C 3 -i tmp
        location ~ \.php$ {
            #root  /usr/share/pear;
            #root  /srv/http;
            root  /tmp/http;
            fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;
            try_files $uri =404;
            fastcgi_index  index.php;

[hongy19@Archlinux http]$ cat /etc/php/php.ini |grep -i open_base
; open_basedir, if set, limits all file operations to the defined directory
open_basedir = /srv/http/:/home/:/usr/share/pear/:/tmp/:/tmp/http/

[hongy19@Archlinux http]$ ls
index.php

[hongy19@Archlinux http]$ pwd
/tmp/http

Offline

Board footer

Powered by FluxBB