open_basedir restriction in effect错误的解决办法

简介: 用apmserv5.2.6建虚拟主机的时候,发现如果包含目录上级的文件,会有错误。   应该把“PHP读写限制在以下目录(留空不限制)”的路径改成下,就可以了。 -----------------------------------------------------...

用apmserv5.2.6建虚拟主机的时候,发现如果包含目录上级的文件,会有错误。

<?php
require_once "../config.php";
?>

 

应该把“PHP读写限制在以下目录(留空不限制)”的路径改成下,就可以了。

----------------------------------------------------------------------------------------------------------------------

参考来源:http://787400.com/news/server/20101219/749.html

目录
相关文章
|
2月前
|
iOS开发 Perl
解决Xcode报错Stored properties cannot be marked unavailable with ‘@available‘
解决Xcode报错Stored properties cannot be marked unavailable with ‘@available‘
39 0
|
4月前
|
PHP
tp5 宝塔open_basedir restriction in effect 错误; IIS open_basedir restriction in effect
一个旧的微信项目在换部署环境后出错,客户使用的是iis8。尽管查阅了官方手册和大量建议修改php.ini的百度解决方案,问题仍未解决。最终,通过关闭防跨站攻击设置,并重启php和iis,成功解决了网站无法访问的问题。
27 2
|
5月前
|
Java 定位技术 Android开发
安装apk显示 requires unavailable shared library com.xxx
安装apk显示 requires unavailable shared library com.xxx
63 0
|
11月前
|
缓存 JavaScript
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
Error: EPERM: operation not permitted, mkdir ‘C:\Program Files\nodejs‘TypeError: Cannot read proper
115 0
|
JavaScript
Error: EMFILE: too many open files, watch 报错的解决方法
Error: EMFILE: too many open files, watch 报错的解决方法
662 1
编译mate-control-center:error: required directory ./help does not exist
编译mate-control-center:error: required directory ./help does not exist
96 0
|
Ubuntu
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
解决办法:GLib-ERROR **: Creating pipes for GWakeup: Too many open files
164 0
|
Java Android开发
is not allowed for source level below 1.7 的解决办法
is not allowed for source level below 1.7 的解决办法
174 0
|
数据安全/隐私保护 Ruby
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
cocopods 命令行执行命令时报错You don't have write permissions for the /Library/*
2004 0
|
iOS开发
Xcode报错:Failed to find a suitable device for the type SimDeviceType解决方法
Xcode报错:Failed to find a suitable device for the type SimDeviceType解决方法
205 0