当前位置:Gxlcms > PHP教程 > windows下写的网站上传到LINUX系统的空间显示不正常

windows下写的网站上传到LINUX系统的空间显示不正常

时间:2021-07-01 10:21:17 帮助过:2人阅读

这是为什么,是编码问题还是什么,我用的是hostgator在本地一切正常上传上去,就是运行的网页都不正常,还是权限问题,我都设的是644,有人用过吗,


回复讨论(解决方案)

怎么不正常 报错信息贴上来

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
这个感觉不是权限问题,似乎是文件大小写不同造成找不到文件所致

己经解决了,谢谢各位

人气教程排行