Home  >  Q&A  >  body text

nginx php-fpm reports an error "open_basedir restriction in effect". Please help.

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

PHPzPHPz2618 days ago506

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-05-16 17:23:45

    open_basedir限制了PHP能操作的目录,你应该把/mnt/web_site_log/www.abc.com/也加入到open_basedir中.
    open_basedir=/vagrant/vbee2/:/tmp/:/proc/:/mnt/web_site_log/www.abc.com/

    reply
    0
  • Cancelreply