Apache Module of PHP on WindowsXP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apache2.2) and it works..
Then I have installed php5 (c:\php)

To configure Apache to use php as the Apache Module  I did the
Renamed the file php.ini-recommended to php.ini and moved it in
Copied file php5ts.dll and moved it to c:\windows\system

Added to httpd.conf file these three entry:
- - - - - - - - - - - -  - - - -- - - -
LoadModule php5_module "c:/php/php5apache2.dll"

# configure the path to php.ini
 PHPIniDir "C:/widnows/"

  AddType application/x-httpd-php .phtml .php

-         - - -- -  - - - -  -

As a result Apache doesn't parse  php
I tried to change the location of php.ini file several times but it
still doesn't work.
Please help,
 Thank you!

Re: Apache Module of PHP on WindowsXP

php-newbe wrote:
Quoted text here. Click to load it

Apache 2.2 doesn't work with supplied PHP5 dll objects. You must compile
the module from the source code or use Apache 2.0.54.

Mladen Gogala

Re: Apache Module of PHP on WindowsXP

Mladen Gogala wrote:
Quoted text here. Click to load it

Dear Mladen:

Thank you very much. I've installed the Apache 2.0.57 (it was avalable
as Legacy version)
but it still does not work.  would appreciate if you give me some
advice on what to do to make php work with Apache.
P.S. I loved you web site.

Re: Apache Module of PHP on WindowsXP

On 27 Jul 2006 14:54:11 -0700, "php-newbe"

Quoted text here. Click to load it

You have to add a line:

LoadModule php5_module c:\php\php5apache2.dll

in your httpd.conf file. It should work with Apache 2.0.57, but
there's a bug you need to work around in Apache 2.2.x if you
don't have the Microsoft Visual C++ compiler (as I don't). Get
the php5apache2_2.dll file from the current php 5.2 build and put
it in your c:\php directory, and modify the LoadModule line to
refer to it rather than php5apache2.dll

Posted via a free Usenet account from http://www.teranews.com

Site Timeline