note 52530 added to install.windows

From: Date: Wed, 04 May 2005 20:21:13 +0000
Subject: note 52530 added to install.windows
Groups: php.notes 
Request: Send a blank email to php-notes+get-88938@lists.php.net to get a copy of this message
On the Windows 2003 & IIS6 platform, you can run different websites on different versions & copies of PHP. This is useful in at least two cases: 1. You want one website on your box to have register_globals on, but since you're running IIS, you cannot specify that in an .htaccess file. And you definately don't want register_globals on for the rest of the websites. 2. You want to run different versions of PHP for different websites, or even just different extensions. Say you wanted one site to use 4.0.5 and a different site to use 4.1.11. Its simple, just: 1. Move your php.ini file from your c:\windows\ directory directly to your php directory (by default that would be c:\php\) 2. Make sure you don't have a php.ini file in any other location that would supercede the c:\php\php.ini file. Using phpinfo(); is useful here. 3. Have your alternate version of php (either a different version or a different php.ini) have its own install directory, like c:\php4RG\ or c:\php405\. 4. In the Home Directory Configuration for your website, specify the .php extension to use a different script, pointing it at the alternate directory. ---- Manual Page -- http://www.php.net/manual/en/install.windows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52530 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52530&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52530&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52530&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52530&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52530&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52530&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88938) next »