INSTALL FROM COMPOSER
READ: https://www.openmage.org/magento-lts/install.html
INSTALL THE LTS VIA COMPOSER
STEP 1: COMPOSER INIT
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
satria@teddy:~/Documents/projects$ mkdir openmage satria@teddy:~/Documents/projects$ cd openmage/ satria@teddy:~/Documents/projects/openmage$ composer init Welcome to the Composer config generator This command will guide you through creating your composer.json config. Package name (<vendor>/<name>) [satria/openmage]: Description []: Author [advcha <advcha@yahoo.com>, n to skip]: Minimum Stability []: Package Type (e.g. library, project, metapackage, composer-plugin) []: License []: Define your dependencies. Would you like to define your dependencies (require) interactively [yes]? Search for a package: Would you like to define your dev dependencies (require-dev) interactively [yes]? Search for a package: Add PSR-4 autoload mapping? Maps namespace "Satria\Openmage" to the entered relative path. [src/, n to skip]: { "name": "satria/openmage", "autoload": { "psr-4": { "Satria\\Openmage\\": "src/" } }, "authors": [ { "name": "advcha", "email": "advcha@yahoo.com" } ], "require": {} } Do you confirm generation [yes]? Generating autoload files Generated autoload files PSR-4 autoloading configured. Use "namespace Satria\Openmage;" in src/ Include the Composer autoloader with: require 'vendor/autoload.php'; |
STEP 2: CONFIGURE COMPOSER
|
1 2 3 4 5 |
satria@teddy:~/Documents/projects/openmage$ composer config --json extra.enable-patching true satria@teddy:~/Documents/projects/openmage$ composer config extra.magento-core-package-type magento-source satria@teddy:~/Documents/projects/openmage$ composer config extra.magento-root-dir pub |
STEP 3: INSTALL MAGENTO CORE FOR PHP7
|
1 |
satria@teddy:~/Documents/projects/openmage$ composer require "aydin-hassan/magento-core-composer-installer":"~2.0.0" |
STEP 4: INSTALL MAGENTO LTS 20
|
1 |
satria@teddy:~/Documents/projects/openmage$ composer require "openmage/magento-lts":"^20.0.0" |
CREATE LOCAL SETUP
CREATE A CONF
|
1 |
sudo gedit /etc/apache2/sites-available/openmage.test.conf |
CONTENT
|
1 2 3 4 5 6 7 8 9 10 11 12 |
<VirtualHost openmage.test:80> ServerName www.openmage.test DocumentRoot "/home/satria/Documents/projects/openmage/pub" DirectoryIndex index.php <Directory "/home/satria/Documents/projects/openmage/pub"> AllowOverride All Allow from All Require all granted </Directory> ErrorLog /var/log/apache2/openmage.error.log CustomLog /var/log/apache2/openmage.access.log combined </VirtualHost> |
ENABLE THE VIRTUALHOST
|
1 |
sudo a2ensite openmage.test.conf |
RELOAD APACHE2 SERVICE
|
1 |
sudo systemctl reload apache2 |
CREATE THE HOST
|
1 2 3 |
sudo gedit /etc/hosts 127.0.0.1 openmage.test |
RELOAD APACHE2 SERVICE AGAIN
SET THE FILE PERMISSION
|
1 |
satria@teddy:~/Documents/projects/openmage$ sudo chmod -R 777 pub/ |
OPEN: http://openmage.test/
THEN INSTALL
http://openmage.test/admin/ OR http://openmage.test/index.php/admin/
user: admin
pass: Teddy@123#333OK
encryption key: 210818adaf08ed11ea441dede910e33b
