wamp安装后自定义配置的方法_PHP

WBOY
Release: 2016-05-31 19:30:18
Original
966 people have browsed it

WampServer是目前应用非常广泛的PHP集成开发环境,本文就来讲述Wamp安装后自定义配置的方法。供大家参考借鉴。具体如下:

wamp2.5安装完毕后,自己手动重新设置了apache的默认根目录。但是发现本机可以访问,别人不能访问。

提示信息为:Forbidden  you dont hava permission to access * on the server

表示你没有权限访问!

这是比较常见的问题,应该只需修改目录的权限就可以了。

搜索网上讲述的很多方法后发现,都是说把有‘deny'的行全部替换为‘Allow from all',但是亲自测试了不行。

各种纠结无奈之下,尝试去研究人家给的phpmyadmin,这就是最好的例子了。

在/wamp/alias下的phpmyadmin.conf文件中,文档开始的几行就写了如下的注释:

# to give access to phpmyadmin from outside 
# replace the lines 
# 
#Require local 
# 
# by 
# 
# Require all granted 
#

Copy after login

到这里,答案就很明显了。

于是找到apache2.4.9\conf\httpd.conf文件,把里面节点的最后一行的:

将'Require local'替换为'Require all granted'

至此,问题解决!

由本次解决问题的经历可见,在不熟悉一个东西的时候遇到的问题,最好的解决方案来自Demo!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!