改变对Wampserver旧版本的PHP / Apache的后phpMyAdmin的访问被拒绝 [英] Phpmyadmin access denied after changing to older versions of PHP/Apache on Wampserver

查看:114
本文介绍了改变对Wampserver旧版本的PHP / Apache的后phpMyAdmin的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道这是为什么?

我已阅读有关更改httpd.conf文件的各种事情,但

I have read various things about changing the httpd.conf file but


  1. 的信息变化,并相互冲突

  2. 什么被认为是在该文件中不相同的格式和存在的是什么意思,在那里,即&所述两个版本;目录/> < /目录> <目录别的> < /目录>

  1. the information varies and is conflicting
  2. what is said to be in the file is not in the same format and there are two versions of what is meant to be there i.e. <Directory /> </Directory> and <Directory something else> </Directory>

最初的PHP 5.4.3 / 2.4.2的Apache工作正常,但我无法看到的参考足够相似点,能够通过复制httpd.conf中设置成为Apache 2.2.2文件(我使用的PHP 5.3.1我。

The original PHP 5.4.3/Apache 2.4.2 is working fine but I can't see enough similar points of reference to be able to copy the httpd.conf settings over into the file for Apache 2.2.2 (which I am using with PHP 5.3.1.

Lines 160-166:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all
</Directory>

Lines 305-310:

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

或者是完全不同的东西?

Or is it something completely different?

推荐答案

您需要将以下几行到httpd.conf:

You will need to add the following lines to httpd.conf:

# This tells Apache where to look for phpmyadmin
Alias /phpmyadmin C:/wamp/apps/phpmyadmin3.5.1

# This gives permission to serve the directory
<Directory C:/wamp/apps/phpmyadmin3.5.1>
  Options None
  AllowOverride None
  # This allows eveyone to access phpmyadmin, which you may not want
  Order Allow,Deny
  Allow from all
</Directory>

一旦你做出这些修改并重新启动Apache的,它应该工作。

Once you have made these modifications and restarted Apache, it should work.

我怀疑的第一行可能已经是present,因为你得到一个403,而不是404。

I suspect the first line may already be present, because you are getting a 403 and not a 404.

这篇关于改变对Wampserver旧版本的PHP / Apache的后phpMyAdmin的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆