环境的搭建与安装

MAMP的安装与Yaf的环境配置(附VirtualHost的创建

2015-11-11  本文已影响790人  RuiL

MAMP的环境配置

(如果出现Please specify the install prefix of iconv with --with-iconv=<DIR>错误)需要先下载Brew(去http://brew.sh/index_zh-cn.html安装)
然后使用`./configure --with-iconv=/usr/local/Cellar/libiconv/1.14/`编译

Yaf的安装

memcache的安装

配置VirtualHost

# Virtual hosts
Include /Applications/MAMP/conf/apache/extra/httpd-vhosts.conf(去掉本句前的#)
<VirtualHost *:80>
    ServerAdmin example@host.com    //主机地址
    DocumentRoot /Users/UserName/Documents/Project/admin  //工程目录
    ServerName  local.example.com   //虚拟的域名
    ErrorLog "logs/a.ifenxi.com-error.log"    //运行时的错误日志存放地址
    CustomLog "logs/a.ifenxi.com_cus.log" combined 
    <Directory "/Users/UserName/Documents/Project/admin">
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>
</VirtualHost>

配置完成之后保存

127.0.0.1           local.example.com(刚才配置的域名)

wq保存退出

上一篇 下一篇

猜你喜欢

热点阅读