OpenCart installation is the process of uploading and configuring OpenCart, an open-source e-commerce platform, on a web server; done correctly, it can be completed in 30–45 minutes even by users with limited technical knowledge. In this guide, we walk through the whole process step by step, from server requirements and database setup to admin panel configuration and the first security steps you should take.
What Is OpenCart? (Short Definition)
OpenCart is a free, open-source e-commerce management system developed in PHP. It lets users build an online store on their own hosting with a product catalogue, order management, payment integrations and multi-language/multi-currency support.
What You Need to Install OpenCart
Before you start, make sure the following requirements are met:
| Requirement | Minimum Version/Detail |
|---|---|
| PHP | 7.4 or higher (8.0+ recommended for OpenCart 4.x) |
| MySQL | 5.7 or higher (MariaDB 10.2+ also supported) |
| Web server | Apache or Nginx |
| PHP extensions | cURL, GD, Mcrypt/OpenSSL, Zip |
| Storage | At least 500 MB free space |
| Hosting access | FTP/SFTP or file manager, phpMyAdmin access |
Note: Most shared hosting providers (Natro, Turhost, Hostinger, etc.) meet these requirements; just check the PHP version in your hosting panel before you start.
Step 1: Download the OpenCart Files
- Download the latest version (as a ZIP file) from opencart.com.
- Extract the downloaded file on your computer. You’ll see a folder called
upload— the actual files to be uploaded to the server are inside it.
Step 2: Upload the Files to the Server
- Connect to your server with an FTP program (such as FileZilla) or your hosting panel’s file manager.
- Upload the contents of the
uploadfolder to your site’s root directory (public_htmlorwww). - If you want to use a subdirectory (e.g.
yoursite.com/shop), you can upload the files to that subfolder.
Step 3: Create a Database
- Go to phpMyAdmin or the “MySQL Databases” section in your hosting panel (cPanel, Plesk, etc.).
- Create a new database (e.g.
opencart_db). - Create a user with full privileges and assign it to this database.
- Note down the database name, username and password — you’ll need them in the installation wizard.
Step 4: Run the Installation Wizard
- Go to
yoursite.comin your browser. OpenCart automatically launches the installation wizard. - Accept the Licence Agreement screen.
- On the Pre-Installation Check screen, make sure all items are green (✓). If an item is red (e.g. a PHP extension is missing), contact your hosting provider.
- On the Configuration screen:
- Database driver: MySQLi
- Hostname: usually
localhost - Username, password and database name: the ones you created in Step 3
- Administrator email and password: you’ll use these to log in to the admin panel — choose a strong password
- Click the “Continue” button.
Step 5: Post-Installation Security Step (Critical)
When installation is complete, OpenCart asks you to: edit the config.php and admin/config.php files and delete the install folder. Don’t skip this step — if the install folder stays on the server, your site is exposed to a security vulnerability.
1. Connect to the server via FTP
2. Delete the /install folder completely
3. Set the permissions of config.php and admin/config.php
to 444 or 400 (disable write access)
Step 6: Log In to the Admin Panel and Initial Settings
- Go to
yoursite.com/admin(this is the default admin folder name; changing it is recommended for security). - Log in with the email and password you set during installation.
- Configure the store name, currency, language and time zone under Settings > Store.
- If you have an SSL certificate, enable “Force SSL” under Settings > Server.
Common Installation Errors
“Cannot connect to database” error: Usually caused by an incorrect username/password or database name. Double-check the database details in cPanel.
Red mark on the pre-installation screen: This means a PHP extension is missing. Ask your hosting provider to enable the relevant extension (usually cURL, GD or Zip) via php.ini.
“White screen” error: Usually caused by a low PHP memory limit. Set memory_limit to at least 256M in the php.ini file.
Frequently Asked Questions
How long does an OpenCart installation take? With suitable hosting and the database details ready, installation is usually completed within 30–45 minutes.
Is OpenCart installation free? Yes, OpenCart software is completely free and open source. The only things you pay for are hosting and any themes/extensions you purchase.
What type of hosting does OpenCart work with? It can run on shared hosting, VPS or cloud servers; shared hosting is usually sufficient for small and medium-sized stores.
What happens if I don’t delete the install folder after installation? Your site’s database details and configuration become accessible from outside, which is a serious security vulnerability — it should be deleted immediately after completing installation.