【问题标题】:Apache won't serve pages on my Raspberry PiApache 不会在我的 Raspberry Pi 上提供页面
【发布时间】:2015-08-06 19:48:57
【问题描述】:

我已经在我的 Raspberry Pi(来自 Jessie 存储库)以及 Apache2 上安装了 PHP 5.6。当我访问http://192.168.2.50/(Pi 的 IP 地址)时,它不提供~/var/www/ 中的index.phpindex.html 文件。

就在一个小时前,我正在从 Wheezy 存储库运行 PHP 5.4,它运行良好。我检查了 apache 是否正在运行(使用 top),我看到有 apache2 进程。为了更加确定我已经使用service apache2 stop 然后service apache2 start 来保证网络服务器正在运行。

http://192.168.2.50 上的当前输出为:

Not Found

The requested URL / was not found on this server.

Apache/2.4.10 (Raspbian) Server at 192.168.2.50 Port 80

有什么建议可以让 Pi 再次正确地提供 PHP/webfiles 服务吗?

【问题讨论】:

    标签: php apache configuration installation raspberry-pi


    【解决方案1】:

    这是一个简单的“修复”。新 PHP 的根文件夹是 ~/var/www/html/。一切正常。祝未来寻求解决方案的人好运;)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-04-03
      • 1970-01-01
      • 2022-10-04
      相关资源
      最近更新 更多