Mac OS X下开启apache php
1 启动apache 默认是启动的
sudo apachectl start
2 查看版本
sudo apachectl -v
3 启用php
打开文件 sudo vi /etc/apache2/httpd.conf
找到 #LoadModule php5_module libexec/apache2/libphp5.so 去掉 #
4 修改DocumentRoot
1) 找到 DocumentRoot "/Library/WebServer/Documents"
修改 DocumentRoot "[自动的路径]"
2) 找到 <Directory "/Library/WebServer/Documents">
修改为<Directory "[上面的路径]">
重启apache sudo apachectl restart
相关推荐
zyyjay 2020-11-09
xuebingnan 2020-11-05
samtrue 2020-11-22
stefan0 2020-11-22
yifangs 2020-10-13
songshijiazuaa 2020-09-24
hebiwtc 2020-09-18
天步 2020-09-17
83911535 2020-11-13
whatsyourname 2020-11-13
zhouyuqi 2020-11-10
Noneyes 2020-11-10
mathchao 2020-10-28
王志龙 2020-10-28
wwwsurfphpseocom 2020-10-28
diskingchuan 2020-10-23
savorTheFlavor 2020-10-23