{"id":364,"date":"2018-10-17T09:34:05","date_gmt":"2018-10-17T09:34:05","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/install-magento-2-on-ubuntu\/"},"modified":"2018-10-17T09:59:10","modified_gmt":"2018-10-17T09:59:10","slug":"install-magento-2-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/install-magento-2-on-ubuntu\/","title":{"rendered":"Install Magento 2 on Ubuntu"},"content":{"rendered":"<p>E-commerce websites provide a platform for buyers and sellers and make online business easier than before. Ecommerce site can be developed with a variety of different types of web applications. Magento is a popular open source CMS to develop e-commerce website with numerous functionalities, security and minimum programming knowledge. This CMS is supported running on both Windows and Linux. How<\/p>\n<p>Magento 2.2.6<\/p>\n<p>can be installed on Ubuntu is shown in this tutorial.<\/p>\n<p>You have to update the system and confirm that the following packages are installed and working properly before starting Magento Installation steps.<\/p>\n<ul>\n<li>Apache2<\/li>\n<li>MySQL 5.6+ or MariaDB<\/li>\n<li>PHP 7+<\/li>\n<\/ul>\n<p>Run the following commands to update and check your system is ready to start the installation.<\/p>\n<p>$ sudo apt-get update<br \/>\n$ Apache2<br \/>\n$ PHP \u2013v<br \/>\n$ mysql<\/p>\n<p>If the following output appears then Apache, PHP and MySQL are installed.<\/p>\n<h2>Magento Installation Steps<\/h2>\n<h3>Step-1: Download Magento Installer<\/h3>\n<p>Go to the following URL address, select the latest version of Magento and click on DOWNLOAD button. Here \u2018Magento Open Source 2.2.6 tar.gz\u2019 is selected and downloaded.<\/p>\n<p><a href=\"https:\/\/magento.com\/tech-resources\/download\">https:\/\/magento.com\/tech-resources\/download<\/a><\/p>\n<p>You have to create an account in Magento site to download Magento. So, the following screen will appear before download. Create an account or login to your existing account to start the download process.<\/p>\n<h3>Step-2: Create folder and unzip Magento installer<\/h3>\n<p>By default, Magento will be downloaded on Downloads folder. Run the commands to create a folder named \u2018magento\u2019 under \/var\/www\/html folder and copy the downloaded Magento file on that folder.<\/p>\n<p>$ cd Downloads<br \/>\n$ ls<br \/>\n$ mkdir \/var\/www\/html\/magento<br \/>\n$ cp Magento-CE-2.2.6-2018-09-07-02-12-38.tar.gz \/var\/www\/html\/magento<\/p>\n<p>Go to magento folder and unzip Magento installer.<\/p>\n<p>$ cd \/var\/www\/html\/magento<br \/>\n$ ls<br \/>\n$ tar xzvf Magento-CE-2.2.6-2018-09-07-02-12-38.tar.gz \/var\/www\/html\/magento<\/p>\n<h3>Step-3: PHP Settings<\/h3>\n<p>You have to set permission to edit and save php.ini file.<\/p>\n<p><a href=\"http:\/\/www.php.net\/chmod\">chmod<\/a> 777 \/etc\/php\/7.1\/apache2\/php.ini<\/p>\n<p>Open php.ini file from the location \/etc\/php\/7.1\/apache2\/ and increase the memory limit and enable the following extensions.<\/p>\n<h3>Step-4: Database Setting<\/h3>\n<p>Login to MySQL server.<\/p>\n<p>Create a database, \u2018magento\u2019.<\/p>\n<h3>Step-5: Setting Necessary Permissions<\/h3>\n<p>Run the following commands to set the necessary permissions for magento folder and restart the apache server.<\/p>\n<p>$ sudo chown -R www-data:www-data \/var\/www\/html\/magento<br \/>\n$ sudo chmod -R \/var\/www\/html\/magento<br \/>\n$ sudo service apache2 restart<\/p>\n<h3>Step-6: Setup Magento<\/h3>\n<p>Open a browser and enter the following URL and click on Agree and Setup Magento button.<\/p>\n<p><a href=\"http:\/\/localhost\/magento\">http:\/\/localhost\/magento<\/a><\/p>\n<p>If any necessary PHP extension is missing then it will be displayed in this page. Here, two extension are missing or not working, soap and bcmath.<\/p>\n<p>Install the missing extensions.<\/p>\n<p>$ sudo apt-get install php-soap<br \/>\n$ sudo apt-get install php7.1-bcmath<\/p>\n<p>Again run the setup. If everything is ok then click on Next button. Fill up the following form with database hostname, username, password and database name. Click on Next button.<\/p>\n<p>Set the base URL of the store and admin in this step. Here, I have removed admin prefix for easy access.<\/p>\n<p>Next step is for customizing the store. Keep default settings and click on Next.<\/p>\n<p>Create admin account to login to the dashboard of admin panel and click Next.<\/p>\n<p>Click on Install Now button after completing all setup.<\/p>\n<p>If the installation completes successfully then the following screen will appear.<\/p>\n<h3>Step-7: Verify Magento is working or not<\/h3>\n<p>Run the following URL from the browser to test the store view is working or not.<\/p>\n<p><a href=\"http:\/\/localhost\/magento\">http:\/\/localhost\/magento<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/10\/1-12.png\" alt=\"\" width=\"1296\" height=\"581\" \/><\/p>\n<p>Run the following URL to login to Admin Panel. Provide the valid username and password that you have created in previous step.<\/p>\n<p><a href=\"http:\/\/localhost\/magento\/admin\">http:\/\/localhost\/magento\/admin<\/a><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/10\/2-10.png\" alt=\"\" width=\"849\" height=\"552\" \/><\/p>\n<p>The following admin panel will appear if Magento is installed and working properly.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/linuxhint.com\/wp-content\/uploads\/2018\/10\/3-11.png\" alt=\"\" width=\"1140\" height=\"558\" \/><\/p>\n<p>Hope, this tutorial will help you to learn and use Magento on Ubuntu.<\/p>\n<p><a href=\"https:\/\/linuxhint.com\/install_magento2_ubuntu\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>E-commerce websites provide a platform for buyers and sellers and make online business easier than before. Ecommerce site can be developed with a variety of different types of web applications. Magento is a popular open source CMS to develop e-commerce website with numerous functionalities, security and minimum programming knowledge. This CMS is supported running on &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/install-magento-2-on-ubuntu\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Magento 2 on Ubuntu&#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":[1],"tags":[],"class_list":["post-364","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/364","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=364"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions"}],"predecessor-version":[{"id":370,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/364\/revisions\/370"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=364"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=364"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=364"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}