简体   繁体   English

WAMP + XAMPP,无法访问localhost / phpmyadmin

[英]WAMP + XAMPP, localhost/phpmyadmin not accesible

I am new to alot of things with WAMP/XAMPP , so i followed a few tutorials online, which required me to go to localhost/phpmyadmin . 我对WAMP/XAMPP有很多了解,因此我在线上关注了一些教程,这些教程要求我转到localhost/phpmyadmin But every time i open the "webisite" i get an Error 404. As far as i know, no ports are blocked for either of the programs. 但是,每次我打开“网站”时,都会出现错误404。据我所知,任何一个程序都没有端口被阻塞。 when i start both apache and mysql on XAMPP it is highlighted green, and the ports are 当我在XAMPP上同时启动apache和mysql时,它突出显示为绿色,并且端口为

Apache : 80, 443

MySQL : 3306

When i go to the WAMP icon, and test the port for Apache it says: 当我转到WAMP图标并测试Apache的端口时,它说:

your port 80 is actually used by : 

Server: Apache/2.4.12 (Win32) OpenSSL/1.01l PHP/5.6.8

which in my eyes isn't a problem. 在我看来这不是问题。

I installed XAMPP for limesurveys, which i want to host locally. 我安装了XAMPP用于石灰调查,我想在本地托管。 So everytime i open localhost in my browser it loads a website where i can choose from surveys. 因此,每次我在浏览器中打开localhost时,它都会加载一个网站,供我从调查中选择。 This list is obviously empty, but the important information is, THAT the webisite is available. 该列表显然是空的,但是重要的信息是,该网站可用。 now when i try open localhost/phpmyadmin i get a website telling me about Error 404 and stuff. 现在,当我尝试打开localhost/phpmyadmin我得到一个网站,告诉我有关Error 404Error 404 I have checked, that phpmyadmin is installed when i installed WAMP, and also, that the alias in C:/wamp/alias/phpmyadmin.conf directs to the correct folder C:/wamp/apps/phpmyadmin4.1.14/ . 我检查了安装WAMP时是否安装了phpmyadmin,并且还检查了C:/wamp/alias/phpmyadmin.conf中的别名C:/wamp/alias/phpmyadmin.conf指向正确的folder C:/wamp/apps/phpmyadmin4.1.14/ What im wondering is, why i cant open phpmyadmin... 我想知道的是,为什么我无法打开phpmyadmin ...

If you have installed both xampp and Wamp on your machine try uninstalling one and just work with either one, I would recommend xampp. 如果您在计算机上同时安装了xampp和Wamp,请尝试将其卸载并仅使用其中之一,我建议您使用xampp。 Make sure you move all your work files from htdocs or www, if your are uninstalling xampp or wamp respectively. 如果要分别卸载xampp或wamp,请确保从htdocs或www移动所有工作文件。 Then try turning apache and mysql on and see if it works. 然后尝试打开apache和mysql,看看它是否有效。

Good luck! 祝好运!

You can of course keep both XAMPP and WAMP running together keeping in mind that you have changed the default ports for either of it to some other ports rather than 80,443 and 3306, but sometimes it could create conflict as when you install some other third party softwares or enable certain services that run on port 80,443,3306. 当然,您可以使XAMPP和WAMP一起运行,但要记住,您已经将XAMPP和WAMP的默认端口更改为其他端口,而不是80,443和3306,但是有时在安装其他第三方软件时可能会产生冲突。或启用在端口80,443,3306上运行的某些服务。

The best alternative here would be to install one of the servers inside a virtual machine with network configured as "host-only-adapter" so that from the base machine you could access XAMPP/WAMP installed on the virtual machine by just pointing the ip-address of the virtual machine through a web-browser. 最好的替代方法是在网络配置为“仅主机适配器”的虚拟机内安装一台服务器,以便从基本计算机上通过指向ip-,可以访问虚拟机上安装的XAMPP / WAMP。通过Web浏览器的虚拟机地址。

or, 要么,

If you want to run both XAMPP and WAMP together on the same machine but access only one of the servers at a time then you could go ahead installing both of them one after another. 如果您要在同一台计算机上同时运行XAMPP和WAMP,但一次只能访问其中一台服务器,则可以继续安装这两个服务器。 But, keep in mind that before installing the other server you have to completely stop all the services running from the XAMPP or WAMP control panel then quit the application. 但是,请记住,在安装其他服务器之前,必须完全停止从XAMPP或WAMP控制面板运行的所有服务,然后退出该应用程序。 After this step you can go ahead installing the other server without changing any configurations or port numbers. 完成此步骤后,您可以继续安装其他服务器,而无需更改任何配置或端口号。 This is because in this case we assumed that only one of the servers would be accessed at a time. 这是因为在这种情况下,我们假设一次只能访问其中一台服务器。 Hence, before launching the other server one has to completely quit the application that is running currently by stopping all of it's services. 因此,在启动另一台服务器之前,必须先通过停止其所有服务来完全退出当前正在运行的应用程序。 If skype is installed then one has to change the default incoming connection ports to other than port 80 and 443. 如果安装了Skype,则必须将默认的传入连接端口更改为端口80和443以外的端口。

Like mentioned above, if at all the intention is to access both servers up and running concurrently then taking advantage of a virtual machine would be the best to avoid conflicts and a long-term troubleshoots eventually. 像上面提到的那样,如果打算同时访问和运行两个服务器,那么最好利用虚拟机来避免冲突,并最终进行长期的故障排除。

If you messed up changing ports and config files then you could end up with the following error while trying to access phpmyadmin from XAMPP control panel: 如果您搞砸了更改端口和配置文件,则在尝试从XAMPP控制面板访问phpmyadmin时可能会遇到以下错误:

    **mysql said: Cannot connect: invalid settings. xampp**

note: while launching the servers , run it as administrator else some services will not start properly. 注意: 启动服务器时,请 以管理员身份运行, 否则某些服务将无法正常启动。

"I TRIED INSTALLING BOTH XAMPP AND WAMP ON WINDOWS 10 AS SUCH AS POINTED BY MANY THREADS I CHANGED THE DEFAULT PORTS FOR MYSQL & APACHE XAMPP AS IT WOULD CONFLICT WITH WAMP ALREADY INSTALLED ONLY ENDING UP UNABLE TO ACCESS PHPMYADMIN FROM XAMPP CONTROL PANEL. THEN REINSTALLED XAMPP WITHOUT CHANGING ANY CONFIGS OR PORTS. STOP THE WAMP SERVICES, QUIT THE APP AND THEN LAUNCH PHPMYADMIN FROM XAMPP CONTROL PANEL. AT LAST IT WORKED!. THE PROCESS LOOKS SHORT THOUGH WHEN IN REALITY IT TOOK ME COUNTLESS HOURS AND PAIN RESEARCHING ON THE WEB AND TESTING FOR A POSSIBLE SOLUTION UNTILL I CAME UP WITH THIS." “我尝试将XAMPP和WAMP都安装在WINDOWS 10上,因为很多线程都指出了这一点,因为我改变了MySQL的默认端口,并更改了XAMPP,因为它已经与WAMP发生冲突,只能阻止从XAMPP控制中访问PHPMYADMIN。 XAMPP不会更改任何配置或端口,请停止WAMP服务,退出该应用程序,然后从XAMPP控制面板启动PHPMYADMIN。最后它起作用了!当现实中它使我数了数小时和痛苦的研究时,过程看起来很短直到我解决这个问题,然后进行可能的解决方案的测试。”

Hopes, this quick tips and guides would be helpful. 希望本快速提示和指南对您有所帮助。

停止所有IIS服务和Skype通常使用相同的端口。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM