Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > PHP How-To
|
PHP How-To Post your "How do I do this with PHP?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the PHP How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 4th, 2005, 08:18 AM
Registered User
 
Join Date: Feb 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default run several php with separate ini on IIS6

How do I run multiple copies of php concurrently on IIS 6 (a.k.a Windows Server 2003) using separate php.ini files or put differently,
how to get multiple instances of PHP to use different php.ini files on IIS6?

I have been successful in getting both the 5.0.0 distribution version of PHP and the the 5.1.0 development version running at the same time (configured on different virtual servers). But no matter what I try I am unable to get them to use separate php.ini files, which is the whole point to begin with.

There is no php.ini file in the windows directory and there is a copy of the corresponding php.ini file in the directories for php50 and php51dev. I have also put different copies of php.ini at the root level of both virtual servers.

This does not work. Php simply defaults to c:\windows as the ini path (even though there is no file there) and uses default initialization values.
The php installation instructions state that PHP looks for php.ini in the working directory, in the path designated by the environment variable; PHPRC, and in the Windows directory. I seem to be unable to determine what the actual working directory is or if php is really looking there for the ini file in this order.


Any ideas how to get multiple instances of PHP to use different php.ini files?

thanks
Charlie
http://www.lupicas.com






Similar Threads
Thread Thread Starter Forum Replies Last Post
php.ini problem jun99 PHP How-To 0 January 22nd, 2006 04:10 PM
How to set up php.ini for sessions club662 BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 June 28th, 2005 12:35 PM
PHP.ini and session.save_path variable ukbrit BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 March 9th, 2005 03:12 AM
php.ini allang Beginning PHP 1 November 20th, 2003 09:09 PM
php.ini include_path error problem paddy PHP How-To 1 July 21st, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.