CubeCart on IIS

By Eric Woersching

January 17, 2008

Introduction

CubeCart is a powerful eCommerce script written with PHP and MySQL. With CubeCart, you can setup a powerful online store with hosting that supports PHP and one MySQL database.

For more information about CubeCart, see http://www.cubecart.com.

In this section, we go through the steps required to install CubeCart to work with FastCGI extension on IIS 7.0 and above. To find out more about FastCGI support in IIS, see http://www.iis.net/fastcgi

The following steps assume that you have completed the setup and configuration of FastCGI extension and PHP libraries as described here http://www.iis.net/fastcgi/phpon60.

Download and Unpack the CubeCart

First you will need to download latest stable release of CubeCart application. For this article we used CubeCart_3.0.17 Full Package that can be downloaded from the mirror
https://www.cubecart.com/site/helpdesk/index.php?_m=downloads&_a=view&parentcategoryid=1&pcid=5&nav=0,5

Once you downloaded the package, uncompress it and copy files and folders to C:\Inetpub\wwwroot\cubecart.

Set Up the Database

Before starting the installation of CubeCart, create a database on your database 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: 'cubecart'
Database User: 'cubecart'
Account Password: 'cubecart'

Setup and Configuration

1. Go to https://www.cubecart.com/build to generate the configuration setup script after creating the database for the project.

2. Click Continue to go to the next step.

3. Provide the database details and click Continue. We used the following details for our application:
• Database Type: MySql
• Host Name: localhost
• Username: cubecartuser
• Password: cubecart
• Database: cubecart

It generates 2 files:
a. global.inc.php - Open includes/global.inc.php and paste in the code created for you.
b. db.sql - Execute the sql queries generated for you.

4. Give write access permissions to images/upload folder.

5. Delete the install folder from the directory before accessing the installed application.

Installation is complete. Access the application by browsing the index.php file using the path http://localhost/cubecart/index.php.


Getting More Information

To discuss the FastCGI Extension for IIS 6.0, or file bug reports, please use the FastCGI forums:

To get more information regarding running various PHP applications on IIS, refer to: