nginx php-fpm reports an error "open_basedir restriction in effect". Please help.
PHPz
PHPz 2017-05-16 17:21:45
0
1
675

lnmp one-click installation package web environment
Message: is_dir(): open_basedir restriction in effect. File(/mnt/web_site_log/www.abc.com/) is not within the allowed path(s) : (/vagrant/vbee2:/tmp/:/proc/)

Among them/mnt/web_site_log/www.abc.com/ is the log directory. I have created this manually, and the user and group it belongs to have been given to the www user

I don’t know where the problem is. I added open_basedir=/vagrant/vbee2/:/tmp/:/proc/ to php.ini. This section doesn’t work either.

After working on it all night, I still couldn’t find a solution. Another problem is that the verification code icon is not displayed. What is the reason for this?

Thank you

PHPz
PHPz

学习是最好的投资!

reply all(1)
世界只因有你

open_basedir limits the directories that PHP can operate. You should also add /mnt/web_site_log/www.abc.com/ to open_basedir.
open_basedir=/vagrant/vbee2/:/tmp/:/proc/:/mnt/web_site_log/www.abc.com/

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template