Apache Module of PHP on WindowsXP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • php-newbe

    Apache Module of PHP on WindowsXP

    I have installed Apache2.2 (C:\Program Files\Apache Software
    Foundation\Apac he2.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\syst em

    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

    #2
    Re: Apache Module of PHP on WindowsXP

    php-newbe wrote:
    I have installed Apache2.2 (C:\Program Files\Apache Software
    Foundation\Apac he2.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

    Comment

    • php-newbe

      #3
      Re: Apache Module of PHP on WindowsXP


      Mladen Gogala wrote:
      php-newbe wrote:
      I have installed Apache2.2 (C:\Program Files\Apache Software
      Foundation\Apac he2.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.

      Comment

      • Loafer

        #4
        Re: Apache Module of PHP on WindowsXP

        On 27 Jul 2006 14:54:11 -0700, "php-newbe"
        <veraburenin@ve rizon.netwrote:
        >
        >Mladen Gogala wrote:
        >php-newbe wrote:
        I have installed Apache2.2 (C:\Program Files\Apache Software
        Foundation\Apac he2.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\php5apac he2.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.d ll 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

        Comment

        Working...