problem loading mod_php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Versions:  Windows 7, Apache 2.2.17, PHP 5.3.5

If I start httpd as a console app, everything works correctly. 
If I start as a
service, the php module fails 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.

Syntax error on line 689 of C:/Program Files (x86)/Apache Software
Foundation/Apache2.2/conf/httpd.conf:

Note that the line number doesn't correspond to the location of the
directive
in the conf file, and that the directive seems to be in the format the
message
is complaining about.

Primary Question:  Ok, how do I get mod_php to load.

Secondary Question:

(1) How can it NOT be a bug that apache will actually load a module
from it's root directory instead of an explicitly named external directory.




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux