Live stream set for 2025-04-27 at 14:00:00 Eastern
Ask questions in the live chat about any programming or lifestyle topic.
This livestream will be on Odysee or you can watch below.
Setup Magento In Two Ways
Learn how to install Magento Shopping Cart from the command line and graphically.
Magento is a free and open source PHP online store management system for creating, modifying and publishing website content. Online Stores require and SSL Certificate when handling sensitive data such as customer data or payment details. It is recommended to always use an SSL Certificate.
Magento has to be installed on a web server.
Download And Install Magento
Download
Magento can be downloaded from Magento. Then the downloaded file is extracted directly on the server or locally before individual files are uploaded if applicable.
HTTP Server
Magento requires an HTTP server such as NGINX or Apache HTTP Server in order to deliver web content over the internet. The HTTP server must include the server-side PHP programming language as an extension.
Search
Magento requires one of the following search engines.
For this tutorial, the search engines will be disabled.
Database
Magento requires one of the following databases and their applicable PHP extension.
The database can be managed on the command line or via phpMyAdmin which is a web-based database administration tool for MySQL and MariaDB.
Perform MySQL Database Requirements
CREATE DATABASE dbname; CREATE USER 'dbusername'@'localhost' IDENTIFIED BY 'dbpassword'; GRANT ALL PRIVILEGES ON dbname.* TO 'dbusername'@'localhost';
Setup Magento Disabling Elasticsearch and OpenSearch
php bin/magento setup:install \ --disable-modules=Magento_Elasticsearch8,Magento_Elasticsearch,Magento_OpenSearch \ --base-url="https://ojamboshow.local/magento2-2.4.8/" \ --db-host="hose" \ --db-name="dbname" \ --db-user="dbusername" \ --db-password="dbpassword" \ --admin-firstname="Edward" \ --admin-lastname="Ojambo" \ --admin-email="edward@ojamboshow.local" \ --admin-user="admin" \ --admin-password="admin123" \ --language="en_US" \ --currency="USD" \ --timezone="America/Chicago" \ --use-rewrites="1"
Optionally Install Demo Products
php bin/magento setup:upgrade php bin/magento sampledata:deploy




Open Source
The Magento Core software is released under the OSL 3.0 license. The copyleft license comes with strict rules and requirements to ensure the software remains free and open-source. Magentoâs Native Modules and the Classic theme are released under the Academic Free License (AFL) 3.0 license. The permissive license has conditions requiring preservation of copyright and license notices. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
Elasticsearch is licensed under the 3 Licenses. The proprietary Elastic License, the proprietary Server Side Public License (SSPL) and the open-source GNU Affero General Public License (AGPL). The AGPL copyleft license comes with strict rules and requirements to ensure the software remains free and open-source. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
OpenSearch is licensed under the Apache License version 2.0. The permissive license requires the preservation of the copyright notice and disclaimer. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The phpMyAdmin software is licensed under the terms of the GNU General Public License (GPL) version 2. The copyleft license comes with strict rules and requirements to ensure the software remains free and open-source. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The Apache HTTP Server is licensed under the Apache License version 2.0. The permissive license requires the preservation of the copyright notice and disclaimer. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The NGINX Web Server is licensed under the Nginx License which is 2-clause BSD-like. The permissive license requires the preservation of the copyright notice and disclaimer. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The MySQL Community Server is licensed under the GNU General Public License Version 2.0. The copyleft license comes with strict rules and requirements to ensure the software remains free and open-source. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The MariaDB Server is licensed under the GNU General Public License Version 2.0 and the client libraries for C, Java, and ODBC are distributed under the GNU Lesser General Public License, version 2.1 or later (LGPLv2.1). These copyleft licenses comes with strict rules and requirements to ensure the software remains free and open-source. It allows commercial use, modification, distribution, and allows making derivatives proprietary, consult the license for more specific details.
The PHP License is an open-source under which the PHP scripting language is released. The permissive license has conditions requiring preservation of copyright and license notices. Redistribution is permitted in source or binary form with or without modifications, consult the license for more specific details.
Conclusion:
Magento is easy to install once you meet all the requirements for the server and database. Install Magento Online Store using the command line or graphically using a web browser and phpMyAdmin.
If you enjoy this article, consider supporting me by purchasing one of my OjamboShop.com Online Programming Courses or publications at Edward Ojambo Programming Books or simply donate here Ojambo.com Donate
References:
- Customer Sets Price Plugin for WooCommerce on Ojambo.com
- Learning JavaScript Course on OjamboShop.com
- Learning Python Course on OjamboShop.com
- Learning PHP Course on OjamboShop.com
- Learning JavaScript Paperback on Amazon
- Learning JavaScript Ebook on Amazon
- Learning Python Ebook on Amazon
- Learning PHP Ebook on Amazon
- OjamboServices.com For Custom Websites, Applications & Tutorials