mac 配置apache

Apache配置

对httpd.conf文件的配置。首先打开

/etc/apache2/httpd.conf文件,也就是Apache2.4的相关配置文件。

 

连接php

 

首先我们将相应的PHP版本配置进去,

  

然后配置服务器的文档根目录,如下所示:

  

如果需要的话,添加上index.php索引文件,如下所示:

  

sudo apachectl -k start     启动

sudo apachectl -k stop     停止

sudo apachectl -k restart   重启

posted @ 2018-03-05 21:40  让双脚&去腾空  阅读(1149)  评论(0编辑  收藏  举报