Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: I can't run Apache on Windows Server 2022 |
|
Author |
|
Neko
Joined: 27 Mar 2025 Posts: 2
|
Posted: Thu 27 Mar '25 19:39 Post subject: I can't run Apache on Windows Server 2022 |
|
|
Hi, everybody
There is no way I can run Apache 2.4.63 on Windows Server 2022.
I've already tried a lot of methods that were online, and I've added and changed a lot to "conf", and I've changed the port, and I've tried everything, but I can't get it to run, here's my conf ->
Quote: | Define SRVROOT "c:/Apache24"
ServerRoot "${SRVROOT}"
Listen 123
ServerName localhost
LoadModule php_module "C:/php/php8apache2_4.dll"
PHPIniDir "C:/php"
ServerName localhost
<Directory />
AllowOverride none
Require all denied
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
<Directory "${SRVROOT}/cgi-bin">
AllowOverride None
Options None
Require all granted
</Directory>
<IfModule proxy_html_module>
Include conf/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
ScriptInterpreterSource Registry |
Please help, I will be grateful, I installed it using the CMD command: "C:\Apache24\bin\httpd.exe -k install" . But when you enter the "start" command at the end, nothing happens or starts, it just returns the following error through the services: "The Apache2.4 service could not be started on the local computer. The details are contained in the system event log. If this service is not developed by Microsoft, contact the service developer and specify the error code 1 related to the specific service."
Here are the logs in advance:
Quote: | Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:54:43.165355 2025] [:emerg] [pid 7068:tid 352] AH00020: Configuration Failed, exiting
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 7532:tid 336] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:54:56.696497 2025] [:emerg] [pid 7532:tid 336] AH00020: Configuration Failed, exiting
[Thu Mar 27 17:55:02.836891 2025] [core:warn] [pid 9732:tid 360] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:55:02.852955 2025] [:emerg] [pid 9732:tid 360] AH00020: Configuration Failed, exiting
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 4816:tid 360] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:55:43.793240 2025] [:emerg] [pid 4816:tid 360] AH00020: Configuration Failed, exiting
[Thu Mar 27 17:56:33.680490 2025] [core:warn] [pid 7344:tid 336] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:56:33.680490 2025] [:emerg] [pid 7344:tid 336] AH00020: Configuration Failed, exiting
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 10388:tid 352] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 17:56:40.352505 2025] [:emerg] [pid 10388:tid 352] AH00020: Configuration Failed, exiting
[Thu Mar 27 18:02:03.868197 2025] [core:warn] [pid 8808:tid 344] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 18:02:03.884095 2025] [:emerg] [pid 8808:tid 344] AH00020: Configuration Failed, exiting
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 10000:tid 336] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 18:07:10.696870 2025] [:emerg] [pid 10000:tid 336] AH00020: Configuration Failed, exiting
[Thu Mar 27 18:08:35.711163 2025] [core:warn] [pid 10436:tid 336] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 18:08:35.724254 2025] [:emerg] [pid 10436:tid 336] AH00020: Configuration Failed, exiting
[Thu Mar 27 18:15:19.346084 2025] [core:warn] [pid 988:tid 336] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 18:15:31.813913 2025] [:emerg] [pid 988:tid 336] AH00020: Configuration Failed, exiting
Starting the 'Apache2.4' service
The 'Apache2.4' service is running.
ore:warn] [pid 2988:tid 352] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.0 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 18:21:45.021954 2025] [:emerg] [pid 2988:tid 352] AH00020: Configuration Failed, exiting
[Thu Mar 27 20:16:09.131297 2025] [core:warn] [pid 8572:tid 328] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.29 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 20:16:09.182657 2025] [:emerg] [pid 8572:tid 328] AH00020: Configuration Failed, exiting
[Thu Mar 27 20:27:36.452376 2025] [core:warn] [pid 7092:tid 348] AH00098: pid file C:/Apache24/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.29 is not compatible with this PHP build linked with 14.43 in Unknown on line 0
[Thu Mar 27 20:27:36.466254 2025] [:emerg] [pid 7092:tid 348] AH00020: Configuration Failed, exiting |
Thanks again very much for any help! |
|
Back to top |
|
Stray78

Joined: 15 Apr 2024 Posts: 39 Location: USA
|
|
Back to top |
|
Neko
Joined: 27 Mar 2025 Posts: 2
|
Posted: Fri 28 Mar '25 10:28 Post subject: |
|
|
I've already updated it more than once, it doesn't work |
|
Back to top |
|
Otomatic

Joined: 01 Sep 2011 Posts: 246 Location: Paris, France, EU
|
Posted: Fri 28 Mar '25 15:16 Post subject: |
|
|
Neko wrote: | I've already updated it more than once, it doesn't work | It seems that VC++ redistributable updates are not being made as they should be.
Code: | PHP Warning: 'C:\\Windows\\SYSTEM32\\VCRUNTIME140.dll' 14.29 is not compatible with this PHP build linked with 14.43 in Unknown on line 0 | indicates that your VC++ is version 14.29, whereas the latest public version is 14.42.34438.
See: Best way to install Visual C++ Redistributable Packages
The simplest, easiest, least error-prone, fastest way to install the VC++ redistributables is to use a program that installs everything that is needed with a single executable.
No, this is not a utopia ! It exists and it's 'AIO Repack' named VisualCppRedist AIO created by addobi1406, always updated with the latest versions from Microsoft.
The files to download are here: https://github.com/abbodi1406/vcredist/releases VisualCppRedist AIO All Releases.
Download the latest version of the VisualCppRedist_AIO_x86_x64.exe file and run it as administrator, all necessary redistributable VC++ will be installed and excess or obsolete files will be removed. To ensure that everything runs smoothly, some applications will need to be disabled when requested by the Redist VC++ installer. |
|
Back to top |
|
|
|
|
|
|