WAMPServerVersion 3.0.6
来源:互联网 发布:ee源码网 编辑:程序博客网 时间:2024/06/05 02:32
完整版有图片有道链接:http://note.youdao.com/noteshare?id=ace83629efb66c1126f608557206be91&sub=D60701947E8B44FEBD84B679F1409EBC
1. WAMP: W(windows) A(Apache) M(Mysql) P(PHP)
2.64位下载:链接:http://pan.baidu.com/s/1kUMwdCF 密码: wfx3
官网:http://www.wampserver.com
安装之前关闭本地过去安装的Apache、Mysql、PHP服务
3. 安装wampserver的过程很简单,只要一直点击next就可以完成安装了:依次按图操作了
双击,接受,选路径,桌面快捷键和快速启动,弹出窗口选浏览器,邮件不需要,是否立即打开
注意:安装路径必须是英文的,调用路径尽量用英文的,以防出错,如果安装后不变绿应该关掉IiShttp://jingyan.baidu.com/article/e5c39bf5829e8e39d660336c.html,关闭防火墙http://jingyan.baidu.com/article/cd4c2979d55c41756e6e60a1.html,可能还需将php5ts.dll放入C:\Windows\System32,然后在参考:WampServer图标不变绿,无法打开本地网站的解决方法http://www.3haow.com/wampserver-icon-doesnt-turn-green/
如果还有问题看是不是缺少插件 Visual C++ 2008
不能用localhost打开本地服务器文件则需要修改这个路径:将安装目录下www文件全部复制到指定需要调用的根目录"D:/develop/wamp/project/www/”,修改index.php文件把内容改成:$wampConfFile = 'D:/wamp64/wampmanager.conf';
路径一定要正确,一定是安装目录下的wampmanager.conf
可能会遇到以下问题,解决方案:http://www.jb51.net/diannaojichu/253491.html
4. 右击选择语言chinese
5. 左击:
localhost:本地主机
phpMyAdmin:Mysql可视化数据库
www目录:项目主目录,存放项目的目录,localhost访问的页面在这
Apache、PHP、Mysql:版本信息、配置文件、设置、服务之类
6. 新建一个project文件夹用于存放项目
配置一个站点
7. 配置Apache
左击Apache->httpd.conf->搜索documentroot->改为DocumentRoot "D:/develop/wamp/project/www/”自己设计的目录->改为Directory "D:/develop/wamp/project/www/“->重启服务->在project下建一 个php文件
8.进到软件安装目录,找到wampmanager.ini和wampmanager.tpl
1) wampmanager.ini->搜索menu.left->往下'www 目录'改为'project 目录',FileName里面改为:FileName: "D:/develop/wamp/project/www"
2) wampmanager.tpl->搜索menu.left->往下'${w_wwwDirectory}'改为'project 目录',FileName里面改为:FileName: "D:/develop/wamp/project/www"
3)退出重启,左击已改为project目录
配置多个站点
配置成这个样子域名对应本地地址
9.找到C:\Windows\System32\drivers下的host文件添加
9.1 找到D:\develop\wamp\wamp\bin\apache\apache2.4.9\conf\extra的httpd-vhosts.conf打开-》添加三个站点(最少两个因为多站点嘛)也就是添加三个下面代代码
# Virtual Hosts
#
<VirtualHost *:80>
ServerName localhost
DocumentRoot D:/wamp/www
<Directory "D:/wamp/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
#
<VirtualHost *:80>
DocumentRoot "D:/wamp/www"
ServerName mytest.com
ServerAlias "www.mytest.com"
<Directory "D:/wamp/www/">
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/mytest1"
ServerName mytest1.com
ServerAlias "www.mytest1.com"
<Directory "D:/wamp/www/mytest1/">
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "D:/wamp/www/mytest2"
ServerName mytest2.com
ServerAlias "www.mytest2.com"
<Directory "D:/wamp/www/mytest2/">
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
还需要在www下建两个文件夹m1和example2.文件夹下面分别建PHP文件index.php
10.扩展填上如何打开呢? 左击Apache->httpd.conf->搜索httpd-vhost找到如图,将注释去掉
11. 左击Apache->httpd.conf->搜索project也就是,往下找到
如果找到
改为
没有或者只有Require local不改
0 0
- WAMPServerVersion 3.0.6
- Firefox - 更新 - 3.0.6
- redis 3.0.6 安装
- wamp-3.0.6 vhost
- VirtualBox 3.0.6 Beta 1
- NGUI(3.0.6) - sprite
- AS 3.0与jsp通信(6)
- VirtualBox 3.0.6 (released 2009-09-09)
- nagios 3.0.6 搭建配置文档
- Nessus-3.0.6【linux漏洞扫描工具】
- FreeNAS 0.72 安装 mldonkey 3.0.6
- 安装HBase 0.94.6-cdh4.3.0
- centos6.6 安装redis 3.0.3
- MongoDB(3.0.6)查询性能分析
- CentOS7.2 安装redis 3.0.6集群
- swift 3.0 第3-6章中文
- WampServer 3.0.6安装错误解决办法汇总
- Python3.6(3.0以上)安装scrapy
- 【bzoj 1497】[NOI2006]最大获利
- meta标签<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>等
- iOS8的一些好玩的升级
- reacet-router跳转页面的方法总结
- 解决python 提示 SyntaxError: Missing parentheses in call to 'print'
- WAMPServerVersion 3.0.6
- ACM进阶计划
- 用CSS做文字向上移动的轮播
- Synchronized 与 Lock的区别
- 数据结构(线性表):单循环链表
- MyBatis集成log4j简单配置
- 乱码终极解决大全(阅尽天下A片,心中便无码)
- python中numpy模块中的linspace函数
- Android Studio导入项目出错问题