
OpenCart is a free and open-source online store management software based on PHP that manages multiple online stores from a single administrative dashboard with a modern, responsive interface. It has modules to manage inventory, orders, sales reports, discounts, payments, customers, marketing tools, and its functionality is extensible with professionally-written extensions and plugins. This article describes how to install OpenCart on Ubuntu 20.04 server.
SSH to your server as a non-root user with sudo access.
Update system package list to update all packages to the latest available versions.
The latest versions of OpenCart only support PHP version 8.0. Ubuntu 20.04 does not contain PHP 8.0 in its default repository list. To install it, add the PHP repository to the APT.
Add ppa:ondrej/php repository.
Update system package manager.
Install PHP 8.0 and more modules.
Enable Apache2 with PHP-FPM.
Restart Apache service.
Log in to MySQL shell. On password prompt, just press Enter to continue.
Crate a database called opencart.
Crate a user called opencart with a password StrongPassword.
Grant all database privileges to the user.
Save the changes.
Exit the shell.
Download the latest OpenCart version.
Unzip the downloaded file.
Create the installation directory /var/www/html/opencart.
Move the unzipped files to the installation directory.
Copy OpenCart configuration files.
Change ownership of the installation directory.
Change access permissions for the installation directory.
Create a new Apache virtual host file named opencart.conf.
Add the following code to the file. Save and close the file.
Disable Apache default configuration file.
Enable OpenCart Apache configuration file.
Enable Apache rewrite mode.
Restart Apache service.
To access the OpenCart Web Interface, go to your browser and visit http://Server_IP/. For example:
You have installed OpenCart on your server. Access the Installation Wizard screen to complete installation by connecting to the database you created, creating an administrator account and other settings. You can now access the Dashboard and configure it to begin managing your business.
To learn more about using OpenCart, go to the official documentation page.
0 Comments
Be the first to comment and share your perspective with the community.