简体   繁体   English

打开时WAMP Server 2错误

[英]WAMP Server 2 Error when Open

I have installed the WAMP server 2 in my Laptop and the Operating system using is Windows7. 我已经在笔记本电脑中安装了WAMP服务器2,并且使用的操作系统是Windows7。 When I try to open PHP MyAdmin it always gives the following message in the browser. 当我尝试打开PHP MyAdmin时,它总是在浏览器中显示以下消息。

HTTP Error 404. The requested resource is not found.


So when I try to put the server online it gives this error message: 因此,当我尝试使服务器联机时,它会显示以下错误消息:

wamp server could not execute menu item (internal Error) [Exception] could not perform action: The service has not been started wamp服务器无法执行菜单项(内部错误)[Exception]无法执行操作:该服务尚未启动

在此输入图像描述

Does anyone have any idea why this happens like this? 有谁知道为什么会这样?
I can't anymore open the PHP my admin or Localhost. 我无法再通过管理员或Localhost打开PHP。

my computer/manage/services 我的电脑/管理/服务

and stop sql reporting services 并停止sql报表服务

The server offline has no relation to your problem. 脱机服务器与您的问题无关。

Click on the icon in the system tray, and check that Apache and MySQL are on. 单击系统任务栏中的图标,然后检查Apache和MySQL是否已打开。 You do this from 您是从

Apache>Service>(check that start/resume service is disabled) Apache>服务>(检查是否已禁用启动/继续服务)

MySQL>Service>(check that start/resume service is disabled) MySQL> Service>(检查是否已禁用启动/继续服务)

If Apache is not on, click start/resume service . 如果未启用Apache,请单击“ start/resume service If it still doesn't come on, click on Test port 80 This should tell you if port 80 is blocked (usually Skype blocks it. In that case, exit the program blocking port 80, start Apache and then you can resume the program that you terminated earlier) 如果仍然不亮,请单击“ Test port 80这应该告诉您端口80是否被阻止(通常是Skype对其进行阻止。在这种情况下,退出程序将阻止端口80,启动Apache,然后您可以继续执行该程序您提前终止了)

If Apache is on, and the icon is still orange, it means MySQL is either (a) off or (b) running independently. 如果Apache已打开,并且图标仍为橙色,则表示MySQL已(a)关闭或(b)独立运行。

If MySQL is off, turn it on in the same way you would have done for Apache 如果MySQL已关闭,则以与对Apache相同的方式将其打开

If MySQL is separately installed, check the configuration from 如果单独安装了MySQL,请从以下位置检查配置

MySQL>my.ini MySQL的>的my.ini

Look for something like 寻找类似的东西

The following options will be passed to all MySQL clients 以下选项将传递给所有MySQL客户端
[client] [客户]
password = root 密码= root
port = 3306 端口= 3306
socket = /tmp/mysql.sock 套接字= /tmp/mysql.sock

and put in the proper password and port for your mySQL instance 并为您的mySQL实例输入正确的密码和端口

I got the same error message after installing WAMP. 安装WAMP后,我得到了相同的错误消息。 My problem was with Skype as mentioned by Pranav. 我的问题是Pranav提到的Skype。 Quitting Skype and 'Restarting All Services' and then clicking on 'Put Online' got WAMP working. 退出Skype并“重新启动所有服务”,然后单击“联机”使WAMP正常运行。 Restarted Skype afterwards. 之后重新启动Skype。

I solved the problem following these steps: 我按照以下步骤解决了问题:

services.msc and stop Web Deployment Agent Service which I recently installed. services.msc并停止我最近安装的Web Deployment Agent Service Also make it to start manually to not cause any problem in next start-ups. 还可以使其手动启动,以免在下次启动时引起任何问题。

This error occur because You have installed Microsoft (SQL Server Management studio). 发生此错误的原因是您已经安装了Microsoft(SQL Server Management Studio)。

So,You need to stop SQL server reporting service and all IIS services from mycomputer/services. 因此,您需要停止myserver / services中的SQL Server报告服务和所有IIS服务。

Then Restart all services of wampserver. 然后重新启动wampserver的所有服务。

If you getting following error 如果出现以下错误

Could not execute menu item (internal error) [Exception] Could not perform service action: The service has not been started 无法执行菜单项(内部错误)[Exception]无法执行服务操作:服务尚未启动

Solution 1: 解决方案1:

Make sure none of following services is running on your system: IIS, Skype, Zone Alarm, NOD32, Eset, Internet Optimizer, Google Accelerator, any other database server, any other webserver.. 确保您的系统上没有运行以下服务:IIS,Skype,Zone Alarm,NOD32,Eset,Internet Optimizer,Google Accelerator,任何其他数据库服务器,任何其他Web服务器。

If you using any of the above application close it and select “restart all services” from WAMP menu. 如果您使用上述任何应用程序,请将其关闭,然后从WAMP菜单中选择“重新启动所有服务”。


Solution 2: 解决方案2:

Under Apache open the httpd.conf and change the lines 在Apache下,打开httpd.conf并更改行

#Listen 12.34.56.78:80
Listen 80

to

#Listen 12.34.56.78:80
Listen 8080

Make that 80 to 8080, save the file and select “restart all services”, it is done. 将其设置为80至8080,保存文件并选择“重新启动所有服务”,即可完成。

Please make sure you have the latest version of all of these Microsoft C++ Redistributable runtime libraries. 请确保您具有所有这些Microsoft C ++可再发行运行时库的最新版本。

The 2008 Redist is used by wampmanager The 2010 Redist is used by some versions of Apache ( depending on compiler used ) The 2012 Redist is used by some versions of Apache ( depending on compiler used ) wampmanager使用2008Redist。Apache的某些版本使用2010 Redist(取决于使用的编译器)Apache的某些版本使用2012 Redist(取决于使用的编译器)

FOR WAMP 32bit Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) http://www.microsoft.com/en-gb/download/details.aspx?id=5582 FOR WAMP 32位Microsoft Visual C ++ 2008 SP1可再发行组件包(x86) http://www.microsoft.com/zh-CN/download/details.aspx?id=5582

Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) http://www.microsoft.com/en-gb/download/details.aspx?id=8328 Microsoft Visual C ++ 2010 SP1可再发行组件包(x86) http://www.microsoft.com/zh-cn/download/details.aspx?id=8328

If you are using WampServer 2.4 Microsoft Visual C++ 2012 http://www.microsoft.com/en-gb/download/details.aspx?id=30679 And select vcredist_x86.exe 如果您使用的是WampServer 2.4 Microsoft Visual C ++ 2012 http://www.microsoft.com/zh-cn/download/details.aspx?id=30679并选择vcredist_x86.exe

FOR WAMP 64bit Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) http://www.microsoft.com/en-gb/download/details.aspx?id=5582 FOR WAMP 64位Microsoft Visual C ++ 2008 SP1可再发行组件包(x86) http://www.microsoft.com/zh-CN/download/details.aspx?id=5582

Yes you need the x86 Package regardless 是的,无论您是否需要x86软件包

Microsoft Visual C++ 2008 Redistributable Package (x64) http://www.microsoft.com/en-us/download/details.aspx?id=15336 Microsoft Visual C ++ 2008可再发行组件包(x64) http://www.microsoft.com/zh-cn/download/details.aspx?id=15336

Microsoft Visual C++ 2010 SP1 Redistributable Package (x64) http://www.microsoft.com/en-gb/download/details.aspx?id=13523 Microsoft Visual C ++ 2010 SP1可再发行组件包(x64) http://www.microsoft.com/zh-cn/download/details.aspx?id=13523

If you are using WampServer 2.4 Microsoft Visual C++ 2012 http://www.microsoft.com/en-gb/download/details.aspx?id=30679 如果您使用的是WampServer 2.4 Microsoft Visual C ++ 2012,则http://www.microsoft.com/en-gb/download/details.aspx?id=30679

And select vcredist_x64.exe 然后选择vcredist_x64.exe

Then make sure you do not have another APache running. 然后,确保没有其他APache在运行。 Lots of people come to WAMPServer after trying to install Apache, PHP and MySQL themselves. 尝试自行安装Apache,PHP和MySQL之后,很多人来到WAMPServer。 Make sure you uninstall any other attempts you may have made to Do It Yourself 确保你卸载你可能已经做出的任何其他尝试Do It Yourself

Check if your Apache and MySQL services are running (the tray icon should be green), if not, that's the place to start. 检查您的Apache和MySQL服务是否正在运行(托盘图标应为绿色),否则,请从这里开始。 Also check if you have multiple versions of them (from the previous install), perhaps the active one(s) is misconfigured. 另外,请检查您是否有多个版本(来自先前的安装),可能是活动版本配置错误。

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

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