da******@gmail.com wrote in news:1161214995.087958.318360
@k70g2000cwa.googlegroups.com:
I installed Apache 2.2.3 per the instructions in the book I'm reading
'AJAX and PHP' by Darie et al. After installation, I confirmed that the
server was working. I then installed MySQL and PHP. After configuring
the system per the book's instructions, I now find that the Apache
server won't start.
How do I start to troubleshoot this problem? I haven't a clue at this
point. Any help would be greatly appreciated.
TIA,
David
I had the same problem the other day. I had PHP 5 and Apache 2.0
installed and upgraded to Apache 2.2.3 and it didn't work.
The problem is with Apache; they changed their API and that broke PHP,
at least on Windows XP.
Solution:
Go to
http://snaps.php.net and download the latest PHP development
snapshot. It is stable (or so they say), but isn't the normal download.
Inside is a different version of the PHP dll needed to link PHP to
Apache. It is now php5apache2_2.dll.
1) Make sure php5ts.dll is in the Apache\bin folder
2) You MAY (or may not--I did) need to add the following line to Apache's
httpd.config file: Win32DisableAcceptEx (Apache runs at 100% CPU without
it on my system).
3) Make sure you set up your php.ini file per PHP's install.txt
instructions
4) Add the following lines to httpd.config (per PHP install.txt
instructions):
LoadModule php5_module "C:/directoryPHPIsIn/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/directoryPHPIsIn/"
AddType application/x-httpd-php-source .phps
That SHOULD get it to work. If not, let me know.