在wampserver中修复phpmyadmin的路径

时间:2013-07-31 13:13:50

标签: apache configuration phpmyadmin alias wampserver

Phpmyadmin工作正常,但我不记得我做了什么更改,现在当我尝试http://localhost/phpmyadminhttp://127.0.0.1/phpmyadmin时,我发现404页面找不到错误。否则服务器工作正常。我正在运行wampserver,并在我自己的机器上本地访问所有内容。

apache错误日志文件说明了这个:

[Wed Jul 31 16:01:16 2013] [error] [client 127.0.0.1] File does not exist: D:/wamp/www/phpmyadmin, referer: http://localhost/

windows / system32 / drivers / etc / hosts文件说:

127.0.0.1       localhost

phpmyadmin.conf别名文件说明了这个:

Alias /phpmyadmin "D:/wamp/apps/phpmyadmin3.3.9/" 

<Directory "D:/wamp/apps/phpmyadmin3.3.9/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride all
        Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1
    Allow from ::1
</Directory>

我也进入了控制面板的事件查看器,并获得了有关事件的以下详细信息:

Application popup: Warning: PHP Startup: Unable to load dynamic link library d:/wamp/bin/php/php5.3.5/ext/php_memcache.dll - The specified module could not found.

这很奇怪,但我从备份系统复制了php_memcache.dll文件并重新启动了服务器,但仍然在phpmyadmin上收到404错误。

出了什么问题?为什么phpmyadmin会出现404错误?

更新1

尽管在提到的路径中有文件,我仍然得到上面的错误,找不到php_memcache.dll。

更新2

我已经安装了php_memcache.dll,因此我不再收到该错误,但仍未找到phpmyadmin。在我做了一些我不记得的改变之前 正常工作了!

3 个答案:

答案 0 :(得分:1)

好的,如果您已创建虚拟主机,并且已添加一个,以便WAMP继续工作,我怀疑没有,所以尝试将其添加为vhost定义文件中的FIRST vhost定义。

## must be the first definition so the the wamp menu page loads
##
## Remember the first vhost definition is used as the default if Apache cannot find the domain
## name enter in the browser. So this also serves as a security protection mechanism
## as long as you leave Deny from all, Allow from 127.0.0.1 localhost ::1
## It will cause Apache to reject casual attempts at hacking your IP if you allow 
## other vhosts to be accessed from the big bad internet.
<VirtualHost *:80>
    ServerAdmin webmaster@homemail.net
    DocumentRoot "D:/wamp/www"
    ServerName localhost
    ServerAlias localhost
    <Directory  "D:/wamp/www">
      Order Deny,Allow
      Deny from all
      Allow from 127.0.0.1 localhost ::1
    </Directory>
</VirtualHost>

确保这是D:\wamp_current\bin\apache\apache2.x.y\conf\extra\httpd-vhost.conf文件中的第一个虚拟主机。

答案 1 :(得分:0)

php_memcache要求zlib也像免费​​提供的PHP网站上所说的那样安装

php_memcache requirements

答案 2 :(得分:0)

尝试编写:在httpd.conf文件中包含“c:/ wamp / alias / *”。