Ikool’s Blogbed

Tips on installing Zen Cart

Installing Zen Cart is a bit complicated than OSCommerce but still straightforward. You shouldn’t have any problems with setting it up by just following “1.readme_installation.html” included in the release. Here I’d like to write down how I set up Zen Cart with Apache Virtual host.

  1. Download Zen-Cart and unzip it into a directory wherever you like. It doesn’t have to be under apache’s htdocs
  2. Create a MySQL database and its corresponding DB account for your Zen Cart. If you have access to phpMyAdmin, then you can do a google/yahoo search on that. It should be pretty easy. Remember that you don’t have to use phpMyAdmin, you can always any other tools available to you such as MySQL client
  3. I am assuming you want to have a url like http://www.yourdomain.com instead of http://www.yourdomain.com/zencart or copy everything into apache’s htdocs, so let’s create an Apache virtual host, please make sure you enable and set up apache virtual hosts (do a search on this topic)

    For Windows (assume you install zen cart under c:\zen-cart-v1.3.8a-full-fileset-12112007):
    <Directory "C:/zen-cart-v1.3.8a-full-fileset-12112007">
    AllowOverride All
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    </Directory>

    <VirtualHost IP-ADDRESS:80>
    DocumentRoot C:/zen-cart-v1.3.8a-full-fileset-12112007
    ServerName http://www.YOURDOMAIN.com
    ErrorLog logs/
    www.YOURDOMAIN.com-error.log
    CustomLog logs/
    www.YOURDOMAIN.com-access.log common
    </VirtualHost>

    For Unix (assume you install zen cart under /etc/zen-cart-v1.3.8a-full-fileset-12112007):
    <Directory "/etc/zen-cart-v1.3.8a-full-fileset-12112007">
    AllowOverride All
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
    </Directory>

    <VirtualHost IP-ADDRESS:80>
    DocumentRoot /etc/zen-cart-v1.3.8a-full-fileset-12112007
    ServerName http://www.YOURDOMAIN.com
    ErrorLog logs/
    www.YOURDOMAIN.com-error.log
    CustomLog logs/
    www.YOURDOMAIN.com-access.log common
    </VirtualHost>

  4. Locate <ZEN_CART_INSTALL_DIR>/includes/dist-configure.php and rename it to configure.php and change the permissions to 777 for *nix
    Next, locate <ZEN_CART_INSTALL_DIR>/admin/includes/dist-configure.php and rename it to configure.php and change the permissions to 777 for *nix
    For any other information, please refer to 1.readme_installation.html
  5. Now let’s go to http://www.yourdomain.com, and read through the page. Click zc_install/index.php via your browser once you are ready. If you see any PHP CURL issues just skip it for now. You can fix it later.
  6. After done with installation make sure you set permissions of <ZEN_CART_INSTALL_DIR>/admin/includes/configure.php and <ZEN_CART_INSTALL_DIR>/includes/configure.php to  644. Or you will always have a warning message appearing on the top of your pages 😉
  7. Remove <ZEN_CART_INSTALL_DIR>/zc_install directory
  8. Now visit your new site at http://www.yourdomain.com

that’s it, your site should be up and running now

Advertisements

June 25, 2008 - Posted by | How Tos | , , , , ,

1 Comment »

  1. […] Go to the author’s original blog: Tips on installing Zen Cart […]

    Pingback by Tips on installing Zen Cart | June 26, 2008 | Reply


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

%d bloggers like this: