What is OpenCart?
OpenCart is free software for running an online shop. A hacker is a person who tries to break into a website without permission. Shops hold customer details, so they are a favorite target.
Before you start
Some steps change files. A mistake can break your shop. Take a full backup first. A backup is a safe copy of your site that you can restore if something goes wrong.
Steps
- Update OpenCart. Old versions have known holes that hackers use. Check the OpenCart site for the newest version and follow its upgrade notes.
- Update your extensions and themes. An extension is an add-on that gives your shop a new feature. Remove any you no longer use.
- Rename the admin folder. By default, the control area of your shop sits in a folder called
admin. Rename it to something only you know. Then edit theconfig.phpfile in the main folder and theconfig.phpfile inside that renamed folder, so the paths match the new name. - Use a strong admin password. Make it long. Mix letters, numbers and symbols. Do not use it anywhere else.
- Move the storage folder. Newer OpenCart versions have a
storagefolder that holds logs and uploads. Move it above your public web folder, so nobody can open it from a browser. Then update the path in bothconfig.phpfiles. - Protect the config files. Using File Manager in your control panel, set both
config.phpfiles to permission444. Permissions decide who may read or change a file. 444 means read only. - Turn on SSL. SSL puts a padlock on your site and scrambles data between the visitor and your shop. Ask Hostvento support if you need help adding it.
- Delete the
installfolder if it is still there. Hackers can misuse it. - Check the admin log in the OpenCart dashboard now and then for logins you do not recognise.
Tip: Set a reminder to take a backup every week. Also keep a copy on your own computer.
Quick recap
- Back up before you change anything.
- Keep OpenCart, themes and extensions up to date.
- Rename the admin folder and use a strong password.
- Move the storage folder out of the public area.
- Make config files read only and use SSL.