wampserver2.5 在 Win7 64位下的相关配置备忘
发现运行和配置这个版本和之前的Wampserver有些差异,特此记录
1).wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b,另外有可能需要安装 Visual C++ 2012 Reditributable_64.11.exe,请根据提示操作
2).apache端口修改配置文件位置
D:\wamp64\bin\apache\apache2.4.23\conf\httpd.conf
D:\wamp\bin\apache\apache2.4.9\conf\original\httpd.conf
增加监听端口:
Listen 0.0.0.0:81
Listen [::0]:81
Listen 0.0.0.0:82
修改另外一处 ServerName localhost:81 //当80端口被其它服务占用时
3).
(1).开启 vhosts 模块
# Virtual hosts
#Include conf/extra/httpd-vhosts.conf
(2).修改下面的节点
<Directory /> # AllowOverride none # Require all denied AllowOverride All Require all granted </Directory>
以上设置经过实践发现是可选的,当访问虚拟主机时遇到无法访问的问题,关键是配置httpd-vhosts.conf 文件
(3). D:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf
#到httpd.conf里面加对应88
<VirtualHost *:88> DocumentRoot "E:/Program/[Demo]/bootstrap" ServerName bootstrap <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> </VirtualHost>
例子2:增加虚拟域名, 当然windows系统系统修改host文件(C:\Windows\System32\drivers\etc\hosts) => 127.0.0.1 www.datetimepickerV3.com
<VirtualHost *:82> DocumentRoot "D:/Workspace/[Demo]/bootstrap-datetimepicker-master/sample-in-bootstrap-v3" ServerName datetimepickerV3 ServerAlias www.datetimepickerV3.com <Directory /> Options FollowSymLinks AllowOverride None Require all granted </Directory> </VirtualHost>
其它:
AllowOverride none 指令的含义
WAMPSERVER 3.0.6 参考
MySQL 5.7
update user set authentication_string = password('123456'), password_expired = 'N', password_last_changed = now() where user = 'root'; flush privileges;