Apache在Windows 8.1升级后不起作用


Apache not working after Windows 8.1 upgrade

今天从Windows 8升级到Windows 8.1后,Apache不再工作了。上次从Windows 8升级到Windows 7时,我遇到了这个问题,并且不得不重新安装所有服务器组件,但这次我不想这样做,因为我丢失了以前拥有的所有数据库。

有谁知道我可以做些什么来重新连接我的Apache服务器,PHP和MySQL服务器?

阿帕奇 2.2菲律宾比索 5.

您应该从services.msc启动MySQL,Apache和/或WAMP服务。如果找不到它们,则需要将它们重新安装为服务。

简而言之,您需要从提升的命令提示符执行以下二进制文件:

  • httpd.exe -k install,这是它的工作原理:http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc
  • mysqld.exe --install,这是它的工作原理 http://dev.mysql.com/doc/refman/5.1/en/windows-start-service.html

如果找不到它们,请在命令提示符下尝试此操作:

cd c:'
dir /s /b mysqld.exe
dir /s /b httpd.exe

然后你会找到它们。