Lamp environment, project run error log path:/VAR/LOG/HTTPD
Error logs such as:
[Sat Jul One -:Wuyi: - -] [ERROR] [Client192.168.17.3] PHP warning:include_once (): Open_basedir restrictioninchEffect. File (/var/www/website/config/config.php) is not within the allowed path (s): (.:/ tmp/)inch/var/www/website/mode/upload/uploadajax.php on line3, Referer:http://192.168.100.145/?m=index[Sat Jul One -:Wuyi: - -] [ERROR] [Client192.168.17.3] PHP warning:include_once (/var/www/website/config/config.php): Failed to open stream:operation not permittedinch/var/www/website/mode/upload/uploadajax.php on line3, Referer:http://192.168.100.145/?m=index[Sat Jul One -:Wuyi: - -] [ERROR] [Client192.168.17.3] PHP warning:include_once (): Failed opening'.. /.. /config/config.php' forInclusion (include_path='.:/ usr/share/pear:/usr/share/php')inch/var/www/website/mode/upload/uploadajax.php on line3, Referer:http://192.168.100.145/?m=index[Sat Jul One -:Wuyi: - -] [ERROR] [Client192.168.17.3] PHP notice:undefined Variable:rockinch/var/www/website/mode/upload/uploadajax.php on line4, Referer:http://192.168.100.145/?m=index[Sat Jul One -:Wuyi: - -] [ERROR] [Client192.168.17.3] PHP Fatal Error:call to a memberfunctionNow () on a non-Object inch/var/www/website/mode/upload/uploadajax.php on line4, Referer:http://192.168.100.145/?m=index
This error occurs and you need to modify the php.ini
if file operations to the defined directory; and below. if in a per-directory, or perfile*not* affected by whether Safe Mode was turned on or Off.; http://www.php.net/manual/en/ini.sect.safe-mode.php#ini.open-basediropen_basedir =.:/
Reference: PHP error hint open_basedir restriction in effect resolution
Centos PHP Project Publishing issues