How to install OpenCart in XAMPP Windows 11


OpenCart is an open-source shopping cart solution. It is an online store management system. It was developed by OpenCart Ltd. and was initially released on April 2010 which is quite long time ago. So, this system is also on old one. To remain in the market for a very long time means that it is good. And for this tutorial, we are going to make a store or e-commerce website using OpenCart. Make sure to download first the given two files below before doing the listed tutorials.


Requirements:



Assuming that you already downloaded the files, do the steps below.


Table of Content


  • XAMPP installation on Windows 11
  • Running XAMPP Control Panel's Apache and MySQL
  • Copying OpenCart installer to HTDOCS folder
  • Creating OpenCart Database on XAMPP phpMyAdmin
  • OpenCart installation via Localhost or 127.0.0.1
  • Accessing OpenCart website home page
  • Accessing OpenCart website ADMIN account

Here are the steps on how to install OpenCart in XAMPP using your Windows pc


XAMPP installation on Windows 11


1. Go to the XAMPP file that you downloaded earlier. Double-click to open. If a Question about antivirus running appears, click YES.


xampp installation warning about antivirus

2. In the Warning about User Account Control, just click OK.


xampp installation warning about user account control windows

3. In the Setup - XAMPP, click on NEXT.


welcome to xampp setup wizard witn next button

4. In the Select Components, just click NEXT.


xampp installation select components

5. In the Installation folder, just leave it also and click NEXT.


xampp installation select a folder to install xampp

6. In Language, select English, click NEXT to proceed.


select language for xampp installation

7. You are now ready to install XAMPP, click NEXT to start.


xampp installation ready to begin

8. Wait for the unpacking and installation to finish.


xampp installation in progress unpacking files

9. When finished, just uncheck the "Do you want to start Control Panel now?" and press Finish to exit.


xampp installation finished

Running XAMPP Control Panel's Apache and MySQL


1. To run xampp, you can click the shortcut located in your desktop or go to Start and search for "xampp" and press ENTER.


search for xampp app windows

2. Inside XAMPP Control Panel, just click the Start buttons for Apache and MySQL.


start xampp apache mysql server

3. Apache and MySQL are both running now if you see two Stop buttons.


xampp apache mysql server are running

4. If you also see a Windows Security Alert, click on Allow access to exit.


allow access to xampp in windows defender firewall

Copying OpenCart installer to HTDOCS folder


1. Back to the OpenCart zip file that also downloaded earlier. Extract it and name your extracted folder as "opencart" for this tutorial. Make sure all the contents of the opencart folder is not inside a sub-folder. Copy your opencart folder. Now, go to Start and search for "this pc" and press ENTER.


search for this pc windows 11

2. Inside This PC, click your C drive.


windows 11 c drive

3. Inside C drive, click xampp.


xampp folder located in c drive windows 11

4. Now find and open htdocs folder.


htdocs folder located in xampp folder c drive windows 11

5. Inside htdocs, paste your opencart folder.


copying OpenCart installer inside xampp htdocs folder

Creating OpenCart Database on XAMPP phpMyAdmin


1. We are now going to create a database for OpenCart installation. Open your internet browser. In the address bar type in 127.0.0.1 and press ENTER.


accessing xampp localhost using chrome

2. Inside, click phpMyAdmin.


accessing xampp phpmyadmin

3. Click Databases inside phpMyAdmin.


phpmyadmin creating database for OpenCart

4. In the Create database, name your database as opencart_db for this tutorial. Leave utf8mb4_general_ci as it is and press Create.


naming and creating OpenCart database localhost

5. In the Create new table, name your table as opencart_table, leave 4 as the value for columns and press Create again.


naming and creating OpenCart database table localhost

6. In the Structure, name it as opencart and leave INT as the value of Type.


structure name OpenCart database localhost

7. For Collation, select utf8_unicode_ci and leave all the other fields as blank.


structure collation OpenCart database localhost

8. And save your work.


save OpenCart database structure localhost

OpenCart installation via Localhost or 127.0.0.1


1. To start the OpenCart website installation, open your internet browser. In the address bar, type 127.0.0.1/opencart/upload and press ENTER.


accessing opencart installation folder via xampp localhost using internet browser

2. In the License agreement, just click Continue.


opencart installation license agreement

3. In the Pre-installation, make sure the Status for all the PHP Settings are OK (green check) as well as for PHP extensions. If there is a GD error, then do the mini-tutorial below to fix it first.


How to fix GD error during OpenCart installation

  • Go to c:\xampp\php and find php.ini
  • Right-click open with Notepad
  • Find ";extension=gd"
  • From ;extension=gd change it to extension=gd
  • Save Notepad
  • Restart XAMPP
  • Restart OpenCart installation

opencart pre installation checks

4. If you also have Missing statuses regarding config.php, then, you also need to fix them first. Continue to the next step below.


opencart installation config php missing status

5. Go to This PC > C drive> xampp > htdocs > opencart > upload. Inside upload folder, find and rename config-dist.php as config.php.


rename config-dist.php inside opencart upload folder as config.php

6. Do the same for the config-dist.php file located inside the admin folder. Admin folder is inside your upload folder also. Rename it as config.php.


rename config-dist.php inside opencart upload admin folder as config.php

7. Restart your installation, your Statuses for both files should be Writable now. If so, click Continue to proceed.


opencart installation missing config.php file status fix

8. Now, in the Configuration for "Please enter your database connection details.", most of the fields are already ready. In the Database, type opencart_db (see image below). For Username, password and email, just enter your username as admin and type your desired password (do not forget your password), and also type your email address. Press Continue to proceed.


opencart installation configuration

9. And your OpenCart website installation is done. You will see the "Don't forget to delete your installation directory!" message.


opencart website installation done

10. Just go to This PC > C drive > xampp > htdocs > opencart > upload > install. Delete the install folder.


delete opencart install folder

Accessing OpenCart website home page


1. To open your OpenCart website homepage, just go to 127.0.0.1/opencart/upload.


sample opencart website homepage

Accessing OpenCart website ADMIN account


1. To open your admin account, go to 127.0.0.1/upload/admin. Enter your username and password and press Login.


sample login page opencart admin account

2. If the "Important Security Notification!" appears regarding Storage path, just press Move to proceed.


important security notification about storage path

3. If another notification appears, about "Rename admin directory" just rename your path. For this tutorial, I named it as "secret". When done, press Rename button to confirm.


rename admin directory opencart website

4. And you are now inside your OpenCart website administration page. You will see there options and settings that is only available to you as owner and admin of your website. You have there the Dashboard, Catalog, Extensions, Design, Sales, Customers, Marketing, System and Reports.


sample opencart administration page

I do hope you have learned a lot while doing this tutorial guys. If you have question, just leave a comment below. Thank you!

No comments:

123how.xyz only wants on-topic comment. Do not include any link, else your comment won't be published. Thanks!

Most Read Tutorials:

Powered by Blogger.