Apache not working after Windows 8.1 upgrade [clos

2019-07-08 02:21发布

问题:

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.