php XAMPP 不断显示仪表板/欢迎页面而不是配置页面

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/31653694/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-25 22:33:52  来源:igfitidea点击:

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

phpapachexampp

提问by Nakshatra Mukhopadhyay

I've just downloaded and installed XAMPP 5.6.11 and started all the tools from the control panel. I've seen that one of it's new features is that it has a Welcome/Dashboard page.

我刚刚下载并安装了 XAMPP 5.6.11 并从控制面板启动了所有工具。我已经看到它的新功能之一是它有一个欢迎/仪表板页面。

Previously, going to 127.0.0.1 would take me to a language selection page and then to a orange-yellow page where I could configure XAMPP. Now, going to 127.0.0.1 or hitting Apache's "Admin" button in the XAMPP Control Panel takes me to the dashboard/welcome page no matter what.

以前,转到 127.0.0.1 会带我进入语言选择页面,然后进入橙黄色页面,我可以在其中配置 XAMPP。现在,转到 127.0.0.1 或在 XAMPP 控制面板中点击 Apache 的“管理”按钮,无论如何都会将我带到仪表板/欢迎页面。

One curious thing: attempting to go to http://localhost/xampp/shows me an empty directory listing. I figured perhaps my install was botched so I reinstalled XAMPP. Still no luck. Even tried installing Apache 5.5.27. Same problem.

一件奇怪的事情:尝试访问http://localhost/xampp/向我显示了一个空目录列表。我想也许我的安装失败了,所以我重新安装了 XAMPP。仍然没有运气。甚至尝试安装 Apache 5.5.27。同样的问题。

Am I missing something?

我错过了什么吗?

采纳答案by francog

Same issue here, comparing the htdocs/xampp folder in 5.6.11 with 5.6.8 I saw all the files there are missing in 5.6.11. Copied the entire htdocs/xampp folder from 5.6.8 to 5.6.11 and worked fine.

同样的问题,将 5.6.11 中的 htdocs/xampp 文件夹与 5.6.8 进行比较,我看到 5.6.11 中缺少的所有文件。将整个 htdocs/xampp 文件夹从 5.6.8 复制到 5.6.11 并且工作正常。

回答by Ankit bansal

Open the htdocs folder there will be index.php file. In that file script is written to go in dashboard folder and show dashboard. So you just have to comment it or delete that script and write any code save it and run http://localhostnow dashboard screen will not open and you will see what you have written in that file.

打开 htdocs 文件夹会有 index.php 文件。在该文件中,脚本被写入仪表板文件夹并显示仪表板。因此,您只需对其进行评论或删除该脚本并编写任何代码保存并运行http://localhost现在仪表板屏幕将不会打开,您将看到您在该文件中编写的内容。

回答by Pujan Shah

Delete the file(index.php) from your xampp folder, you will get the list of directories and files from htdocs folder.

从您的 xampp 文件夹中删除文件 (index.php),您将从 htdocs 文件夹中获得目录和文件的列表。

回答by funktioneer

Hey here is the solution for windows 7+.

嘿,这是适用于 Windows 7+ 的解决方案。

You need admin rights to make changes to the hosts file

您需要管理员权限才能更改主机文件

Right click on your favorit text-editor and select "run as administrator" before opening the file

在打开文件之前右键单击您最喜欢的文本编辑器并选择“以管理员身份运行”

Open the following file "c:/windows/system32/driver/etc/hosts"

打开以下文件“c:/windows/system32/driver/etc/hosts”

Enter the line:

输入行:

127.0.0.1 localhost 

Next: Define a virtual host in /xampfolder/apache/conf/extra/httpd-vhosts.conf

Next: 在/xampfolder/apache/conf/extra/httpd-vhosts.conf中定义虚拟主机

<VirtualHost  127.0.0.1>
  DocumentRoot "c:\your\document\root"
  ServerName localhost
    <Directory "c:\your\document\root">
      Options Indexes FollowSymLinks Includes ExecCGI
      Options All 
      AllowOverride All
      Require all granted
    </Directory>
</VirtualHost>

Restart your apache!Now you can enter http://localhostin your browser and access your page.

重启你的apache!现在您可以在浏览器中输入http://localhost并访问您的页面。

Pro-Tip:You can use other names as localhost or have multiple localhosts this way. Just enter the names in the hosts file and define your virtual hosts.

专业提示:您可以使用其他名称作为本地主机或通过这种方式拥有多个本地主机。只需在主机文件中输入名称并定义您的虚拟主机。

回答by shuja rashid

Here is the solutions that worked for me:

以下是对我有用的解决方案:

  1. open index.phpfrom the htdocsfolder
  2. inside replace the word dashboardwith your database name.
  3. restart the server
  1. index.phphtdocs文件夹打开
  2. 在里面dashboard用你的数据库名称替换这个词。
  3. 重启服务器

This should resolve the issue :-)

这应该可以解决问题:-)

回答by Meh Ali

I've resolved the issue, by going to setting and permalink, just choose post-name.

我已经解决了这个问题,通过设置和固定链接,只需选择后名称。

it should work and you'll see the exact page.. rather than dashboard/xampp page again

它应该可以工作,你会看到确切的页面......而不是仪表板/xampp页面

Best of Luck

祝你好运

回答by heySushil

Easiest solution for this to remove the index.php code which is allocated on

最简单的解决方案是删除分配的 index.php 代码

xammp-> htdocs-> index.php 

you can delete the code of this page to solution your problem but have another way which is .htaccss file. Some time you show this problem because of have some issue or miss code on .htaccss file thas way yo saw the xammp dashboard every time. Hop it will resolve your problem. Happy Coding and Good Luck

您可以删除此页面的代码来解决您的问题,但还有另一种方法,即 .htaccss 文件。有时您会因为在 .htaccss 文件上出现一些问题或遗漏代码而显示此问题,这样您每次都会看到 xammp 仪表板。跳它会解决你的问题。快乐编码和祝你好运

回答by a Guest

my suggestion: Choose a different version. I had the same problem you have deinstalled v5.6.11, downloaded and installed v5.6.3, works fine for me.

我的建议:选择不同的版本。我遇到了同样的问题,你卸载了 v5.6.11,下载并安装了 v5.6.3,对我来说工作正常。

cheers!

干杯!

回答by ganff

I was also experiencing the same issue. 5.5.24 was the latest version that worked for me. The Apache Friends blog has a post, https://www.apachefriends.org/blog/new_xampp_20150723.html, that mentions the newer versions shipping with the 'Dashboard'.

我也遇到了同样的问题。5.5.24 是对我有用的最新版本。Apache Friends 博客有一篇文章https://www.apachefriends.org/blog/new_xampp_20150723.html,其中提到了随“仪表板”一起提供的较新版本。

回答by YJ L

http://sourceforge.net/projects/xampp/files/

http://sourceforge.net/projects/xampp/files/

The old version, but the desired function will be sufficient.

旧版本,但所需的功能就足够了。

Uninstall version 5.6.11 and downgrade to version 5.6.8.

卸载 5.6.11 版并降级到 5.6.8 版。