[英]Error while running phpmyadmin using localhost/phpmyadmin
My problem is if i run http://localhost/phpmyadmin
我的问题是如果我运行
http://localhost/phpmyadmin
it doesn't work but if i run http://localhost/phpmyadmin/index.php
它不起作用,但是如果我运行
http://localhost/phpmyadmin/index.php
it will work. 它会工作。 Is there is something i have missed while configuring phpmyadmin, secondly how do i configure
http://localhost/phpmyadmin/index.php
path to work on http://localhost/phpmyadmin
. 在配置phpmyadmin时,我是否缺少某些东西,其次,我如何配置
http://localhost/phpmyadmin/index.php
路径以在http://localhost/phpmyadmin
。
Or is it something related to apache.conf file, if yes then how do i configure apache.conf
file. 还是与apache.conf文件相关,如果是,那我该如何配置
apache.conf
文件。 I want my project and phpmyadmin to run on localhost like if i run http://localhost/
then it should run my project and if i run http://localhost/phpmyadmin
then it should open the index.php of phpmyadmin
. 我希望我的项目和phpmyadmin在localhost上运行,就像如果我运行
http://localhost/
那么它应该运行我的项目,如果我运行http://localhost/phpmyadmin
那么它应该打开index.php of phpmyadmin
的index.php of phpmyadmin
。 Thanks 谢谢
您需要DirectoryIndex指令,例如:
DirectoryIndex index.php
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.