Sunday, May 17, 2009

Test your PHP 5 Installation






1- Open up your Windows Notepad. Type in “” inside the file. Save this file as “info.php” inside your Apache root directory, C:\Program Files\Apache Software Foundation\Apache2.2\htdocs .

2- Open up your web browser. In the address bar, type in your web server domain name plus info.php as the file name. Example: http://localhost/info.php


. You should get a PHP configuration page just like the one below.

Install and Configure PHP

Start by creating a directory into which you will extract the downloaded PHP files (php-5.1.4-Win32.zip). In this example I’m going to use C:\PHP as my installation directory.

Then extract the files from php-5.1.4-Win32.zip into C:\PHP
If you need to use the additional PECL modules then extract the files from ‘pecl-5.1.4-Win32.zip’ into the C:\PHP\ext directory.






Next locate the file ‘php.ini-recommended’ in C:\PHP and rename it to ‘php.ini’ (without the quotes of course



Open the ‘php.ini’ file and find the line which reads extension_dir = “./” and change it to extension_dir = “C:\PHP\ext”. This tells PHP where the various extensions are located and as you can see the default path in the ‘php.ini-recommended’ file which ships with PHP points to the wrong location, so you need to change it.


You also need to add the location of your PHP directory to the server’s PATH environment variable so that Windows knows where to look for any PHP related executables (such as the PHP extension DLL‘s).


To do this Right-click on My Computer, click Properties and on the Advanced tab click Environment Variables. In the Environment Variables dialog box, under System variables highlight the Path variable and clickEdit.

Add ‘ ;C:\PHP ’ (be sure to include the semi-colon separator) as shown here and click OK.





















Wednesday, January 21, 2009

php5configuration

1.1 IIS Installation

To install IIS web server, you have to make sure that you’re running Windows XP Professional and not the Home version, as it does not contain this component.

Step 1: Launch “Control Panel” and double click “Add or Remove Programs”.

clip_image002

Figure 1.1A

Step 2: Click on the “Add / Remove Windows Components”, and check “Internet Information Services (IIS)”, then click “Next”.

clip_image003

Figure 1.1B

Step 3: While Setup configures the component, it might prompt you for some required files. If so, please insert the “Windows XP Professional CD-ROM” into your CD-Rom drive and click “OK”.

clip_image004

Figure 1.1C

Step 4: You have successfully installed IIS.

clip_image005

PHPconfiguration

1 PHP5 installation for windows systems