+ Reply to Thread
Results 1 to 5 of 5

Thread: php.ini path

  1. #1
    clareto is offline x10 Sophmore clareto is an unknown quantity at this point
    Join Date
    Oct 2005
    Posts
    125

    php.ini path

    I've just unzipped and installed php 5 in Apache2 and IIS 5 (C:\php).

    I couldn't realize why PHP was not accepting the changes I made in php.ini, so I did a phpinfo() file and one of the rows showed this

    Configuration File (php.ini) Path = C:\WINDOWS

    "C:\WINDOWS"??? I've unzipped this distribution before (the same .zip) and have always worked with the php.ini at C:\php. I dont want for php.ini to be in the windows directory!

    Does anybody know how to change this?

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: php.ini path

    In Apache...

    Installing as an Apache module

    You need to insert these two lines to your Apache httpd.conf
    configuration file to set up the PHP module for Apache 2.0:

    Example 2-6. PHP and Apache 2.0 as Module
    # For PHP 4 do something like this:
    LoadModule php4_module "c:/php/php4apache2.dll"
    # Don't forget to copy the php4apache2.dll file from the sapi directory!
    AddType application/x-httpd-php .php

    # For PHP 5 do something like this:
    LoadModule php5_module "c:/php/php5apache2.dll"
    AddType application/x-httpd-php .php

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

    Note: Remember to substitute your actual path to PHP for the
    c:/php/ in the above examples. Take care to use either
    php4apache2.dll or php5apache2.dll in your LoadModule directive and
    not php4apache.dll or php5apache.dll as the latter ones are
    designed to run with Apache 1.3.x.
    -Brandon, note: this is in Install.txt
    Last edited by Brandon; 08-11-2006 at 08:16 PM.
    Thanks,
    Brandon Long

  3. #3
    clareto is offline x10 Sophmore clareto is an unknown quantity at this point
    Join Date
    Oct 2005
    Posts
    125

    Re: php.ini path

    that's right, thank you!

  4. #4
    LiaoHua is offline x10Hosting Member LiaoHua is an unknown quantity at this point
    Join Date
    Apr 2006
    Posts
    3

    Re: php.ini path

    Normally an installer can automatically do this.
    Never unzip something, but install it.

  5. #5
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: php.ini path

    Quote Originally Posted by LiaoHua
    Normally an installer can automatically do this.
    Never unzip something, but install it.
    The PHP installer can only configure IIS, and the .zip package includes the extentions were the installer dosnt.
    Thanks,
    Brandon Long

+ Reply to Thread

Similar Threads

  1. Absolute path
    By Skyline GTR 1388 in forum Free Hosting
    Replies: 2
    Last Post: 05-31-2006, 04:35 PM
  2. PHP.ini error
    By dzigns in forum Free Hosting
    Replies: 2
    Last Post: 11-30-2005, 12:18 PM
  3. Absolute path to my site
    By tegames in forum Free Hosting
    Replies: 1
    Last Post: 10-01-2005, 04:22 AM
  4. Changing php.ini of server
    By funindia in forum Free Hosting
    Replies: 5
    Last Post: 07-26-2005, 08:27 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers