Author |
|
jeff00seattle
Joined: 17 Sep 2009 Posts: 9
|
Posted: Sat 19 Sep '09 8:23 Post subject: Apache 2.2 + PHP 5.3 on Windows 7 crashes on startup |
|
|
I have installed on Windows 7 both Apache 2.2.11 and PHP 5.3 Thread-Safe.
I am getting there following error when trying to start the Apache/2.2.11 (Win32):
Faulting application name: httpd.exe, version: 2.2.11.0
Faulting module name: php5ts.dll, version: 5.3.0.0
Has anybody else experienced this condition where it causes Apache to crash?
I experienced the exact same problem when tried a different approach by installing WampServer 2.0i: http: //www.wampserver.com/
Thanks
Jeff in Seattle
Last edited by jeff00seattle on Mon 21 Sep '09 17:12; edited 1 time in total |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 21 Sep '09 11:34 Post subject: |
|
|
Seems that PHP causes that error. Can you start apache without PHP? Which version of PHP did you download? VC9 or VC6?
Is there a reason why you don't use the latest version of apache? You downloaded apache from apache.org? |
|
Back to top |
|
jeff00seattle
Joined: 17 Sep 2009 Posts: 9
|
Posted: Mon 21 Sep '09 16:06 Post subject: |
|
|
1. Yes, I can start Apache without PHP.
2. I tried both the following ways, and both configurations had the same problem:
2.a. Apache 4 Windows 2.2.11 + PHP 5.3.0 Thread-Safe
2.b. Downloaded WampServer: http://www.wampserver.com/en/
3. No, there is no reason I downloaded the latest, but I will give it a try.
Jeff in Seattle |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 21 Sep '09 16:52 Post subject: |
|
|
Can you please post your php set up from httpd.conf? |
|
Back to top |
|
jeff00seattle
Joined: 17 Sep 2009 Posts: 9
|
Posted: Mon 21 Sep '09 17:22 Post subject: |
|
|
From httpd.conf in this order:
Code: | LoadModule php5_module "C:/PHP/php5apache2_2.dll"
<Directory "C:/PHP">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
AddType application/x-httpd-php .php
ScriptAlias /php/ "C:/PHP" |
Really appreciate this!
Jeff in Seattle |
|
Back to top |
|
jeff00seattle
Joined: 17 Sep 2009 Posts: 9
|
Posted: Mon 21 Sep '09 17:25 Post subject: |
|
|
Full application error log from Event Viewer is:
Code: | Faulting application name: httpd.exe, version: 2.2.11.0, time stamp: 0x493f5d44
Faulting module name: php5ts.dll, version: 5.3.0.0, time stamp: 0x4a4922e7
Exception code: 0xc0000005
Fault offset: 0x000e4e3d
Faulting process id: 0x2f70
Faulting application start time: 0x01ca3aceeb8682b7
Faulting application path: c:\wamp\bin\apache\apache2.2.11\bin\httpd.exe
Faulting module path: c:\wamp\bin\apache\apache2.2.11\bin\php5ts.dll
Report Id: 2ae02bd3-a6c2-11de-94cf-0011437c3d04 |
Jeff in Seattle |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 21 Sep '09 17:31 Post subject: |
|
|
PHP does not work with a script alias.
Code: |
PHPIniDir "c:/php"
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
|
Please test this. If this not works try to run PHP from the commandline e.g.
|
|
Back to top |
|
Maria
Joined: 03 Oct 2009 Posts: 1
|
Posted: Sat 03 Oct '09 14:18 Post subject: |
|
|
Great to know about the information of Windows 7 features with the help of your effective thread and so informative posts i come to read related the Windows capability......
Thanks alot!!
Maria Joseph |
|
Back to top |
|
benjam
Joined: 26 Oct 2009 Posts: 1 Location: Orion Arm
|
Posted: Mon 26 Oct '09 18:52 Post subject: |
|
|
I'm having a similar problem on Win XP SP3 with Apache 2.2.14 (from Apache Lounge) and PHP 5.3 (VC9 Thread Safe).
Here is my http.conf section, and I tried PHP from command line, and it appears to work just fine that way...
Code: |
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
PHPIniDir "C:/PHP/"
DirectoryIndex index.php
|
When I try to start Apache, it crashes. But it works fine with PHP 5.9, so it must be something with 5.3.[/code] |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Mon 26 Oct '09 21:05 Post subject: |
|
|
For some reason I don't know also the apache from apachelounge which is a VS9 build ran only with the VS6 build from PHP 5.3
As a workaround it was ok.
Than I deleted all files and started over with a fresh files on a fresh installed OS and than I as able to run the VS9 build from PHP 5.3 |
|
Back to top |
|
ssrini
Joined: 23 Dec 2009 Posts: 1
|
Posted: Wed 23 Dec '09 13:23 Post subject: |
|
|
Had the same problem on Windows 7 (apache latest from apache.org and php vc6 ts from php).
It happened to be an obscure error that while event viewer indicated php5ts.dll the real error was not there. My system was missing the dll ntwdblib.dll (SQL server also installed on the same m/c) and that was the error.
Google for ntwdblib.dll and you can download it .. copy it to your windows/system32 folder and voila Spache will run |
|
Back to top |
|
chambeer
Joined: 06 Jan 2010 Posts: 1
|
Posted: Wed 06 Jan '10 3:12 Post subject: |
|
|
just try this:
[PHP_SYBASE_CT]
extension=php_sybase_ct.dll
[PHP_MSSQL]
extension=php_mssql.dll
do that:
[PHP_SYBASE_CT]
;extension=php_sybase_ct.dll
[PHP_MSSQL]
;extension=php_mssql.dll
try to run |
|
Back to top |
|
sweeppicker
Joined: 28 Jul 2010 Posts: 2
|
Posted: Fri 30 Jul '10 4:34 Post subject: |
|
|
windows 7 creates bugs.
I'm facing the same problem and could not find the solution. |
|
Back to top |
|
dmazza
Joined: 16 Aug 2010 Posts: 1 Location: Sweden
|
Posted: Mon 16 Aug '10 9:23 Post subject: |
|
|
sweeppicker wrote: | windows 7 creates bugs.
I'm facing the same problem and could not find the solution. |
For me it seems it was the curl extension that was causing problems. When I removed it from the php.ini I got apache to start. The only workaround I've found for having php 5.3 and curl was to install Linux...
Hopefully there will be a curl extenstion that works for windows 7 fairly soon. |
|
Back to top |
|
homiesimpson@gmail.com
Joined: 21 Aug 2010 Posts: 1
|
Posted: Sat 21 Aug '10 9:59 Post subject: |
|
|
I commented out the two lines for postGres extension at the bottom of php.ini file and my apache started successfully:
Was:
[PHP_PGSQL]
extension=php_pgsql.dll
Changed to:
;[PHP_PGSQL]
;extension=php_pgsql.dll |
|
Back to top |
|
IceTheNet
Joined: 26 Jan 2011 Posts: 1 Location: denver
|
Posted: Wed 26 Jan '11 5:14 Post subject: curl not working in php on windows 7 cure |
|
|
I found the cure thought I would post it here.
I was searching the error logs and found it looking for extensions in c:/php5
I had another program running and looked at it's php.ini and found something interesting.
php.ini-development
php.ini-recomended
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
you need to set this to your current directory IE:
extension_dir = "C:\www\php\ext\"
It is sad that the makers of php can't manage to program this default better because they know that php extension dir is going to be "../ext" and most people don't really change that location so the default should be
much more user freindly.
just thought I would share there are many people complaining about curl not working in windows 7 and this is 99% of the problems out there just thought I would share. |
|
Back to top |
|
DeeFonz
Joined: 04 Feb 2011 Posts: 1
|
Posted: Fri 04 Feb '11 3:15 Post subject: |
|
|
homiesimpson@gmail.com wrote: | I commented out the two lines for postGres extension at the bottom of php.ini file and my apache started successfully:
Was:
[PHP_PGSQL]
extension=php_pgsql.dll
Changed to:
;[PHP_PGSQL]
;extension=php_pgsql.dll |
I had the same crashing issue with Windows+Apache2.2+PHP5.3 and commenting this extension got it working. Thanks Homie. |
|
Back to top |
|
jackiellowery
Joined: 22 Feb 2011 Posts: 1 Location: West Monroe, La
|
Posted: Tue 22 Feb '11 17:22 Post subject: |
|
|
DeeFonz wrote: | homiesimpson@gmail.com wrote: | I commented out the two lines for postGres extension at the bottom of php.ini file and my apache started successfully:
Was:
[PHP_PGSQL]
extension=php_pgsql.dll
Changed to:
;[PHP_PGSQL]
;extension=php_pgsql.dll |
I had the same crashing issue with Windows+Apache2.2+PHP5.3 and commenting this extension got it working. Thanks Homie. |
Instead of disabling php_pgsql i was able to get Apache to start by adding this to my httpd.conf:
LoadFile "C:/PHP/libpq.dll"
This is now my php section in my httpd.conf:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/PHP"
LoadFile "C:/PHP/libpq.dll"
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL |
|
Back to top |
|
billmask
Joined: 28 Feb 2011 Posts: 1
|
Posted: Mon 28 Feb '11 19:42 Post subject: PHP CRASHES IN WINDOWS 7 - Apache crash is only a symptom |
|
|
PHP CRASHES IN WINDOWS 7 - Apache crash is only a symptom |
|
Back to top |
|
brownie cookies9
Joined: 12 Jul 2011 Posts: 1
|
Posted: Tue 12 Jul '11 13:34 Post subject: |
|
|
I'm having a similar problem on Win XP SP3 with Apache 2.2.14 (from Apache Lounge) and PHP 5.3 (VC9 Thread Safe). and now i'm finally DONE! and can solve it thanks to your forum specialists.
Last edited by brownie cookies9 on Sun 28 Apr '13 8:35; edited 2 times in total |
|
Back to top |
|