Centos PHP Project Publishing issues

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.