1. Because I plan to use the Yii 2.0 framework, which requires PHP 5.4 or higher, I decided to upgrade the PHP version;
2. The current environment is: Windows 8.1 64-bit, Apache 2.2.25 (http://www.apache.org/), MySQL-5.5.28, PHP-5.3.5, phpMyAdmin-4.2.9.1;

3. The target environment for the upgrade is: Windows 8.1 64-bit, Apache 2.4.12 (http://www.apachelounge.com/), MySQL-5.5.28, PHP-5.4.42, phpMyAdmin-4.2.9.1. The main changes are upgrading PHP to 5.4.42 and switching Apache from a VC6 build to a VC9 build, upgrading it to version 2.4.12;
4. Opened the URL: http://windows.php.net/download/#php-5.4-ts-VC9-x86 and downloaded php-5.4.42-Win32-VC9-x86.zip;
5. Read the documentation on the left:
Which version do I choose?
IIS
If you are using PHP as FastCGI with IIS you should use the Non-Thread Safe (NTS) versions of PHP.
Apache
Please use the Apache builds provided by Apache Lounge. They provide VC9, VC11 and VC14 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
If you are using PHP as module with Apache builds from apache.org (not recommended) you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do NOT use VC9+ versions of PHP with the apache.org binaries.
With Apache you have to use the Thread Safe (TS) versions of PHP.
VC9, VC11 & VC14
More recent versions of PHP are built with VC9, VC11 or VC14 (Visual Studio 2008, 2012 or 2015 compiler respectively) and include improvements in performance and stability.
– The VC9 builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed
– The VC11 builds require to have the Visual C++ Redistributable for Visual Studio 2012 x86 or x64 installed
– The VC14 builds require to have the Visual C++ Redistributable for Visual Studio 2015 x86 or x64 installed
The general meaning translates to:
Which version should I choose?
IIS
If you are using PHP as FastCGI with IIS, you should use the Non-Thread Safe (NTS) versions of PHP.
Apache
Please use the Apache builds provided by Apache Lounge. They provide VC9, VC11, and VC14 builds of Apache for x86 and x64. We use their binaries to build the Apache SAPIs.
If you are using PHP as a module with Apache builds from apache.org (not recommended), you need to use the older VC6 versions of PHP compiled with the legacy Visual Studio 6 compiler. Do not use VC9+ versions of PHP with the apache.org binaries.
Note: Windows versions of Apache 1 and Apache 2 are compiled with VC6, so to use the official Apache with PHP on Windows, you must use the VC6 version for compatibility with the official Apache. You cannot use PHP compiled with VC9 because of incompatibilities between them. PHP 5.4 and above no longer provide VC6 versions, leaving two options: 1. Compile a VC6 version of 5.4 (not recommended because it is outdated and officially abandoned by PHP); 2. Use a VC9 build of Apache, which essentially makes Apache compatible with PHP. Apache Lounge provides VC9 and above versions;
6. If you only upgrade PHP to 5.4.42, you will find that it still works, as shown in the screenshot below:

According to the official PHP guidelines, although running PHP programs poses no issues, there are theoretically still compatibility problems, so I decided to upgrade Apache to the VC9 version;
7. Uninstalled Apache 2.2.25 (http://www.apache.org/), screenshot below:

8. Install Apache 2.4.12 (http://www.apachelounge.com/), the specific download URL is: http://www.apachelounge.com/download/additional/:
Copy D:\软件\httpd-2.4.12-win32-VC9\Apache24 to C:\Apache24
9. Start Apache in a DOS window:

10. The process for resolving the AH00112 error is as follows:

11. Successfully resolved the AH00112 error;

12. Resolve the AH00558 error:

13. Resolved (OS 10048); the cause was running the same command multiple times while the Apache process was already running. Therefore, before debugging errors, it is recommended to close the corresponding process;


14. Install Apache as a service:

15. An error occurred due to insufficient permissions; it should be run as an Administrator. Run cmd.exe (Command Prompt (Admin) (A)) as an administrator:

16. Double-click ApacheMonitor.exe, or place it in your Startup folder.

17. Screenshot of phpinfo running

