background preloader

PHP

Facebook Twitter

PHP/MySQL. Using FastCGI to Host PHP Applications on IIS 6.0. This article describes how to use the Microsoft® Internet Information Services (IIS) 6.0 FastCGI extension to set up and run PHP applications on Windows XP and Windows Server 2003 operating systems. What is FastCGI? FastCGI is a standard protocol that allows the Common Gateway Interface (CGI) executables in application frameworks to interface with the Web server.

It differs from the standard CGI protocol in that FastCGI reuses CGI processes for multiple requests, which provides a significant performance boost compared to CGI. IIS FastCGI support enables IIS to host common CGI programs such as PHP or Ruby on Rails by using the FastCGI protocol and, by doing so, offer high performance and stability for production deployment of such application frameworks. IIS FastCGI support involves the following items: The IIS Web server (FastCGI Extension Go Live release supports IIS 6.0) The IIS FastCGI extension The CGI program (such as Php-cgi.exe) Installing the FastCGI Extension for IIS 6.0 <?

PHP: Hypertext Preprocessor. Phpinfo. I wanted a simple *function* to convert the output of phpinfo into an array. Here's what I came up with thanks to alot of the previous authors tips, and the source file: php-5.2.6/ext/standard/info.c Call this function like phpinfo_array() prints the array, phpinfo_array(1) returns the array for your own processing. == Sample Output ==[PHP Configuration] => Array ( [PHP Version] => 5.2.6 [PHP Egg] => PHPE9568F34-D428-11d2-A769-00AA001ACF42 [System] => Linux askapache 2.6.22.19-grsec3 [Build Date] => Nov 11 2008 13:09:07 [Configure Command] => . /configure --prefix=/home/grsec/bin/php [Server API] => FastCGI [IPv6 Support] => enabled [Zend Egg] => PHPE9568F35-D428-11d2-A769-00AA001ACF42 [PHP Credits Egg] => PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000 ) [mbstring] => Array ( [mbstring.http_input] => pass [mbstring.internal_encoding] => Array ( [0] => ISO-8859-1 [1] => no value ) [mbstring.language] => neutral ) [mcrypt] => Array ( [Version] => 3.5.7 [Api No] => 20031217 ) <?

Problem with PHP install from Web Platform. How to install PHP 5.x on Windows Server 2003 with IIS 6. How to install PHP 5.x on Windows Server 2003 with IIS 6 A detailed and hopefully helpful step-by-step guide, based on my experience. Last updated 22:00 2008/02/08 GMT questions/props/corrections/etc... > Peter Guy (take out "TheGarbage" to email) flames > /dev/null ;-) 0. Notes before we start 0.1 This guide does not cover the initial setup of IIS, or general configuration of Windows Server 2003.

It is assumed that you have already successfully installed and configured Windows Server 2003 and setup IIS 6. 0.2 This guide is divided into 5 main steps: 1. install PHP (the easiest step, like having a baby is to raising a child) 2. If you have already done basic configuration of IIS6 on Windows Server 2003, and have an otherwise functional setup, then exactly following these steps should give you a fully-functioning installation of PHP. 0.4 No more Internet Guest Account permissions (almost) 1.2 Rename/copy php.ini-recommended to php.ini 3. <? Setting up PHP to work on Windows Server 2003. Setting up PHP to work on Windows Server 2003 The following things are pre-assumed: You are running Windows Server 2003 IIS 6.0 You have installed PHP ( to C:\PHP (installation issues are at the bottom of this page) You are using default (unmodified) ACLs/Permissions Update: Tom McDermid has brought to my attention that in the PHP 5 line, the EXE name is "php-cgi.exe" instead of "php.exe", so when installing PHP 5, remember to replace "php.exe" in this tutorial with "php-cgi.exe" Load IIS from the Administrative tools in the Control Panel by clicking Start -> Administrative Tools -> IIS Manager (or loading the Control Panel, entering the Administrative Tools folder, and double clicking IIS Manager).

Click the name of your computer then click "Web Service Extensions", on the left side of the main frame you will see a green arrow pointing to a link that says "Add a new Web service extension Click OK and OK and you should be set to run your PHP scripts Installation issues.