LAMP环境,项目运行错误日志路径:/var/log/httpd
错误日志例如:
[Sat Jul :: ] [error] [client , referer: http://192.168.100.145/?m=index [Sat Jul :: ] [error] [client , referer: http://192.168.100.145/?m=index [Sat Jul :: ] [error] [client , referer: http://192.168.100.145/?m=index [Sat Jul :: ] [error] [client , referer: http://192.168.100.145/?m=index [Sat Jul :: ] [error] [client , referer: http://192.168.100.145/?m=index
出现该错误,需要修改php.ini
; open_basedir, if set, limits all file operations to the defined directory ; and below. This directive makes most sense if used in a per-directory ; or per-virtualhost web server configuration file. This directive is ; *NOT* affected by whether Safe Mode is turned On or Off. ; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basedir open_basedir = .:/