Skip to content

August 5, 2010

18

Opencart Basics – Installation

by Ian
Settings-icon

Opencart is one of the leading opensource ecommerce platforms available. It is simple, fast and easy to use whilst still being as full featured as a modern ecommerce platform is required to be. In this tutorial we will go through the installation process in the simplest manner.

You will need to have the following information to complete this tutorial:-

  1. A hosting account with PHP, MySQL.
  2. Your cPanel username and password.

Step #1: Download Opencart

Goto http://www.opencart.com/index.php?route=download/download and grab a copy the latest version of Opencart.

Step #2: Log in to CPanel

Log into your hosting site using the link to cPanel that your hosting company has sent you. Generally it will be something like www.yourwebsite.com/cpanel.

Step #3: Create Database

Now before we start uploading files and beginning the actual Opencart installation process we will need to create our MySQL database to store all of our Opencart information. Note that at this stage Opencart only supports MySQL as the data storage method.

Ok, so look for the database section in cPanel and click on the MySQL Databases application. Here we are we are prompted to choose to either create a database, create a user or add a user to a database. This may vary slightly between versions of cPanel but the basic options are the same. So, first of we need to create the database. We do this by entering the name of the database we would like to create.

Next we need to create a user and give them the permissions needed to install Opencart and work with the data. So create a user and give them a password (Be sure to write down the database name, user name and password for later). Once we have done this the last step is to grant the user we have just created access to the database and set their permissions. As a rule until you understand permissions better it is best to just give the user all permissions.

Step #4: Upload Opencart

Now that we have downloaded the Opencart packaged, create a database and created a user with the correct permissions to access our database we need to upload the Opencart zip file and begin the installation process.

There are two ways to accomplish uploading the Opencart package and the easiest way is to use the file manager application within the cPanel script. Once we open up the file manager application we need to navigate our way to the installation directory (folder) on our server that we want to install Opencart in. For simplicity we will say that our Opencart store is going to be installed in the root directory of our host (/home/user/public_html/ or similar).We need to goto the directory public_html/ and click on the upload file button.

Once there it is now time to upload the Opencart zip file that we downloaded in step 1. We do this by clicking on the browse button, selecting our file and uploading it.

Now we can see that in the public_html/ directory we have the Opencart zip file. To extract the file we simply select the file and click extract.

After the file has finished extracting we should be left with a few text files that contain install instructions, licenses and some technical jargon known as the changelog but also we should be left with a folder called Upload. What we need to do is click into the Upload directory and then select the contents (Select All button) and copy the content back into the public_html/ directory which we do by dragging those files over to the left had side folder (public_html/).

Step #5: Run Opencart Install

Now that we have created our databased and user, uploaded and extracted our Opencart zip file to the correct place on our server we can now run the Opencart install script. Remember you will need the name of the database you created as well as the username and password to access the database.

By opening a web browser and typing in the domain name of our shop such as www.myshopdomain.com we will be automatically taken to the start of the Opencart install script. Here we are presented with a license agreement that we need to agree to followed by an automated test of our hosting enviroment to make sure that our hosting package has all the basic requirements for Opencart to run. Most hosting packages should mee all the requirements but if you see that your hosting package does not meet the requirements you have two options. Either use another hosting company or contact your existing hosting company and ask if they can upgrade your hosting package to meet the minimum requirements of Opencart.

Now that we have met all the requirements and have clicked next we are presented with our settings page in which we will need to enter our database information and the name of our admin user, their password and email address.

Enter the database name, the database username and password that we created in Step 3. Finally type in the name of the admin user give them a password and type in the admin users email address and click next.

Step #6: Delete Install Directory

Before we log into our brand new Opencart store we need to make sure that we have deleted the install directory. We do this by using the same cPanel file manager application that we used previously and going to t=our install directory (public_html). From here we need to select and delete the public_html/install directory.

Step #7: Finish

That’s it! Congratulations! We have now successfully install our Opencart ecommerce shop. We can see what our store looks like by visiting our domain such as www.myshopdomain.com or we can log in and start running our shop by visiting www.myshopdomain.com/admin.

If you have any question about this posts or have seen something that we need to correct feel free to leave a comment.