Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How get Apache 2.2.15 service to start with PHP 5.3.2, Windows XP?

Avatar of murrayhome
murrayhome asked on
PHPApache Web Server
11 Comments1 Solution737 ViewsLast Modified:
On a localhost development configuration under Windows XP Pro (SP3), I cannot get Apache2.2.15  http service to start after I enable PHP 5.3.2 as a module.  Without PHP, Apache starts and works just fine; PHP itself works (from a command prompt).

I had had Apache 2.2.14 and an older PHP 5.2.x working happily together, supporting MySQL, phpMyAdmin, etc.  I uninstalled all that and instead:

(1) Installed Apache 2.2.15 from httpd-2.2.15-win32-x86-no_ssl.msi (also tried the openssl version when the former + PHP didn't work).  It's installed as a service for all users on port 80. And I'm running as Administrator. That worked just fine.

(2) Installed PHP 5.3.2 from php-5.3.2-Win32-VC6-x86.msi (thread safe version). As php.net says, with apache.org binaries, I used the VC6 version, not VC9.

Now the apache http service will not start. So of course I never got so far as to try a .php script in the browser.

When that failed, I uninstalled PHP and instead tried to use php-5.3.2-Win32-VC6-x86.zip and configure manually, starting with php.ini-development copied to php.ini and edited as below.

Of course I put the correct entries in Windows system environment variables PATH (starts with D:\Server\PHP\ext;D:\Server\PHP) and PHPRC (D:\Server\PHP).

File httpd.conf is what the Apache installer set up plus my edits in appropriate spots:
ServerName localhost:80
DocumentRoot "E:/htdocs"
<Directory "E:/htdocs">
LoadModule php5_module "D:/Server/PHP/php5apache2_2.dll"
PHPIniDir "D:/Server/PHP"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps

My edits to php.ini are:
extension_dir = "D:\Server\PHP\ext"
session.save_path = "E:\htdocs\tmp"
Above code snippet edited by quomodo re: http:#a33144943

I'm completely mystified as to what's wrong, but I'm beginning to believe there's a fundamental incompatibility between Apache 2.2.15 and PHP 5.3.2. Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of gheist
Commented:
This problem has been solved!
Unlock 1 Answer and 11 Comments.
See Answers