標籤:file 建立 xampp admin 環境 host symlink bsp conf
1, 安裝PHP+apach+mysql(xampp)
2, 在目錄下建一個新檔案夾 : 我是在Users/個人目錄/workspace3, 開啟/Applications/XAMPP/xamppfiles/etc/httpd.conf,
添加如下內容:
# XAMPP
Include etc/extra/httpd-xampp.conf
Include "/Applications/XAMPP/xamppfiles/apache2/conf/httpd.conf"
Include "/Users/wuzeguo/workspace/www_conf/*"
4, 在workspace下建立檔案夾www_conf5, 修改host檔案(/etc/hosts)6, 在www_conf下添加conf檔案(以項目名字命名)如項目名為hani,則名為hani.conf <VirtualHost *:80>
ServerAdmin [email protected]
#項目地址
DocumentRoot /Users/wuzeguo/workspace/hani
directoryIndex index.html index.php index.htm index.shtml login.php
ServerName www.hani.com
ErrorLog "logs/mhd_error.log"
CustomLog "logs/mhd_error_common.log" common
<Directory /Users/wuzeguo/workspace/hani>
Options FollowSymLinks Indexes
AllowOverride all
#Order allow,deny
#Allow from all
Require all granted
</Directory>
</VirtualHost>
在mac下怎麼配置web環境(php)