Introduction
OsCommerce is an open source based, online shopping / e-commerce solution available for free under the GNU General Public License. It features a rich set of online shopping cart functionality that allows owners to setup, run and maintain their online stores with minimum effort and with no costs, fees, or limitations involved.
For more details, see http://www.oscommerce.com/. In this section, we go through the steps required to install osCommerce to work with FastCGI extension on IIS 6.0 and IIS 7.0 and Windows Server® 2008. To find out more about FastCGI support in IIS, see this article.The following steps assume that you have completed the setup and configuration of FastCGI extension and PHP libraries as described in http://www.iis.net/fastcgi/phpon60.
Download and Unpack the Application
First, download the latest stable release of osCommerce. For this article, we use oscommerce-2.2ms2-060817 downloaded from this mirror site.Once you download the package, unzip it and copy the files in the “catalog” folder to “C:\Inetpub\wwwroot\oscommerce” folder. Set the permissions on the osCommerce/include/configure.php file to read, write and execute. If these permissions are not set correctly, you get an error message while telling you the permission setting on oscommerce/includes/configure.php is not set correctly.
Set Up the Database
Before starting the installation procedure for osCommerce, create a database on your server. Also create a user and grant this user db ownership permission to the database. Follow the instructions in the Setting Up a Database for a PHP Application on IIS article for a MySQL database. This walkthrough uses the following database information:
-
Database Name: 'oscommerce'
-
Database User: 'oscommerceuser'
-
Account Password: 'oscommerce'
Set Up and Configure the Application
We updated the php.ini file to add the php_mysql.dll module under the Dynamic Extensions section in the file and ensured that the extension directory points to the correct location:
extension_dir = "./ext"
extension=php_mysql.dll
1. Start the configuration procedure in a Web browser. Go to http://www.my-server.com/osCommerce/ (If the "Index.php" file is not in the browser default document, then add it). Browse to the http://localhost/cslh/setup.php page for detailed setup instructions.
2. Click Install link on the top of the page to redirect to the Install Wizard. OsCommerce automatically detects when the installation is finished, and redirects to the installation procedure when the installation has not yet been finished.The welcome page shows on the Web browser, and the configuration procedure can be started by clicking "Install a new online store".

3. The new installation directs to the screen below, which requires selecting installation options. Select both the options and click Continue.
New osCommerce installations must import the osCommerce database and configure it to the server.
4. Provide details for the osCommerce database created you have created. Select the session storage option. By default, it is a file. If you selected a file as session storage, create a “tmp” folder in the root directory like “c:\tmp” to store the session information. This folder creation does not stop installation, but it may cause an error message while accessing the application.

When a successful connection to the database server is made via the database configuration parameters provided, a success page opens.
5. Provide the information required for the HTTP cookies and click Continue to complete the installation.
The following message displays after a successful installation.
Post Installation
After installing osCommerce, follow these steps to make your application secure and functional.
-
Rename the osCommerce/install folder or delete it.
-
Reset the permissions on osCommerce/includes/configure.php read and execute.
-
Set the permissions on osCommerce/images directory to read, write and execute.
-
Set the permissions on admin/images/graphs directory to read, write and execute.
- Create the directory admin/backups and set the permissions to read, write and execute (this is the folder in which to save the database backup of your store in the "Tools" section of the store admin).
Test osCommerce
To test that osCommerce installed successfully, try to chat with an operator to obtain support. Follow these steps:
1. Navigate to http://localhost/oscommerce/index.php.

Shop by selecting the items available in the left panel.

Getting More Information
To discuss the FastCGI Extension for IIS 6.0, or file bug reports, use the FastCGI forums:
To get more information regarding running various PHP applications on IIS, refer to
Comments