xampp 配置虛擬主機 第一步:在apache/conf/extra/httpd-vhosts.conf中添加虛擬主機配置 :如
<VirtualHost *:80>
ServerAdmin a@a.com
DocumentRoot "E:/phpProj/test"
ServerName test.com
ServerAlias www.test.com
ErrorLog "logs/test-error.log"
CustomLog "logs/test-access.log" combined
</VirtualHost>
可添加多個
<VirtualHost *:80>
ServerAdmin a@a.com
DocumentRoot "E:/phpProj/aa"
ServerName aa.com
ServerAlias www.aa.com
ErrorLog "logs/aa-error.log"
CustomLog "logs/aa-access.log" combined
</VirtualHost>
第二步:在apache/conf/httpd.conf中把
<Directory />
省略....
</Directory>php
改爲<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>
第三步修改hosts文件
127.0.0.1 test.com www.test.com
127.0.0.1 aa.com www.aa.com
在http.conf裏把visualhost開啓apache
安裝imagickide
brew install ImageMagickit
/bin/pecl install imagickio
將imagick.so配置到php.ini裏test
have found a version 18.0.0 freetype.6.dylib in /usr/local/Cellar/freetype/2.5.3_1/lib when installed freetype with brew. I copied that file to /Applications/XAMPP/xampfiles/lib/ and replaced it with the current. Remember to backup! after that my apache can load imagick.配置