php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51270 Apache cannot start
Submitted: 2010-03-11 02:30 UTC Modified: 2010-03-16 16:04 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: jamone_95134 at yahoo dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 5.3.2 OS: win32 only - Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jamone_95134 at yahoo dot com
New email:
PHP Version: OS:

 

 [2010-03-11 02:30 UTC] jamone_95134 at yahoo dot com
Description:
------------
php was installed and works correctly, php 5.3.2 thread safe VC6 version.


Apache version 2.2.15 with openssl. The Apache was installed and works. However, when I try to have Apache run and recognize the PHP, the Apache does not start and displays the following message:

httpd.exe - Application Error
The instruction at "0x00788ce1" referenced memory at "0x00000006". The memory could not be "read".

If I comment out the lines referring to the PHP in the httpd.conf file, then Apache starts with no problems.

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
#PHPIniDir "C:/Program Files/PHP/"
#LoadModule php5_module "C:/Program Files/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

If either line is mot commented, then the Apache crashes.

I have tried commenting out the different extensions in the php.ini file, but the problem exists.

Can someone please explain why this is crashing and what to do to fix it.

Expected result:
----------------
Apache to start up and recognize php scripting.

Actual result:
--------------
httpd.exe - Application Error
The instruction at "0x00788ce1" referenced memory at "0x00000006". The memory could not be "read".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-11 14:21 UTC] a at liveb dot ru
Have the same problem. apache doesn't work as a service. But works from console.

When I try to start the service I get an error.

szAppName : httpd.exe     szAppVer : 2.2.15.0     szModName : unknown     
szModVer : 0.0.0.0     offset : 0073d729
 [2010-03-11 15:13 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-03-11 15:13 UTC] pajoye@php.net
Remove php.ini in your systems or be sure to disable all extensions and try again.
 [2010-03-11 18:43 UTC] jamone_95134 at yahoo dot com
[2010-03-11 13:13 UTC] pajoye@php.net

Remove php.ini in your systems or be sure to disable all extensions and try again.

As I mentioned earlier, I disabled all the extensions in my php.ini, then enabling them one by one to see if any would allow the Apache to start, but the Apache crashed every time.

If I comment out the PHPIniDir line but not the LoadModule Apache still does not start, similarly if I comment out the LoadModule line but not the PHPIniDir, the Apache does not start. Apache only starts if both lines are commented out.
 [2010-03-11 21:09 UTC] jani@php.net
-Operating System: Windows XP SP3 +Operating System: win32 only
 [2010-03-12 11:39 UTC] pajoye@php.net
-Status: Open +Status: Feedback -Operating System: win32 only +Operating System: Windows XP SP3
 [2010-03-12 11:39 UTC] pajoye@php.net
Ok, which PHP version did you fetch (vc6/vc9) and which Apache version do you use (from apache.org or apachelounge.com)?

@Jani

Operating system is important and saying only "win32" is as useless as saying "linux".
 [2010-03-12 12:10 UTC] jamone_95134 at yahoo dot com
As stated before:

php was installed and works correctly, php 5.3.2 thread safe VC6
version.

Apache version 2.2.15 with openssl, downloaded from apache.org works correctly when the PHPIniDir and LoadModule lines are commented out of the httpd.conf file.

The OS is windows XP with SP3.
 [2010-03-12 23:59 UTC] jani@php.net
-Operating System: Windows XP SP3 +Operating System: win32 only - Windows XP SP3
 [2010-03-15 19:31 UTC] fcanova at uol dot com dot br
I have the same problem.

Apache 2.2.15 with openssl
PHP 5.3.2 win32 VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
Windows 7
 [2010-03-15 19:55 UTC] pajoye@php.net
-Status: Open +Status: Feedback
 [2010-03-15 19:55 UTC] pajoye@php.net
Please run php -m in CLI please and paste the output here.

Same with: php -i  and paste the output in a file and attach it here.
 [2010-03-16 15:50 UTC] fcanova at uol dot com dot br
When i run the php -m i received messages of dll's not found:

OCI.dll
c:\program files\php\ext\php_oci8.dll *
c:\program files\php\ext\php_oci8_11g.dll *
c:\program files\php\ext\php_pdo_oci.dll *

libcs.dll
c:\program files\php\ext\php_sybase_ct.dll *

* these dll's are in the directory c:\program files\php\ext\

after comment the lines in php.ini:

;[PHP_OCI8]
;extension=php_oci8.dll
;[PHP_OCI8_11G]
;extension=php_oci8_11g.dll

;[PHP_PDO_OCI]
;extension=php_pdo_oci.dll

;[PHP_SYBASE_CT]
;extension=php_sybase_ct.dll

the apache start normally again
 [2010-03-16 16:04 UTC] pajoye@php.net
-Status: Feedback +Status: Bogus
 [2010-03-16 16:04 UTC] pajoye@php.net
Please refer to the PHP documentation on how to configure correctly your PHP install (PATH or windows\system directories)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 01:01:28 2024 UTC