Apache not working after Windows 8.1 upgrade [closed]

佐手、 提交于 2019-12-24 02:03:31

问题


After upgrading to Windows 8.1 from Windows 8 today Apache isn't working anymore. I had this problem when upgrading last time to Windows 8 from Windows 7 and had to re-install all my server components but I don't want to do that this time as I loose all the databases I had before.

Does anyone know what I can do to reconnect my Apache server, PHP and MySQL servers?

Apache 2.2 PHP 5.


回答1:


You should start the MySQL, Apache and/or WAMP services from services.msc. If cannot find them, you will need to re-install them as services.

In few words, you need to execute the following binaries from an elevated command prompt:

  • httpd.exe -k install, here is how it works: http://httpd.apache.org/docs/2.2/platform/windows.html#winsvc
  • mysqld.exe --install, here is how it works http://dev.mysql.com/doc/refman/5.1/en/windows-start-service.html

If you cannot find them, try this from a command prompt:

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

Then you will find them.



来源:https://stackoverflow.com/questions/19480443/apache-not-working-after-windows-8-1-upgrade

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!