windows下写的网站上传到LINUX系统的空间显示不正常
回复讨论(解决方案)
怎么不正常 报错信息贴上来
Warning: include(conn/conn.php) [function.include]: failed to open stream: Permission denied in /home/leo/public_html/shop/top1.php on line 3
Warning: include(conn/conn.php) [function.include]: failed to open stream: Permission denied in /home/leo/public_html/shop/top1.php on line 3
Warning: include() [function.include]: Failed opening 'conn/conn.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/leo/public_html/shop/top1.php on line 3
这是错误信息
Warning: include(conn/conn.php) [function.include]: failed to open stream: Permission denied in /home/leo/public_html/shop/top1.php on line 3
Warning: include(conn/conn.php) [function.……
是权限的问题,配置文件没加载成功。
改成apache用户组
你把文件的权限改成0777试试
chmod 0777 /home/leo/public_html/shop/ -R
Warning: include(conn/conn.php) [function.include]: failed to open stream: Permission denied in /home/leo/public_html/shop/top1.php on line 3
无法读取文件,因为权限不够,你用flashFXP在需要修改权限的文件上点击右键选择chmod,把权限修改成755试一下
Warning: include(conn/conn.php) [function.include]: failed to open stream: Permission denied in /home/leo/public_html/shop/top1.php on line 3
同上
Warning: include() [function.include]: Failed opening 'conn/conn.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/leo/public_html/shop/top1.php on line 3
这个感觉不是权限问题,似乎是文件大小写不同造成找不到文件所致
己经解决了,谢谢各位
下一篇: 怎样 处理dedecms 自定义字段