Index.php 不适用于 VPS,但其他文件可以
我的 VPS 遇到了非常有趣的问题。
我已经使用此说明集安装了 www 服务器: http://wiki.debian.org/LaMp一切看起来都很好,但 index.php 文件不起作用。
它是整个服务的主文件,包含一些初始化和包含内容。当我添加一些回声时,它会正确显示。看来包含功能不起作用。
phpmyadmin 工作正常,其他 php 文件工作但没有 index.php。我很确定这不是文件问题,因为它在旧主机上运行得很好。
有什么想法吗?我已经在网上搜索过,重新安装了两次,但仍然没有任何解决方案,我开始感到无助。如果您需要一些额外的信息 - 请询问。
I've got really interesting problem with my VPS.
I've already installed www server using this instructions set: http://wiki.debian.org/LaMp and everything looks fine, but index.php file doesn't work.
It's main file of whole service and it's contains some initializations and includes. When I add there some echo, it display correctly. It seems that include function doesn't work.
Phpmyadmin works fine, other php files works but no index.php. I'm pretty sure it's not problem with file because it works great on old hosting.
Any ideas? I've searched the net, reinstalled everything twice but still i don't have any solution and i'm starting to feel helpless. If you need some additional information - ask.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的主要猜测是,它会抛出一个未显示的错误。
尝试将其添加到 PHP 文件的顶部:
这应该会显示所有错误。
或者,您可以检查错误日志
My main guess is, that it throws an error which is not displayed.
Try adding this to the top of your PHP file:
that should show you all the errors.
alternatively, you can check your error-log