{"id":11458,"date":"2024-02-26T03:53:36","date_gmt":"2024-02-26T03:53:36","guid":{"rendered":"https:\/\/myprojects.advchaweb.com\/?p=11458"},"modified":"2024-02-26T04:01:09","modified_gmt":"2024-02-26T04:01:09","slug":"openmage-install","status":"publish","type":"post","link":"https:\/\/myprojects.advchaweb.com\/index.php\/2024\/02\/26\/openmage-install\/","title":{"rendered":"OpenMage Install"},"content":{"rendered":"<p>INSTALL FROM COMPOSER<br \/>\nREAD: https:\/\/www.openmage.org\/magento-lts\/install.html<br \/>\nINSTALL THE LTS VIA COMPOSER<br \/>\nSTEP 1: COMPOSER INIT<\/p>\n<pre class=\"lang:default decode:true\">satria@teddy:~\/Documents\/projects$ mkdir openmage\r\nsatria@teddy:~\/Documents\/projects$ cd openmage\/\r\nsatria@teddy:~\/Documents\/projects\/openmage$ composer init\r\n\r\n                                            \r\n  Welcome to the Composer config generator  \r\n                                            \r\n\r\n\r\nThis command will guide you through creating your composer.json config.\r\n\r\nPackage name (&lt;vendor&gt;\/&lt;name&gt;) [satria\/openmage]: \r\nDescription []: \r\nAuthor [advcha &lt;advcha@yahoo.com&gt;, n to skip]: \r\nMinimum Stability []: \r\nPackage Type (e.g. library, project, metapackage, composer-plugin) []: \r\nLicense []: \r\n\r\nDefine your dependencies.\r\n\r\nWould you like to define your dependencies (require) interactively [yes]? \r\nSearch for a package: \r\nWould you like to define your dev dependencies (require-dev) interactively [yes]? \r\nSearch for a package: \r\nAdd PSR-4 autoload mapping? Maps namespace \"Satria\\Openmage\" to the entered relative path. [src\/, n to skip]: \r\n\r\n{\r\n    \"name\": \"satria\/openmage\",\r\n    \"autoload\": {\r\n        \"psr-4\": {\r\n            \"Satria\\\\Openmage\\\\\": \"src\/\"\r\n        }\r\n    },\r\n    \"authors\": [\r\n        {\r\n            \"name\": \"advcha\",\r\n            \"email\": \"advcha@yahoo.com\"\r\n        }\r\n    ],\r\n    \"require\": {}\r\n}\r\n\r\nDo you confirm generation [yes]? \r\nGenerating autoload files\r\nGenerated autoload files\r\nPSR-4 autoloading configured. Use \"namespace Satria\\Openmage;\" in src\/\r\nInclude the Composer autoloader with: require 'vendor\/autoload.php';<\/pre>\n<p>STEP 2: CONFIGURE COMPOSER<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/openmage$ composer config --json extra.enable-patching true\r\n\r\nsatria@teddy:~\/Documents\/projects\/openmage$ composer config extra.magento-core-package-type magento-source\r\n\r\nsatria@teddy:~\/Documents\/projects\/openmage$ composer config extra.magento-root-dir pub<\/pre>\n<p>STEP 3: INSTALL MAGENTO CORE FOR PHP7<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/openmage$ composer require \"aydin-hassan\/magento-core-composer-installer\":\"~2.0.0\"<\/pre>\n<p>STEP 4: INSTALL MAGENTO LTS 20<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/openmage$ composer require \"openmage\/magento-lts\":\"^20.0.0\"<\/pre>\n<p>&nbsp;<\/p>\n<p>CREATE LOCAL SETUP<\/p>\n<p>CREATE A CONF<\/p>\n<pre class=\"lang:default decode:true \">sudo gedit \/etc\/apache2\/sites-available\/openmage.test.conf<\/pre>\n<p>CONTENT<\/p>\n<pre class=\"lang:default decode:true \">&lt;VirtualHost openmage.test:80&gt;\r\n\tServerName www.openmage.test\r\n\tDocumentRoot \"\/home\/satria\/Documents\/projects\/openmage\/pub\"\r\n\tDirectoryIndex index.php\r\n\t&lt;Directory \"\/home\/satria\/Documents\/projects\/openmage\/pub\"&gt;\r\n\tAllowOverride All\r\n\tAllow from All\r\n\tRequire all granted\r\n\t&lt;\/Directory&gt;\r\n\tErrorLog \/var\/log\/apache2\/openmage.error.log\r\n\tCustomLog \/var\/log\/apache2\/openmage.access.log combined\r\n&lt;\/VirtualHost&gt;<\/pre>\n<p>ENABLE THE VIRTUALHOST<\/p>\n<pre class=\"lang:default decode:true \">sudo a2ensite openmage.test.conf<\/pre>\n<p>RELOAD APACHE2 SERVICE<\/p>\n<pre class=\"lang:default decode:true \">sudo systemctl reload apache2<\/pre>\n<p>CREATE THE HOST<\/p>\n<pre class=\"lang:default decode:true\">sudo gedit \/etc\/hosts\r\n\r\n127.0.0.1 openmage.test<\/pre>\n<p>RELOAD APACHE2 SERVICE AGAIN<\/p>\n<p>SET THE FILE PERMISSION<\/p>\n<pre class=\"lang:default decode:true \">satria@teddy:~\/Documents\/projects\/openmage$ sudo chmod -R 777 pub\/<\/pre>\n<p>OPEN: http:\/\/openmage.test\/<br \/>\nTHEN INSTALL<\/p>\n<p>http:\/\/openmage.test\/admin\/ OR http:\/\/openmage.test\/index.php\/admin\/<br \/>\nuser: admin<br \/>\npass: Teddy@123#333OK<\/p>\n<p>encryption key: 210818adaf08ed11ea441dede910e33b<\/p>\n","protected":false},"excerpt":{"rendered":"<p>INSTALL FROM COMPOSER READ: https:\/\/www.openmage.org\/magento-lts\/install.html INSTALL THE LTS VIA COMPOSER STEP 1: COMPOSER INIT 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 (&lt;vendor&gt;\/&lt;name&gt;) [satria\/openmage]: Description []: Author [advcha &lt;advcha@yahoo.com&gt;, n to skip]: Minimum Stability []: Package &hellip; <a href=\"https:\/\/myprojects.advchaweb.com\/index.php\/2024\/02\/26\/openmage-install\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;OpenMage Install&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-11458","post","type-post","status-publish","format-standard","hentry","category-magento"],"_links":{"self":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/comments?post=11458"}],"version-history":[{"count":3,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11458\/revisions"}],"predecessor-version":[{"id":12837,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/posts\/11458\/revisions\/12837"}],"wp:attachment":[{"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/media?parent=11458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/categories?post=11458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/myprojects.advchaweb.com\/index.php\/wp-json\/wp\/v2\/tags?post=11458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}