Today I try this learning PHP environment to build.
Did not expect to install Apche Server 2.2 after the launch of the error, error log is as follows:
Starting the Apache2.2 service the
Apache2.2 service is running.
] apache/2.2.21 (WIN32) configured--Resuming normal operations
[Fri SEP 15:45:03] [notice] Server built:sep
9 10:26:10 [
Fri Sep 15:45:03] [notice] parent:created child process 2452
[Fri Sep 23 15:45:03 201 1] [notice] child 2452:child process was running
[Fri Sep 15:45:03] [notice] child 2452:acquired the start Mu Tex.
[Fri Sep 23 15:45:03 2011] [Notice] Child 2452:starting threads worker.
[Fri Sep 23 15:45:03 2011] [Notice] Child 2452:starting thread to listen on port 80.
After searching online, the solution is as follows.
1 Add the PHP.ini directory to the environment variable path
2 new system Variable phprc= "php.ini directory"
3 If through the above two or not successful then a trick: the PHP installation directory under the Libmysql.dll file copy to Windows/system32 under
4 Copy Libmysql.dll to Apache/bin
I was successful after 124 steps:
The following error also occurs:
[Fri Sep 23 16:18:14 2011] [Crit] The Apache is running a threaded MPM, but your the PHP Module is isn't compiled to be threadsafe. You are need to recompile PHP.
Pre-configuration failed [
Fri Sep 16:18:14] [notice] child 2452:released the start mutex
[Fri Sep 23 16:1 8:15] [notice] child 2452:all worker threads have exited.
[Fri Sep 23 16:18:15 2011] [Notice] Child 2452:child process is exiting
The version of PHP is inconsistent with your Apach version. Apache is not supported. Need to download and install PHP again. Download address: http://windows.php.net/download/
Download Note Select the type, for example:
VC6 x86 Non Thread Safe (2011-mar-22 13:28:39)
ZIP[9.97MB] sha1:30e2e65e90cec780a42d0b7e5fed5d42bf20eb4a INSTALLER[20.24MB] SHA1: 2145f6adf72ab5f9a067c52163c6b1c18c47eedd Debug PACK[4.94MB] sha1:771b2587ea0087aa01fcc47d438597e1ee46e5e4 VC6 x86 Thread Safe (2011-mar-22 13:29:30)
ZIP[10.06MB] sha1:23e1cf2f6e1bf64585ae921462340e5748fcc939 INSTALLER[20.41MB] SHA1: 710a69733aa280f22c86e8b868c51f5796f0a390 Debug PACK[4.99MB] sha1:027c38420ee21c049345b3baea149d083e558a4c-------- --------------------------------------------------------------the first class is thread-safe, the second class is threaded.
Httpd-2.2.21-win32-x86-no_ssl.msi installation OK.
The Httpd-2.2.21-win32-x86-openssl-0.9.8r.msi installation has reported the following errors, possibly due to SSL authentication issues.
Starting the Apache2.2 service the
Apache2.2 service is running.
] apache/2.2.21 (WIN32) configured--Resuming normal operations
[Fri SEP 15:45:03] [notice] Server built:sep
9 10:26:10 [
Fri Sep 15:45:03] [notice] parent:created child process 2452
[Fri Sep 23 15:45:03 201 1] [notice] child 2452:child process was running
[Fri Sep 15:45:03] [notice] child 2452:acquired the start Mu Tex.
[Fri Sep 23 15:45:03 2011] [Notice] Child 2452:starting threads worker.
[Fri Sep 23 15:45:03 2011] [Notice] Child 2452:starting thread to listen on port 80.