You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2011/03/10 01:30:56 UTC

DO NOT REPLY [Bug 50907] New: can't load php module

https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

           Summary: can't load php module
           Product: Apache httpd-2
           Version: 2.2.17
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: ddyer-apache@real-me.net


If I start httpd as a console, everything works correctly.  If I start as a
service, the php module fauls to load.  Messages and actual behavior suggest
that the path is being treated strangely. 

Here are the relevant lines from httpd.conf

PHPINIDir "c:\program files (x86)\php\"
LoadModule php5_module "c:\program files (x86)\php\php5apache2_2.dll"

the error message when started as a service is:
httpd.exe: Syntax error on line 690 of C:/Program Files (x86)/Apache Software
Foundation/Apache2.2/conf/httpd.conf: Cannot load C:/Program Files (x86)/Apache
Software Foundation/Apache2.2/php5apache2_2.dll into server: The specified
module could not be found.  

Note that the path in the message is to the apache root, not the path in the
config file.  And, if I put a copy of php5apache2_2.dll in the place designated
by the error message, it changes and the error becomes a complaint about the
syntax of the PHPINIDir line.

As I said, this works if apache is started as a console application, and it
used to work with an earlier version of apache.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

--- Comment #4 from ddyer <dd...@real-me.net> 2011-03-10 13:50:27 EST ---
Good guess, but no cigar.  Some interesting bits to report, though.
There's a direct dependent of php5apache2_2.dll called php5ts.dll

The "console mode start" process, which works, finds both this an a bunch of
unreported dependents stored in the php\ext directory.  I monitored this
with procmon.

The "service mode" start option, which doesn't work and is the subject
of this discussion, never looks for either (according to procmon).  But,
if I place a copy of php5apache2_2.dll in the apache root directory, then
that copy is loaded, AND php5ts.dll is loaded FROM THE PHP DIRECTORY.
So apparently the loadmodule process is making some progress.  However
the rest of the process (all the sub dlls in ext) are not loaded, and
the complaint in the log becomes this:


Syntax error on line 689 of C:/Program Files (x86)/Apache Software
Foundation/Apache2.2/conf/httpd.conf:
PHPINIDir takes one argument, Directory containing the php.ini file

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

William A. Rowe Jr. <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #7 from William A. Rowe Jr. <wr...@apache.org> 2011-03-10 17:32:34 EST ---
mod_php is not an ASF project, you need to take this to them, or confer with
fellow users who have had to debug the very same problem.  I'm not giving you
the answer because *bugzilla is not a support forum* but your server is not
configured correctly, and mod_php is not an ASF project, and this incident
is closed.

Reread my post, the flamethrower was absolutely peace bonded, I told you
precisely where you could go to find assistance and answers.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

--- Comment #3 from Eric Covener <co...@gmail.com> 2011-03-10 09:44:05 EST ---
IIRC "specified module cannot be found" can also mean any transitive dependency
of the one you're trying to load.  Look at your php lib in "dependency walker"
and ensure everything else is in your search path.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

--- Comment #6 from ddyer <dd...@real-me.net> 2011-03-10 17:07:41 EST ---
(In reply to comment #5)
> Bugzilla is not a support forum, take this to the users@ list.  While you are
> at it, search the users@httpd.apache.org mailing list archives, you'll find
> this question is comprehensively answered about twice a year.

Been there, done that.  I've seen threads about basic PHP configuration which
advise doing exactly what I'm doing.  If you read this complaint and subsequent
conversation with your framethrower off, I think you'll see that it's hard to
see how the behavior I'm reporting is NOT a bug.  Ie; apache starts as a
console but not as a service.  apache loads a DLL from its root directory even
though that directory is not mentioned anywhere.  Apache issues an incoherent
complaint about the format of a directive that looks like it doesn't apply to
the actual contents of the directive.  Also (not previously mentioned) the line
numbers given for in the error report don't correspond to the lines of the
httpd.conf that contain the directives in question.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

--- Comment #2 from ddyer <dd...@real-me.net> 2011-03-10 05:23:57 EST ---
(In reply to comment #1)
> Have you tried with / instead of \ in the path?

Yes, that was the original configuration. The \ were a random
flail to see what changes.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
         OS/Version|                            |All

--- Comment #1 from Ruediger Pluem <rp...@apache.org> 2011-03-10 02:49:14 EST ---
Have you tried with / instead of \ in the path?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

William A. Rowe Jr. <wr...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #5 from William A. Rowe Jr. <wr...@apache.org> 2011-03-10 16:55:23 EST ---
Bugzilla is not a support forum, take this to the users@ list.  While you are
at it, search the users@httpd.apache.org mailing list archives, you'll find
this question is comprehensively answered about twice a year.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 50907] can't load php module

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50907

ddyer <dd...@real-me.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org