This guide installs OpenCart on a standard LAMP/LEMP stack.
Download the latest OpenCart release and extract it to your web root.
Rename the config files:
mv config-dist.php config.php
mv admin/config-dist.php admin/config.php
Make the system/storage and image directories writable as required by the installer.
sudo mysql -u root -p
CREATE DATABASE opencart_db CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
CREATE USER 'opencart_user'@'localhost' IDENTIFIED BY 'StrongPassword123!';
GRANT ALL PRIVILEGES ON opencart_db.* TO 'opencart_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Open http://example.com and follow the OpenCart web installer.
Delete the /install directory after setup.
Check the OpenCart installation guide or reach out via our contact page.