在阿里云服务器中装wampserver
来源:互联网 发布:单片机c语言讲解 编辑:程序博客网 时间:2024/06/05 15:01
我用的是64位的Windows server 2012 R2 64位,所以下载wamp时装64位的。
装wamp时可能会遇到例如缺少msvr110.dll、ddl140啊之类的各种乱七八糟的问题,度娘了一下午,发现了只要安装visual C++2012或visual C++2015就好了,其实都可以,但是一定要注意版本!!!一定要是64位的。安装wampserver的最后会分别提示是否使用IE和notepad分别作为localhost和文本文件的打开方式,此时如果没有安装notepad,在之后使用时会出错,所以可以选择先下载安装 notepad++。
安全组配置结束,这时点击wampserver—>Apache—>httpd.conf和httpd-vhosts.conf修改访问权限:
将 httpd.conf内onlineoffline tag标签后面和httpd-vhosts.conf中的Require local改为Require all granted(前者是只允许本地访问,后者是允许全网访问,详见Apache2.4改动日志),之后便可以在外网中访问服务器部署的wampserver了。
此时应该访问本地localhost没问题了,但是外网可能还是访问不了,于是:
网是找了很多解决办法,都没有说到点子上,说要找到如下这一段代码,再进行修改,
解决办法:
一、
<Directory /> AllowOverride none Require all denied</Directory>
直接替换成这一段:
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow# Deny from all Allow from all#允许所有访问 Satisfy all</Directory>
二、找到这一段:
<Directory "d:/wamp/www/"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. ## onlineoffline tag - don't remove Order Deny,Allow Deny from all Allow from 127.0.0.1</Directory>
替换成:
<Directory "d:/wamp/www/"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride all # # Controls who can get stuff from this server. ## onlineoffline tag - don't remove Order Deny,Allow# Deny from all# Allow from 127.0.0.1 Allow from all</Directory>
重启wamp就可以在外网访问了
阅读全文
0 0
- 在阿里云服务器中装wampserver
- 使用wampserver搭建阿里云服务器
- 在wampserver集成环境下 远程部署项目并绑定域名(服务器为阿里云)
- 阿里云ECS服务器IIS和WampServer同时运行
- wampserver+阿里云服务器 记一次发布php系统
- 在阿里云的服务器(windows server 2008 R2 Enterprise)上安装wampserver错误提示我系统缺失MSVCR110.dll
- 阿里云ECS,WampServer无法访问外网
- 在ubunt中装apache
- [阿里云]在阿里云服务器上,安装Tomcat
- 在阿里云服务器上部署项目
- 在阿里云上搭建Git 服务器
- 在阿里云服务器上添加站点
- 在阿里云服务器上搭建wordpress
- [服务器]阿里云服务器
- 在阿里云服务器上搭建svn服务器
- 在阿里云服务器上搭建SVN服务器
- 在Windows7中装Ubuntu双系统
- 在jupyter中装 kernel python3
- 折线分割平面 HDU
- 【项目实战】---SQLServer中case when的简单用法
- 深度学习CNN-基本概念
- MVC开发模式
- Linux
- 在阿里云服务器中装wampserver
- 【Python数据挖掘】实用模块之Pandas
- 第14周项目1- 验证算法
- PAT编程基础 5-18 二分法求多项式单根 (20分)
- 算法class1
- 中缀表达式转 后缀表达式和前缀表达式
- 初识 Vector List
- ACdream 1020The Game about KILL
- 云+课堂