Apache 配置
对 httpd.conf 文件的配置首先打开
/etc/apache2/httpd.conf 文件, 也就是 Apache2.4 的相关配置文件
首先我们将相应的 PHP 版本配置进去,
然后配置服务器的文档根目录, 如下所示:
如果需要的话, 添加上 index.php 索引文件, 如下所示:
来源: http://www.bubuko.com/infodetail-2516785.html