Apache配置

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

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

 

连接php

mac 配置apache

 

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

  mac 配置apache

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

  mac 配置apache

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

  mac 配置apache

sudo apachectl -k start     启动

sudo apachectl -k stop     停止

sudo apachectl -k restart   重启

相关文章:

  • 2021-12-16
  • 2021-06-23
  • 2022-03-05
  • 2021-10-08
  • 2021-08-03
猜你喜欢
  • 2021-08-09
  • 2021-07-21
  • 2021-10-17
  • 2022-12-23
  • 2021-12-04
  • 2021-05-15
  • 2022-12-23
相关资源
相似解决方案