phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
来源:互联网 发布:网易跟帖知乎 编辑:程序博客网 时间:2024/06/10 00:43
phpnow: 出现类似 open_basedir restriction in effect;file(。。)is not within the allowed path。。
下边还会有至少2行的Warning和Fatal error;
解决的方法有两个:
①:运行PnCp.cmd,选择0 -vhs 添加 虚拟主机
程序会列出现有的虚拟主机列表,在最下面输入要添加的虚拟主机的域名(也就是IIS下所谓的“主机头”)
输入主机别名(也就是将多个域名绑定到主机上,多个域名之间一定是要用空格隔开)
指定网站目录(也就是网站程序文件所在的文件夹)
[ 如果分配此主机给其他用户, 并限制其权限, 请输入 "y";否则, 请输入 "n". 默认 Y ]
-> 限制虚拟主机权限? (Y/n):这里请一定要输入“n”,不限制权限,否则将会出现前面所说的“open_basedir restriction in effect”的错误!
②可以在apache的conf\extra下的httpd-vhosts.conf文件对要添加的虚拟主机进行修改,如下:
<VirtualHost *>
</VirtualHost>
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- open_basedir restriction in effect. File() is not within the allowed path(s)
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- linux 下搭建Nginx+php报错open_basedir restriction in effect. File(/var/www/html/index.php) is not within
- Warning: file_exists(): open_basedir restriction in effect. File 错误的解决办法
- open_basedir restriction in effect错误的解决办法
- php 运行时 is not writable、open_basedir restriction in effect
- require(): open_basedir restriction in effect. File
- open_basedir restriction in effect的错误及其解决办法
- PHPExcel 出现open_basedir restriction in effect的解决办法
- open_basedir restriction in effect的错误及其解决办法
- 解决cakePHP中的. session_start()[function.session-start];open_basedir restnction in effect.File(c:/windows/temp/)is not within the a
- is not within the allowed path
- open_basedir restriction in effect
- Warning: require(): open_basedir restriction in effect. File(/home/framework/laravel/
- PHPExcel中open_basedir restriction in effect的解决方法
- linux 下出现:open_basedir restriction in effect
- Warning: require(): open_basedir restriction in effect.
- 用来序列化通用的数据类型
- 详解讨论如何完成C#转换为VB.NET
- MonkeyRunner easy package的使用
- 我的csdn第一个博客
- MonetDB用户指南4——(资源)磁盘空间
- phpnow:open_basedir restriction in effect;file is not within the allowed path的解决办法
- iOS 多线程初步研究-NSThread
- Gridview显示多张网络图片
- 《修改代码的艺术》 - 书摘精要
- Windows Socket 最大连接数
- source insight常用快捷键
- 实战DeviceIoControl 之五:列举已安装的存储设备
- [已完成,附上实现方式]DWZ横向导航实现动态左菜单树
- linux网络配置