我在我的Win7笔记本电脑上安装了apache2.2和php5.3。我可以在htdocs文件夹和名为htdocs/myzftest/public/index.php的文件夹下运行html和php文件。
我刚刚安装了MySQL,它看起来工作正常。然后我将phpMyAdmin下载到htdocs/phpMyAdmin并尝试从那里运行index.php,但我得到了请求的URL /phpMyAdmin/index.php在此服务器上找不到。
为什么我可以访问一个子文件夹下的index.php,但不能访问另一个子文件夹下的not?
我看过一些关于.htaccess文件的帖子,但我不知道如何/在哪里使用它。
谢谢,丹
发布于 2012-04-06 19:50:46
发布于 2013-01-10 20:03:58
我猜您在某个conf文件suach中有一个phpadmin的别名,就像在httpd.conf中一样。例如,在httpd-xampp.conf中包含以下内容:
Alias /phpmyadmin "C:/Program Files/xampp/phpMyAdmin/"
<Directory "C:/Program Files/xampp/phpMyAdmin">
AllowOverride AuthConfig
</Directory>这会将对phpMyAdmin的调用重定向到目录C:/Program Files/xampp/phpMyAdmin,而不是C:/Program Files/xampp/htdocs/phpMyAdmin
https://stackoverflow.com/questions/10042716
复制相似问题