Writing PHP extensions for Windows–Installation on our Virtual Box test environment.

Installation Steps

    1. Install Windows XP Pro with IIS 5.1 on your Virtual Box.

1

  • Install FastCGI 1.5. Note, PHP under IIS requires FastCGI. This link provides details on what FastCGI is and how to install it.

 

2

  • Download PHP 5.4.28 source code and non thread safe. Unzip php-5.4.28-nts-Win32-VC9-x86.zip (the non thread safe binary) to C:\PHP on your Virtual Machine.
  • From the windows control panel proceed to administrative tools –> internet information server.  Set index.php as a default document.
  • From your root webfolder (C:\inetpub\wwwroot) create a file and call it index.php. Edit index.php to contain the following:
    <?php
        php_info();
    ?>
    
    
    
  • Open up your web browser and go to http://localhost. If PHP is configured correctly you will get this:

 

8

Your done, you have successfully installed a test environment.

Next, creating a compile environment for making a PHP extension.

Advertisements

2 thoughts on “Writing PHP extensions for Windows–Installation on our Virtual Box test environment.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s