Centos php项目发布问题

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 = .:/

参考:php错误提示 open_basedir restriction in effect 解决

上一篇:学习笔记-echarts自定义背景图片


下一篇:老王讲自制RPC框架.(一.前言与技术选型)