Tutorial Difficulty: 3 / 3
Technical skills required.
In this tutorial, you will learn how to install CS-Cart on a virtual private or dedicated server that runs a *nix operating system and Apache.
1.1. Download the latest version of CS-Cart.
1.2. Connect to the your server via SSH.
Windows users have to download and install PuTTY or any other SSH client. See this guide if you want to learn about PuTTY.
If you use a *nix OS (for example, Linux, FreeBSD, Ubuntu, OS X, etc.), type the following command in the Terminal and press Enter. Don’t forget to replace username and host with your login details. If you don’t know your username and host, contact your hosting provider or server administrator.
Then you will be asked to enter your password. Type it and press Enter.
Your cursor won’t move and you won’t see any changes while you type your password. That is normal.
1.3. After you connect to the server, find out Apache document root. To do it, run one of the following commands (that depends on your Apache version):
cat /etc/httpd/conf/httpd.conf | grep "DocumentRoot"
cat /etc/apache2/httpd.conf | grep "DocumentRoot"
As you can see, in our case /var/www/html is the document root. In the picture we marked it in red.
2.1. Upload the cscart_v4.x.x.zip archive you downloaded into your document root (/var/www/html in the example; it may also be /var/www in some cases).
Connect to the server with your FTP server. You’ll need the name of the host, username, password and, in some cases, port. Contact your hosting provider or the server administrator for your FTP account details.
2.2. In the Terminal/SSH Client switch to the directory associated with your domain. I used this command:
Your command may look different if your document root is different.
2.3. Use the following command to see what’s inside the directory:
You should see the archive you uploaded, and any other files or directories you may have in your document root.
2.4. Unpack the archive:
In the example we have cscart_v4.3.4.zip. The name of your archive depends on the version of CS-Cart that you install.
3.1. Execute the following commands one by one:
chmod 644 config.local.php chmod -R 755 design images var find design -type f -print0 | xargs -0 chmod 644 find images -type f -print0 | xargs -0 chmod 644 find var -type f -print0 | xargs -0 chmod 644
These commands set the right permissions for the files, so that CS-Cart can install properly. The 3 digits represent the rights of the owner of the file/directory, the owner’s group, and other users respectively.
chmod 644 config.local.php
means that the owner of config.local.php can read the file and write to it (6); the group to which the owner belongs (e.g., administrators) can read the file (4); all other users can also read the file (4).
There are three types of things a user can do with a file: read, write and execute. The easy way to remember the numbers for the chmod command is this:
read = 4
write = 2
execute = 1
A sum of the numbers represents a user’s set of rights, for example read + write = 4 + 2 = 6
The types of rights for directories are the same. Read allows to get the list of the files and subdirectories; write allows to create, rename and delete files in the directory; execute allows to enter the directory and access files and directories inside.
4.1. Open phpMyAdmin in your browser. In our case the link to it is located in the Document Root and is accessible by http://xxxxxxxxxxx.net/myadm. Contact your hosting provider or server administrator for phpMyAdmin login and password.
If you open it for the first time, the credentials may be as follows:
|Password||The MySQL password; it is also the password you enter during the installation of phpMyAdmin. The default password may be mysql, root, password, or empty field.|
4.2. Switch to the Databases tab.
4.3. Enter the name of your database.
4.4. Press Create.
5.1. Open your store’s URL in a browser. You’ll see a message that CS-Cart is not installed. Let’s fix this by clicking the [install] link.
5.2. Read and accept the License Agreement in order to proceed.
5.3. Fill in the form using the details below:
|MySQL Server Host||Enter the DNS name or IP address of your MySQL server. Usually it’s localhost (because the database and the website are stored on the same server).|
|MySQL Database Name||Enter the name of the database you created in Step 4.4.|
|MySQL User||Enter the username from Step 4.1.|
|MySQL Password||Enter the password of the MySQL user.|
|Administrator’s Email||Enter your email here. CS-Cart will use it to notify you about new orders, call requests, and other important events in your store.|
|Administrator’s Password||Enter the password you will use to access the CS-Cart administration panel.|
|Main Language||English (or any language of your choice).|
Additional languages are available under the Advanced tab of Administration settings. You can enable or disable them now or later.
5.4. If this is your first time with CS-Cart and you want to see what your store will look like once you add the details about your products, fill your store with demo products, orders, and banners.
To do that, tick the Install demo data checkbox. You can always remove demo data later. We’d appreciate it if you helped us make CS-Cart better. Tick the Help us improve CS-Cart checkbox to send anonymous usage statistics.
5.5. After you press Install you’ll see the progress bar running. Please, don’t close the page during the installation. This is when CS-Cart settles in on your server and unpacks various themes and add-ons. Don’t worry, it won’t be long before your new store is good to go!
The next step is to choose your licensing mode. You have 3 options:
The Free Mode is not available in Multi-Vendor. Beginning with version 4.3.7, it was removed from CS-Cart as well. Once the trial period expires, enter your license number to continue managing your store.
Once you choose your licensing mode, your online store is all set! Now you can go to the Storefront to view your store, or to the Administration panel to manage it.