OpenCart is a free, open-source shopping cart. You can install OpenCart using cPanel by just one click, which will be much easier than manually installing it. However, in this tutorial, we will show you how to manually install OpenCart into your server.
Before anything else, make sure your hosting meet the requirements listed below.
- PHP (at least 5.2)
- PHP Settings:
- Register Globals: Off
- Magic Quotes GPC: Off
- File Uploads: On
- Session Auto Start: Off
- Required PHP extensions:
- Database (MySQLi suggested)
- Curl enabled
Step 1. Download OpenCart from the OpenCart Downloads Page
Step 2. Create a MySQL database and assign a user to it. Assign the user ALL Privileges. The database information is needed for the installation process.
OpenCart does not allow special characters in the database password field, be sure to NOT use any special characters in the password, only letters and numbers.
Step 3. Extract the "opencart-x.x.x.x" zipped file. Use your FTP or SFTP client to upload the extracted folders and files in the folder "upload" to your hosting.
Make sure you have set the correct permissions on the opencart directories. For example, for Apache server, default user/group names are "apache".
To set the user/group permission in Linux, execute the command (Change the Path to match the location of the your store):
chown apache:apache /var/www/store-path/* -R
Step 4. Visit the store's home page use your browser.
Step 5. You are almost done! Follow the onscreen instructions. You'll need to fill in the database name, database username, and password. You'll also be setting up an adminstrator username and password as well.
Step 6. Delete the install directory after the installation is complete for security purposes