Apache/PHP cannot start conditions

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

Recently often asked Apache cannot start conditions, so the write an article, summarize the method of solving Windows often encountered Apache/PHP cannot start conditions.

Apache/PHP can't start in two cases:

1., Apache can't start, no loading PHP does not start

2, Apache can start, but could not be started after loading PHP

The first case is the most Apache configuration problems, or port 80 is occupied

Use Apache configuration check:


C:\>D:\Apache2.2\bin\httpd.exe -t
Syntax OK
According to the error, correct the error.

If the 80 port occupied, the Windows machine is common, often preempted by IIS.

The cancellation of the IIS service:

iisreset /stop
iisreset /disable

If not IIS, you can kill the occupation of 80 port using the command process:


# Find port 80 process ID
netstat -ano|find ":80"

# The hypothesis that the process of ID 2013, see the process name: 
tasklist /fi "pid eq 2013"

# Kill the process command
taskkill /f /pid 2013


/********  Ruthlessly dividing line ********* /
  Author: no blossom tree
  Blog: blog.csdn.net/mycwq
/ *******   Relentless copy  *********/

The second most is PHP compiler problem:

Check the Apache error log, a class of like the following contents:

httpd.exe: Syntax error on line 63 of D:/Apache2.2/conf/httpd.conf: Cannot load D:/php/php5apache2_4.dll into server: %1 \xb2\xbb\xca\xc7\xd3\xd0\xd0\xa7\xb5\xc4 Win32 \xd3\xa6\xd3\xc3\xb3\xcc\xd0\xf2\xa1\xa3

The php5.5 compiler is vc11, php5.4 and php5.3 is vc9, php5.2 is vc6. At the same time, but also pay attention to is the x86 version, and x64 version. At present, only php5.5 version of x64, the other x86 version only.

Download apache.org Apache VC6 version, or according to different files installed runtime different.

The vc11 runtime version of x86/x64:
The vc10 runtime version of x86:
The vc10 runtime version of x64:
The vc9 runtime version of x86:
The vc9 runtime version of x64:

If you do not know the situation, can install all runtime, then do not have to worry about this problem.

If Apache/PHP is unable to start, it is most likely the php5_module module problem:

1, The PHP module of Apache2.0 corresponding to php5apache2.dll

2, The PHP module of Apache2.2 corresponding to php5apache2_2.dll

3, The PHP module of Apache2.4 corresponding to php5apache2_4.dll

In other words, according to the php5_module module, you can know the current version PHP support which Apache

Therefore, Apache/PHP with the following circumstances:

1, Php5.2 support Apache2.0 and Apache2.2,

2, php5.3, Php5.4 supports both Apache2.2 and Apache2.4,

3, Php5.5 only supports Apache2.4

Unless you manually compile the php5_module module, it can only have 3 of the above selection.


Reference resources

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Brenda at December 16, 2013 - 10:11 PM