Configuring Storefronts in CS-Cart via Plesk 9

We no longer maintain the Knowledge Base since version 4.3.x. All the latest user and developer documentation for 4.3.x and newer versions is now available at docs.cs-cart.com.

  • This article is available only for CS-Cart versions:
  • 3.0.x

Deploy CS-Cart Ultimate using domain names

In the example 2 storefronts will be created under 2 different domains:

  • example.com
  • example-store.com

Step 1. Binding domains

If you already have registered domains, they should be bound to your existing account. For example let's bind the example-store.com domain to example.com.

At first you need to change Name Servers at the example-store.com domain name registrar.

Go to the domain name registrar control page and replace the Name Servers with the ones currently associated with example.com.

In order to find out which Name Servers are currently associated with example.com do the following:

  1. Click on Domains in the Plesk control panel:

    If you manage several sites with Plesk 9, pick the one you're binding example-store.com to. In our case it is example.com.

    Click on the link:

  2. Click on the DNS Settings icon:

    You will see the current domain DNS settings page:

    Name Servers value is stored in the record of the NS type.

The store will be installed on example.com. The full path will look something like /var/www/vhosts/example.com. That is, the store is installed in the example.com Document Root.

Click on the Create Domain link:

Enter the new domain name (in our case example-store.com) in the Domain name field.

Fill out the rest of the field depending on the desired domain settings.

Click Finish.

It is now necessary to configure the new domain so its Document Root would link to example.com.

You will need root priveleged SSH access to do it.

Go to /var/www/vhosts/.

There you will see several folders including example.com and example-store.com. Enter the example-store.com/conf folder.

Create a file called vhost.conf with the following content:

ServerName   example-store.com:80
           SuexecUserGroup         example psacln # example - это группа, которой принадлежит example.com
           ServerAdmin  "admin@example-store.com"
           DocumentRoot /var/www/vhosts/example.com/httpdocs
           CustomLog  /var/www/vhosts/example-store.com/statistics/logs/access_log plesklog
           ErrorLog  /var/www/vhosts/example-store.com/statistics/logs/error_log

#       <IfModule mod_ssl.c>
#               SSLEngine off
#       </IfModule>
           <Directory /var/www/vhosts/example.com/httpdocs>
#       <IfModule mod_perl.c>
#       <Files ~ (\.pl$)>
#               SetHandler perl-script
#               PerlHandler ModPerl::Registry
#               Options ExecCGI
#               allow from all
#               PerlSendHeader On
#       </Files>
#       </IfModule>
           <IfModule sapi_apache2.c>
                   php_admin_flag engine on
                   php_admin_flag safe_mode off
                   php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/tmp"
           <IfModule mod_php5.c>
php_admin_flag engine on
                php_admin_flag safe_mode off
                php_admin_value open_basedir "/var/www/vhosts/example.com/httpdocs:/tmp"
#    <IfModule mod_fcgid.c>
#               <Files ~ (\.fcgi)>
#                       SetHandler fcgid-script
#                       Options +FollowSymLinks +ExecCGI
#               </Files>
#    </IfModule>
                Options -Includes +ExecCGI

If you use SSL, FastCGI etc., uncomment the respective values.

In order to apply the modifications and submit the data to Plesk you should restart the httpd service:

/usr/local/psa/admin/sbin/websrvmng -a
service httpd restart

The httpd service restart code above is valid for CentOS.

If you have a different OS, see the respective documentation for restarting web-server.

Step 2. Configure store

Create 2 storefronts with Storefront URLs example.com and example-store.com.

The process is described in detail on this page.


Go to example-store.com. You should see the storefront, which has example-store.com as its Storefront URL.

Home / Knowledge base / Installation / Configure Storefronts in Website Control Panel / Configuring Storefronts in CS-Cart via Plesk 9