CubeCart on IIS

by Eric Woersching

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 https://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 https://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

Follow these steps:

  1. Go to https://www.cubecart.com/build to generate the configuration setup script after creating the database for the project.
    Screenshot of CubeCart Manual Installation webpage.

  2. Click Continue to go to the next step.

    Screenshot of the CubeCart Manual Installation screen's Database Settings and Administrator Configurations Settings sections.

    Screenshot of the CubeCart Manual Installation screen's Skin and Advanced Settings sections.

  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

      Screenshot of the CubeCart Manual Installation screen's Database Settings details.

      Screenshot of the CubeCart Manual Installation screen's Skin and Advanced Settings sections with inserted information.

      It generates 2 files:

    • global.inc.php - Open includes/global.inc.php and paste in the code created for you.

    • db.sql - Execute the sql queries generated for you.

      Screenshot of the Cubeart Manual Installation screen, showing the global.inc.php code.

      Screenshot of the Cubeart Manual Installation screen, showing the db.sql code.

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

    Screenshot of the Permissions for Uploads dialog box with a highlight on a user name.

  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.

Screenshot of Welcome to CubeCart webpage.

Screenshot of CubeCart's Test Product webpage.

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: