If you use a Windows operating system, compiling PHP is not as easy as in the Linux platform, you may have used PHP4 as a CGI. So how do I talk about how PHP5 is integrated into the PHP4 Apache server environment. 1. Download and install PHP5. http://www.php.net/downloads.php.2. Configure the APACHE server to handle the PHP5 script. 3. Put php.ini in other places. Now configure PHP5, modify the web server configuration, if you are running PHP4 as a CGI, then there should be the following three line instructions Scriptalias / php / "c: / php /" action applibility / x-httpd-php / php/php.exeaddtype Application / x-httpd-php .php The first line of Scriptalias maps the location of the PHP.EXE of the local file system to the URL. The second line action specifies the program that executes a PHP script. The third line tells Apache's file type of files that extends the name of the PHP extension. The Directory directive specifies the location of the PHP5 script. Define the execution program to /php5/php-cgi.exe, set the PHP environment variable phprc for C: / PHP5. PHP5 will find a php.ini profile in this directory to initialize the PHP's operating environment.
* Phpinidir (Apache 2 Module Only) is only used when PHP is used as an Apache module, does not support the CGI running PHP) * Registry key value: hkey_local_machine / Software / PHP / INIFILEPATH * environment variable:% phprc% * PHP5 Directory (for CLI), or the web server directory (for SAPI Modules) * Windows Directory (C: / Windows or C: / Winnt) These five scenarios, it is best to use PHPINIDIR when combined with Apache2, followed by using% phprc% Variables, additional, NTFS remember to open a PHP.INI to the server. Red this section taken from
Http://blog.chinaunix.net/Article.php?articleid=10748&blogid=2496 This link has a detailed PHP5 installation record. Finish