{"id":2759,"date":"2018-10-22T21:29:34","date_gmt":"2018-10-22T15:59:34","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=2759"},"modified":"2026-10-16T18:09:06","modified_gmt":"2026-10-16T12:39:06","slug":"how-to-install-and-configure-opencart-3-0-2-on-centos-7","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-install-and-configure-opencart-3-0-2-on-centos-7\/","title":{"rendered":"How to Install and Configure OpenCart on a Linux Server"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Post Date:<\/strong> October 19, 2018<br><strong>Last Updated:<\/strong> October 16, 2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.opencart.com\/\" data-type=\"link\" data-id=\"https:\/\/www.opencart.com\/\" target=\"_blank\" rel=\"noopener\">OpenCart<\/a> is an open-source e-commerce platform that allows businesses to create and manage online stores. It provides features such as product management, order processing, customer accounts, multiple payment options, multi-store support, and multilingual functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart is built using PHP and uses a database to store information about products, customers, orders, and store configuration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will cover the main steps involved in installing and configuring OpenCart on a Linux server using Apache, PHP, and a MySQL-compatible database.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The original tutorial uses OpenCart 3.0.2 and CentOS 7. Both are legacy technologies. CentOS Linux 7 reached end of life on June 30, 2024, and OpenCart 3.0.2 was released in 2018. For a new production deployment, choose a supported Linux distribution and an OpenCart release compatible with its current PHP and database requirements. The commands below use a modernized installation approach; verify package names and compatibility for your chosen versions before deployment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before installing OpenCart, ensure that you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A Linux server with root or sudo access.<\/li>\n\n\n\n<li>Apache HTTP Server installed or available through the package manager.<\/li>\n\n\n\n<li>A PHP version supported by your selected OpenCart release.<\/li>\n\n\n\n<li>MySQL or MariaDB configured for the selected OpenCart version.<\/li>\n\n\n\n<li>PHP extensions required by the application.<\/li>\n\n\n\n<li>A domain name or server IP address.<\/li>\n\n\n\n<li>A firewall configured to allow the necessary web traffic.<\/li>\n\n\n\n<li>A database name and dedicated database user for OpenCart.<\/li>\n\n\n\n<li>A valid TLS certificate for production deployments.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Update the Server Packages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Update the package index and installed packages using the appropriate commands for your distribution.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ubuntu or Debian:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt upgrade<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>RHEL, Rocky Linux, or AlmaLinux:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo dnf upgrade<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For new deployments, use a supported operating system and avoid relying on CentOS 7-specific repositories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Install Apache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Apache serves the OpenCart website to visitors.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ubuntu or Debian:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install apache2\nsudo systemctl enable --now apache2\nsudo systemctl status apache2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>RHEL-compatible distributions:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo dnf install httpd\nsudo systemctl enable --now httpd\nsudo systemctl status httpd<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If the service is running, configure the firewall to allow HTTP and HTTPS traffic as required.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Ubuntu systems using UFW:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo ufw allow 80\/tcp\nsudo ufw allow 443\/tcp<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For RHEL-compatible systems using firewalld:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo firewall-cmd --permanent --add-service=http\nsudo firewall-cmd --permanent --add-service=https\nsudo firewall-cmd --reload<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Also verify the cloud firewall or security group if the server is hosted on a cloud platform.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Install and Configure the Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Install a supported MySQL or MariaDB version according to the requirements of your chosen OpenCart release.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, on Ubuntu or Debian, a MariaDB installation can begin with:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install mariadb-server\nsudo systemctl enable --now mariadb\nsudo systemctl status mariadb<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For RHEL-compatible systems, install the appropriate database package from the configured repositories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After installation, secure the database installation according to the database server&#8217;s documentation. Then create a dedicated database and user for OpenCart.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the database server:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mariadb<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create the database and application user:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CREATE DATABASE opencart_db\n    CHARACTER SET utf8mb4\n    COLLATE utf8mb4_unicode_ci;\n\nCREATE USER 'opencart_user'@'localhost'\n    IDENTIFIED BY 'REPLACE_WITH_A_STRONG_PASSWORD';\n\nGRANT ALL PRIVILEGES ON opencart_db.*\n    TO 'opencart_user'@'localhost';\n\nFLUSH PRIVILEGES;\nEXIT;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace the example password with a unique, strong password. Store it securely and do not include it in publicly accessible files or source control.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Install PHP and Required Extensions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart requires PHP and several extensions for database access, image processing, and application functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The required PHP version and extensions depend on the OpenCart release. Check the official documentation for your chosen version before installing packages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For Ubuntu or Debian, a typical starting point might be:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install php php-cli php-mysql php-curl \\\n    php-gd php-mbstring php-xml php-zip php-intl<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">For RHEL-compatible distributions, install the corresponding PHP packages using DNF and the appropriate supported PHP repository.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check the installed PHP version:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php -v<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that the required extensions are loaded:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php -m<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Do not assume that the newest available PHP version is compatible with every OpenCart release. Select a supported combination of OpenCart, PHP, and database versions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Download and Extract OpenCart<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Download the release that you have verified is appropriate for your server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a temporary working directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir -p ~\/downloads\ncd ~\/downloads<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Download the selected release from the official OpenCart release source. For example, the original tutorial used OpenCart 3.0.2:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/github.com\/opencart\/opencart\/releases\/download\/3.0.2.0\/3.0.2.0-OpenCart.zip<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Security note:<\/strong> OpenCart 3.0.2 is an old release and should not be selected for a new production store simply because it appears in this example. Choose a maintained release, verify its integrity where checksums or signatures are available, and review its installation requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Extract the downloaded archive:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">unzip 3.0.2.0-OpenCart.zip<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The archive&#8217;s directory structure can vary by release. Inspect the extracted files before copying them to the web directory.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">find . -maxdepth 3 -type f | head -50<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the application&#8217;s upload or public web files according to the package documentation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Deploy the Application Files<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For an Apache installation on Ubuntu or Debian, the default document root is commonly <code>\/var\/www\/html<\/code>. On RHEL-compatible systems, it is commonly <code>\/var\/www\/html<\/code> as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a directory for the store:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mkdir -p \/var\/www\/html\/opencart<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Copy the correct application files from the extracted release into this directory. For example, if the release contains an <code>upload<\/code> directory:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo cp -a ~\/downloads\/upload\/. \/var\/www\/html\/opencart\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Use this example only if the extracted package actually contains the expected <code>upload<\/code> directory. Confirm the final file layout before continuing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set ownership and permissions appropriate to your Apache service account and the application&#8217;s documented writable directories.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On Ubuntu or Debian, Apache commonly runs as <code>www-data<\/code>. On RHEL-compatible systems, it commonly runs as <code>apache<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Avoid applying broad permissions such as <code>chmod -R 777<\/code> or making every application file writable by the web server. Only grant write access to directories that OpenCart explicitly requires to be writable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Configure the Apache Virtual Host<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Create a dedicated Apache virtual host configuration for the store.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Ubuntu or Debian:<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo nano \/etc\/apache2\/sites-available\/opencart.conf<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example configuration:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;VirtualHost *:80>\n    ServerName shop.example.com\n    DocumentRoot \/var\/www\/html\/opencart\n\n    &lt;Directory \/var\/www\/html\/opencart>\n        AllowOverride All\n        Require all granted\n    &lt;\/Directory>\n\n    ErrorLog ${APACHE_LOG_DIR}\/opencart-error.log\n    CustomLog ${APACHE_LOG_DIR}\/opencart-access.log combined\n&lt;\/VirtualHost><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>shop.example.com<\/code> with your actual domain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enable the site and required Apache rewrite module:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo a2enmod rewrite\nsudo a2ensite opencart.conf\nsudo apache2ctl configtest\nsudo systemctl reload apache2<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>RHEL-compatible distributions:<\/strong> Place the virtual host configuration in the appropriate Apache configuration directory, such as <code>\/etc\/httpd\/conf.d\/opencart.conf<\/code>, then validate and reload the service:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apachectl configtest\nsudo systemctl reload httpd<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Ensure that the application is deployed to the configured document root. If the selected OpenCart release specifies a different public directory, use that directory instead.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Complete the OpenCart Installation in a Browser<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Open your domain in a browser:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/shop.example.com<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">If DNS is not configured yet, you can use the server&#8217;s IP address for initial testing, provided the virtual host and network configuration allow it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the installation wizard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 1: License agreement<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Review and accept the license terms to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm.png\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"393\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm-1024x393.png\" alt=\"\" class=\"wp-image-12346\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm-1024x393.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm-300x115.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm-768x295.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.53-pm.png 1454w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 2: Server requirements<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The installer checks whether the server meets the required PHP version, extensions, file permissions, and configuration requirements. Resolve any reported errors before proceeding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm.png\"><img decoding=\"async\" width=\"1024\" height=\"428\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm-1024x428.png\" alt=\"\" class=\"wp-image-12348\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm-1024x428.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm-300x125.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm-768x321.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.02.58-pm.png 1418w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 3: Database configuration<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter the database details created earlier:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Database host: <code>localhost<\/code>, if the database is on the same server.<\/li>\n\n\n\n<li>Database name: <code>opencart_db<\/code>.<\/li>\n\n\n\n<li>Database username: <code>opencart_user<\/code>.<\/li>\n\n\n\n<li>Database password: The password configured for the application user.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Use the field names displayed by your particular OpenCart release.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 4: Administrator account<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Complete the administrator setup using the fields provided by the installer. Choose a unique administrator username and a strong password.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Step 5: Finish installation<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the installation completes, access the store&#8217;s administration interface using the URL specified by the installer or release documentation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Verify that both the storefront and the administration interface work correctly.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm.png\"><img decoding=\"async\" width=\"1024\" height=\"491\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm-1024x491.png\" alt=\"\" class=\"wp-image-12347\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm-1024x491.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm-300x144.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm-768x368.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.19-pm.png 1222w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"502\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm-1024x502.png\" alt=\"\" class=\"wp-image-12349\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm-1024x502.png 1024w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm-300x147.png 300w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm-768x376.png 768w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2018\/10\/Screenshot-2026-10-16-at-6.03.35-pm.png 1412w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 9: Apply Post-Installation Security Measures<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before making the store publicly available, complete the following checks:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Configure HTTPS using a valid TLS certificate.<\/li>\n\n\n\n<li>Verify that the storefront and administration interface use the correct domain.<\/li>\n\n\n\n<li>Remove installation files or directories as instructed by the OpenCart release documentation.<\/li>\n\n\n\n<li>Confirm that database credentials and configuration files are not publicly accessible.<\/li>\n\n\n\n<li>Restrict write permissions to only the required application directories.<\/li>\n\n\n\n<li>Change default or predictable administrator paths and credentials where supported by the selected release.<\/li>\n\n\n\n<li>Configure database and application backups and test restoration.<\/li>\n\n\n\n<li>Keep the operating system, PHP, OpenCart, extensions, and themes updated.<\/li>\n\n\n\n<li>Monitor Apache logs, application errors, and suspicious login attempts.<\/li>\n\n\n\n<li>Test checkout, payment integration, email delivery, and order creation before accepting real customer orders.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">For production stores, configure HTTPS before entering administrator credentials or processing customer information.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart provides a flexible platform for building and managing an online store. A successful deployment requires a compatible Linux environment, Apache, PHP, a supported database, correct application permissions, and a properly configured web server.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following the installation process and completing the recommended security checks, administrators can establish a more reliable foundation for an e-commerce application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For production use, select maintained software versions, protect database credentials, enable HTTPS, configure backups, and monitor the application regularly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. What is OpenCart?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart is an open-source e-commerce platform used to build and manage online stores, products, customers, orders, and payment integrations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Can OpenCart run on CentOS 7?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Older OpenCart releases were deployed on CentOS 7, but CentOS Linux 7 is now end of life. A supported operating system is recommended for new deployments.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. Which database does OpenCart use?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">OpenCart uses a MySQL-compatible database. The supported MySQL or MariaDB versions depend on the selected OpenCart release.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Why does the OpenCart installation wizard report missing PHP extensions?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The installed PHP environment may not include all the extensions required by the selected OpenCart release. Review the installer&#8217;s messages, install the appropriate extensions, and restart or reload the relevant PHP and web server services if necessary.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">5. Why can I not access my OpenCart website?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Common causes include incorrect DNS records, Apache configuration errors, firewall restrictions, missing application files, incorrect permissions, or PHP errors. Review the web server configuration and logs to identify the cause.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. How can I secure an OpenCart store?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Use supported software versions, HTTPS, strong administrator credentials, restricted file permissions, protected database credentials, regular backups, and timely security updates. Review third-party extensions carefully before installing them.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Can I migrate an existing OpenCart store to a newer version?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, but the process depends on the source and target versions, installed extensions, theme compatibility, and database schema. Back up the files and database, then test the migration in a staging environment before updating the production store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/force-http-to-https\/\">How to Force HTTPS on Your Website<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/redirect-http-to-https\/\">Redirect HTTP to HTTPS in Apache<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/what-is-an-ssl-certificate-and-how-does-it-work\/\">SSL\/TLS Configuration and Verification on Linux<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Need Help with OpenCart Installation and Configuration?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/\" data-type=\"link\" data-id=\"https:\/\/pheonixsolutions.com\/\">Pheonix Solutions<\/a> provides Linux server administration, web application deployment, database configuration, and infrastructure support. Our team can help install and configure OpenCart, troubleshoot server issues, and improve the security and reliability of your e-commerce environment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For assistance with your e-commerce infrastructure, contact our team through the <a href=\"https:\/\/pheonixsolutions.com\/contact\/\">Pheonix Solutions Contact Page<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Post Date: October 19, 2018Last Updated: October 16, 2026 Introduction OpenCart is an open-source e-commerce platform that allows businesses to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[278,456,457,454,179,455,273],"class_list":["post-2759","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-apache","tag-install-lamp","tag-install-opencart","tag-lamp","tag-mysql-2","tag-opencart","tag-php","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-Iv","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=2759"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2759\/revisions"}],"predecessor-version":[{"id":12401,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/2759\/revisions\/12401"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=2759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=2759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=2759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}