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: Apache 2.2 + PHP 5.3 on Windows 7 crashes on startup |
Page Previous 1, 2 |
Author |
|
Chris56
Joined: 15 Jul 2011 Posts: 1
|
Posted: Fri 15 Jul '11 11:49 Post subject: |
|
|
Before starting these downloads and install , be sure to turn off UAC (User Access Control) in Vista. |
|
Back to top |
|
bladebrn
Joined: 30 Dec 2011 Posts: 1 Location: Canada, Ottawa
|
Posted: Fri 30 Dec '11 17:30 Post subject: |
|
|
On my Windows Vista system I had a similar problem with Apache failing to start once PHP was added. The Windows Event Log error was "Faulting application php.exe, version 5.2.17.17, time stamp 0x4d25fc25, faulting module php5ts.dll...".
It was this thread which allowed me to piece together the required fix.
There is a very comprehensive article on how to set Apache, PHP and MYSQL up from scratch so they all work together at: http://www.apachelounge.com/viewtopic.php?t=2394
Since I already had Apache and MYSQL running, I didn't want to go through all of that if it could be avoided.
There were two key items for me from all the above advice.- Get the thread-safe version of PHP
- Ensure you can run PHP from the Windows Command Line (php -m should work and produce a list of modules loaded).
The system is set up using the following original installer packages:
Apache: httpd-2.2.21-win32-x86-openssl-0.9.8r.msi
MYSQL: mysql-5.1.30-win32.zip
PHP: php-5.2.17-Win32-VC6-x86.msi
I made a mistake in selecting all of the PHP extensions to install, against the installer recommendation, but fixed it by editing PHP.INI and commenting out all but:
[PHP_MYSQLI]
extension=php_mysqli.dll
I didn't bother to find out which of the extensions was causing "php -m" to fail.
The httpd.conf entries are:
AddType application/x-httpd-php .php
PHPIniDir "C:/Program Files/PHP"
LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll" |
|
Back to top |
|
|
|
|
|
|