open_basedir restriction in effect. File(C:\WINDOWS\TEMP\)
2013-07-23 00:12:57编辑:年糕不好吃
open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) 使用PHPNow和APMServ的朋友可能都有见到过:open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the 类似于这样的错误。下面给大家讲讲怎么解决这个问题
Warning: Unknown: open_basedir restriction in effect. File(C:/PHPnow/vhosts/www.214114.com/index.php) is not within the allowed path(s): (C:\PHPnow hosts\www.214114.com;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp;) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Fatal error: Unknown: Failed opening required ‘C:/PHPnow/vhosts/www.214114.com/index.php’ (include_path=’.;C:\php5\pear’) in Unknown on line 0
open_basedir restriction in effect. File(C:\WINDOWS\TEMP\)
open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) 使用PHPNow和APMServ的朋友可能都有见到过:open_basedir restriction in effect. File(C:\WINDOWS\TEMP\) is not within the 类似于这样的错误。下面给大家讲讲怎么解决这个问题
Warning: Unknown: open_basedir restriction in effect. File(C:/PHPnow/vhosts/www.214114.com/index.php) is not within the allowed path(s): (C:\PHPnow hosts\www.214114.com;C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp;) in Unknown on line 0
Warning: Unknown: failed to open stream: Operation not permitted in Unknown on line 0
Fatal error: Unknown: Failed opening required ‘C:/PHPnow/vhosts/www.214114.com/index.php’ (include_path=’.;C:\php5\pear’) in Unknown on line 0
打开PHPnow里配置的每一个虚拟主机都是这个错误! 零度科技提供技术支持
最后,在百度上和PHPnow的官方网站上几经搜索,终于找到答案了:建立虚拟主机的时候不限制虚拟主机权限即可! 内容来自www.00isp.com
下面详细说明一下在PHPnow里建立虚拟主机的正确步骤:
运行PnCp.cmd,选择0 -vhs 添加 虚拟主机
程序会列出现有的虚拟主机列表,在最下面输入要添加的虚拟主机的域名(也就是IIS下所谓的“主机头”)
输入主机别名(也就是将多个域名绑定到主机上,多个域名之间一定是要用空格 隔开)
指定网站目录(也就是网站程序文件所在的文件夹)
[ 如果分配此主机给其他用户, 并限制其权限, 请输入 "y";否则, 请输入 "n". 默认 Y ]
-> 限制虚拟主机权限? (Y/n):这里请一定要输入“n”,不限制权限,否则将会出现前面所说的“open_basedir restriction in effect”的错误! 内容来自www.00isp.com
本文统计
推荐文章
暂无数据
评论(0)
暂无评论,期待你的妙语连珠
预约成功!,
到时你将收到我们的短信提醒。
猜你喜欢
11
|点赞
3830
文章
最近热门
涉及资源
暂无数据