PHP_IIS 6.0 | PHP_Apache2 |TroubleShooting | Install Program Install PHP5x on Window Server 2003 IIS 6.0 1. Download (PHP
5.1.2 zip package) and install PHP STEP2 Rename/copy php.ini-recommended
to php.ini (C:\php) doc_root ="c:\Inetpub\wwwroot" Move php.ini to C:\Windows|Winnt\ System32
(system root directory) STEP3 Set up IIS so that IIS will serve PHP scripts. (PHP5 : php-cgi.exe , PHP4: php.exe) a. IIS->Web Service Extension ->Add web service extenstion-> Type in PHP and point to C:\php\php-cgi.exe b. IIS ->Default Website-> Properties->
Home Directory tab-> Configuration->
STEP4 Reboot webserver (click on rect button on IIS stop/restart) STEP5 Testing : <?php phpinfo(): ?> (phpinfo.php) |
Install PHP4 on Window Server 2003 with Apache STEP1 MOVE FOLLOWING FILE TO C:/APACHE2/ a .register_globals = On // global variable ON b. SMTP SERVER [mail function] For Win32 only. c. doc_root=C:/Apache2/htdocs STEP2 Running PHP as an Apache module (c:\Program Files\Apache group\Apache\conf\httpd.conf) LoadModule php4_module "c:/php/php4apache.dll" // after a series of comment loadmodule AddModule mod_php4.c //t specifies the order in which the various modules are enabled by the Apache server. AddType application/x-httpd-php .php //add
ext you wnt apache to recognise as php script Action application/x-httpd-php "/php/php.exe" //tell the server
to execute the PHP Enable PHP5 Add following line in .htaccess STEP3 <? phpinfo() ; ?> STEP4 1 Start Apache Server . /usr/local/apache2/bin/apachectl start Troubleshooting Installation ( more info) 1. Extract file (NOT DIR ) from Compressed Archive file |