open_basedir() restrictijon in effect. FIle()

Time:2020-9-12
  • Warning: require(): open_ Basedir() restrictijon in effect. File() error

  • open_ Basedir is PHP restricted access to the folder configuration parameters, the pagoda automatically configured user.ini , but the directory is limited to public, so we need to change it to the project root directory

    Open the project root directory / public / user.ini file

    open_basedir=/www/wwwroot/zmxyphp/public/:/tmp/:/proc/

    Delete public

    open_basedir=/www/wwwroot/zmxyphp/:/tmp/:/proc/
  • Restart PHP, OK!