wampserver如何配置。

進入下載後的wampserver文件根目錄,

1.配置PHP,搜索php.ini文件php

找到:short_open_tag = Off,改成On


2. 搜索http.conf文件
找到:#Include conf/extra/httpd-vhosts.conf,去掉前邊的#號
3.搜索httpd-vhosts.conf文件,最後加入相似內容(文件路徑是本身安裝程序的路徑)


<VirtualHost *:80>
ServerName www.***.com                        站點名稱
DocumentRoot D:/WWW/ruihebao         設置路徑(項目文件所在路徑)
<Directory "D:/WWW/ruihebao/">          設置路徑
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>


4.打開C:\Windows\System32\drivers\etc
修改hosts 最後一行加入本身的域名
127.0.0.1 www.***.com


本文來源於:wampserver配置詳解
html

更多前端內容請查看:孫魯意博客-更多前端小技巧前端

相關文章
相關標籤/搜索