N
N
Nurlan2015-10-02 14:38:40
PHP
Nurlan, 2015-10-02 14:38:40

Why can there be a "file_exists(): open_basedir restriction in effect" error?

Debian+Nginx+PHP-fpm.
In the nginx config I entered:

fastcgi_param PHP_ADMIN_VALUE "open_basedir = /tmp:/var/www/site:/var/www/content";

Went to the site and...
Warning: file_exists(): open_basedir restriction in effect. 
File(/var/www/content/bla-bla/bla.php) is not within the allowed path(s): (/tmp:/var/www/site:/var/www/content)

The config seems to be correct, everything works, but the error is annoying. Is the syntax wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivanq, 2015-10-02
@Ivanq

"open_basedir = /var/www/content";? I don't know about NGINX myself

D
Daemon23RUS, 2015-10-02
@Daemon23RUS

Allowed folders:
And your script is
add this path

V
Vlad Zhivotnev, 2015-10-04
@inkvizitor68sl

In the pool settings, check if basedir is there.
If there is a pool in the settings, then it is used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question