Connecting Tech Pros Worldwide Forums | Help | Site Map

Apache Module of PHP on WindowsXP

php-newbe
Guest
 
Posts: n/a
#1: Jul 27 '06
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
following:
Renamed the file php.ini-recommended to php.ini and moved it in
c:\windows\
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!


Mladen Gogala
Guest
 
Posts: n/a
#2: Jul 27 '06

re: Apache Module of PHP on WindowsXP


php-newbe wrote:
Quote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apache2.2) and it works..
Then I have installed php5 (c:\php)

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
http://www.mgogala.com
php-newbe
Guest
 
Posts: n/a
#3: Jul 27 '06

re: Apache Module of PHP on WindowsXP



Mladen Gogala wrote:
Quote:
php-newbe wrote:
Quote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apache2.2) and it works..
Then I have installed php5 (c:\php)
>
>
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
http://www.mgogala.com
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.
THanks,
Vera
P.S. I loved you web site.

Loafer
Guest
 
Posts: n/a
#4: Aug 25 '06

re: Apache Module of PHP on WindowsXP


On 27 Jul 2006 14:54:11 -0700, "php-newbe"
<veraburenin@verizon.netwrote:
Quote:
>
>Mladen Gogala wrote:
Quote:
>php-newbe wrote:
Quote:
I have installed Apache2.2 (C:\Program Files\Apache Software
Foundation\Apache2.2) and it works..
Then I have installed php5 (c:\php)
>>
>>
>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
>http://www.mgogala.com
>
>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.
>THanks,
>Vera
>P.S. I loved you web site.
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
--
Roger

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

Closed Thread