【发布时间】:2015-08-06 19:48:57
【问题描述】:
我已经在我的 Raspberry Pi(来自 Jessie 存储库)以及 Apache2 上安装了 PHP 5.6。当我访问http://192.168.2.50/(Pi 的 IP 地址)时,它不提供~/var/www/ 中的index.php 或index.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