标签:
1. WAMP 介绍
2. 下载 Wamp 及 Visual C++ Redistributable (vcredist_x64/86.exe),wamp依赖于Visual C++ Redistributable环境。
3. 配置Apache
4. 添加alias,方法一
PS:工程目录放于其它位置(不在wamp目录中),wampserver提示You don‘t have permission to access /wordpress/ on this server.
1 Alias /wordpress/ "D:/workspace/wordpress/"
2
3 <Directory "D:/workspace/wordpress/">
4 Options Indexes FollowSymLinks MultiViews
5 AllowOverride all
6 Order allow,deny
7 Allow from all
8 </Directory>
与phpsysinfo.conf文件对比
1 Alias /phpsysinfo "D:/wamp/apps/phpsysinfo3.1.12/"
2
3 # to give access to phpmyadmin from outside
4 # replace the lines
5 #
6 # Require local
7 #
8 # by
9 #
10 # Require all granted
11 #
12
13 <Directory "D:/wamp/apps/phpsysinfo3.1.12/">
14 Options Indexes FollowSymLinks
15 AllowOverride all
16 <IfDefine APACHE24>
17 Require local
18 </IfDefine>
19 <IfDefine !APACHE24>
20 Order Deny,Allow
21 Deny from all
22 Allow from localhost ::1 127.0.0.1
23 </IfDefine>
24 </Directory>
发现wordpress.conf Directory标签中少了 Require local 语句。
添加并重启Apache,即可。
标签:
原文地址:http://www.cnblogs.com/naray/p/4416125.html