{"id":3357,"date":"2017-02-14T11:25:55","date_gmt":"2017-02-14T11:25:55","guid":{"rendered":"https:\/\/www.knowband.com\/blog\/?p=3357"},"modified":"2018-11-08T22:58:12","modified_gmt":"2018-11-08T12:28:12","slug":"how-to-install-magento-in-ubuntu","status":"publish","type":"post","link":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/","title":{"rendered":"How to Install Magento In Ubuntu?"},"content":{"rendered":"<p>Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition:<\/p>\n<ul>\n<li>Enterprise Edition ( Paid )<\/li>\n<li>Community Edition ( Unpaid )<\/li>\n<\/ul>\n<p>The tutorial runs you through the ways to install Magento on Ubuntu. Read on to know:<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3374 \" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png\" alt=\"picture1\" width=\"510\" height=\"257\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png 552w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265-300x151.png 300w\" sizes=\"auto, (max-width: 510px) 100vw, 510px\" \/><\/a><\/p>\n<h3>Prerequisites for installing Magento<\/h3>\n<p>Before we begin, there are few steps that are needed to be completed in order to install magento. These steps include :<\/p>\n<ul>\n<li>You will need at least 2 GB ram for installing magento on Virtual private server (VPS).<\/li>\n<li>You will need a LAMP(Linux, Apache, Mysql and PHP) stack installed on your VPS server.<\/li>\n<li>Now for installing it you need to first download magento, you can get a community edition version of magento online.<\/li>\n<\/ul>\n<h3>Getting Started<\/h3>\n<ul>\n<li>After complete download you will see a ZIP folder named mazento.zip on your downloads folder.<\/li>\n<li>Copy the Zip Folder to the path provided below :<\/li>\n<\/ul>\n<table style=\"height: 64px;\" width=\"400\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">\/var\/www\/html<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Extract the files here by right clicking on the zipped folder and then left clicking on the Extract here option.<\/li>\n<\/ul>\n<h3>Creating Database using PHPMyAdmin<\/h3>\n<p>For creating a database follow the steps provided below :<\/p>\n<ul>\n<li>Open a new tab of your browser and enter the following on the address bar :<\/li>\n<\/ul>\n<table style=\"height: 59px;\" width=\"416\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">localhost\/phpmyadmin\/<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Press enter you will see the login page of PHPMyAdmin. Enter the Username and Password and click on Go to login. The login page will look like this.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture2-6.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3373 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture2-6-e1487070926541.png\" alt=\"picture2\" width=\"568\" height=\"304\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture2-6-e1487070926541.png 568w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture2-6-e1487070926541-300x161.png 300w\" sizes=\"auto, (max-width: 568px) 100vw, 568px\" \/><\/a><\/p>\n<ul>\n<li>You will see phpmyadmin main page, click on database, you will see a create database option.<\/li>\n<li>Enter the name of database( say magento) and click on create option, your database will be created as shown below.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture3-4.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3372 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture3-4-e1487070963987.png\" alt=\"picture3\" width=\"566\" height=\"305\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture3-4-e1487070963987.png 566w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture3-4-e1487070963987-300x162.png 300w\" sizes=\"auto, (max-width: 566px) 100vw, 566px\" \/><\/a><\/p>\n<h3>Importing sample database on Your database<\/h3>\n<p>After successfully creating the database, you have to import the sample database on your database. Now for that you have to follow the below mentioned steps:<\/p>\n<ul>\n<li>Click the import option on phpmyadmin page.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture4-4.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3371 \" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture4-4-e1487070997309.png\" alt=\"picture4\" width=\"531\" height=\"286\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture4-4-e1487070997309.png 572w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture4-4-e1487070997309-300x162.png 300w\" sizes=\"auto, (max-width: 531px) 100vw, 531px\" \/><\/a><\/p>\n<ul>\n<li>Now click on the choose file to upload the sample database on your database.For uploading a file you have to note the following properties of the uploaded file:<\/li>\n<li>The maximum size of the file must be 2048 kb.<\/li>\n<li>The format of the file must be .sql format.<\/li>\n<li>The type of compression used to compress large files must be .zip<\/li>\n<li>Now click on Go option and your file containing sample database will be uploaded on your database.You will see that the files are uploaded on your database.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture5-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3370\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture5-1-e1487071112879.png\" alt=\"picture5\" width=\"525\" height=\"285\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture5-1-e1487071112879.png 565w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture5-1-e1487071112879-300x163.png 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/a><\/p>\n<h3>Triggering magento setup file<\/h3>\n<p>Now all you have to do is to trigger the magento setup file. Consider the following steps for the same.<\/p>\n<ul>\n<li>Now open a new tab of your browser and enter the following path:<\/li>\n<\/ul>\n<table style=\"height: 102px;\" width=\"431\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">Localhost\/magento or<\/p>\n<p style=\"text-align: center;\">localhost\/magento\/index.php\/install<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>License Agreement<\/h3>\n<ul>\n<li>You will be directed to Magento\u2019s installation page, accept the agreement\u2019s terms and conditions and click on continue.<\/li>\n<\/ul>\n<h3>Localization<\/h3>\n<ul>\n<li>Select the Locale(language), Time zone and Default currency and click on continue.<\/li>\n<\/ul>\n<h3>Configuration<\/h3>\n<ul>\n<li>Here you will encounter the \u201cwrite permission issue\u201d, you have to fix all these issues before continuing further.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture6-1.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3369 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture6-1-e1487071151972.png\" alt=\"picture6\" width=\"554\" height=\"298\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture6-1-e1487071151972.png 554w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture6-1-e1487071151972-300x161.png 300w\" sizes=\"auto, (max-width: 554px) 100vw, 554px\" \/><\/a><\/p>\n<ul>\n<li>For fixing the write permission issue follow the below mentioned steps:<\/li>\n<li>Open the terminal of your system.( CTRL+ALT+T )<\/li>\n<li>Enter the following command to resolve the permission issues:<\/li>\n<\/ul>\n<table style=\"height: 65px;\" width=\"465\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">sudo chown -R www-data \/file path<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table style=\"height: 62px;\" width=\"469\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">Eg: sudo chown -R www-data \/var\/www\/html\/magento\/app\/etc<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>It will ask you for the system password, enter your system password and press enter, it will ask the password only once.<\/li>\n<\/ul>\n<ul>\n<li>Enter the command for all the files having same issue, using the example above and then click continue option on the magento installation page.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture7.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3368 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture7.png\" alt=\"picture7\" width=\"587\" height=\"326\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture7.png 587w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture7-300x167.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/a><\/p>\n<ul>\n<li>After clicking on the continue option you will encounter php extension loading error. It is shown below:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture8.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3367\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture8.png\" alt=\"picture8\" width=\"599\" height=\"326\" \/><\/a><\/p>\n<ul>\n<li>If you encounter this error follow the steps below:<\/li>\n<li>Open the terminal and enter the command below :<\/li>\n<li>For installing mcrypt<\/li>\n<\/ul>\n<table style=\"height: 144px;\" width=\"450\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">sudo apt-get install php5-mcrypt<\/p>\n<p style=\"text-align: center;\">sudo php5 enmod mcrypt<\/p>\n<p style=\"text-align: center;\">sudo service apache2 restart<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>For installing curl<\/li>\n<\/ul>\n<table style=\"height: 98px;\" width=\"439\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">sudo apt-get install curl libcurl3 php5-curl<\/p>\n<p style=\"text-align: center;\">sudo service apache2 restart<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>For installing gd<\/li>\n<\/ul>\n<table style=\"height: 103px;\" width=\"458\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">sudo apt-get install php5-gd<\/p>\n<p style=\"text-align: center;\">sudo service apache2 restart<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture9.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3366\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture9.png\" alt=\"picture9\" width=\"535\" height=\"302\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture9.png 597w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture9-300x169.png 300w\" sizes=\"auto, (max-width: 535px) 100vw, 535px\" \/><\/a><\/p>\n<ul>\n<li>Then click continue on the magento installation page.<\/li>\n<\/ul>\n<h3>Database Connection Page<\/h3>\n<ul>\n<li>After clicking continue you will be directed to a database connection page where you can:<\/li>\n<li>Set a Username and Password.<\/li>\n<li>Change the database name.<\/li>\n<li>Set the table prefixes. (optional)<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture10.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3365 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture10-e1487071264655.png\" alt=\"picture10\" width=\"584\" height=\"282\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture10-e1487071264655.png 584w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture10-e1487071264655-300x145.png 300w\" sizes=\"auto, (max-width: 584px) 100vw, 584px\" \/><\/a><\/p>\n<h3>Create Admin Account<\/h3>\n<p>After Completing all the processes under configuration, you will be directed to create admin account, where you have to :<\/p>\n<ul>\n<li>Enter your Personal details:<\/li>\n<li>First Name<\/li>\n<li>Last Name<\/li>\n<li>E-mail Id<\/li>\n<li>Enter Login Information:<\/li>\n<li>Username<\/li>\n<li>Password<\/li>\n<li>Confirm Password<\/li>\n<li>Enter Encryption Key (Optional)<\/li>\n<li>Then click on continue button.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture11.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3364 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture11-e1487071298587.png\" alt=\"picture11\" width=\"573\" height=\"298\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture11-e1487071298587.png 573w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture11-e1487071298587-300x156.png 300w\" sizes=\"auto, (max-width: 573px) 100vw, 573px\" \/><\/a><\/p>\n<h3>You are all set<\/h3>\n<p>This is the last step in the installation process of magento. Here you will be provided with an encryption key which you have to save, as magento uses it to encrypt passwords, credit cards etc.<\/p>\n<ul>\n<li>Now you have two options on your screen:<\/li>\n<li>Go to Front-End<\/li>\n<li>Go to Back-End<\/li>\n<li>You can visit either of them.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture12.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3363 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture12-e1487071330526.png\" alt=\"picture12\" width=\"616\" height=\"305\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture12-e1487071330526.png 616w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture12-e1487071330526-300x149.png 300w\" sizes=\"auto, (max-width: 616px) 100vw, 616px\" \/><\/a><\/p>\n<h3>Front-End And Back-End<\/h3>\n<p>When You visit your Front-End, you will notice that there are no logos, banners and images for any product or brand. Therefore for that you have to make some changes from the Back-End to make sure that everything works well before you can work on magento.<\/p>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture13.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3362 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture13-e1487071360962.png\" alt=\"picture13\" width=\"570\" height=\"304\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture13-e1487071360962.png 570w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture13-e1487071360962-300x160.png 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<h3>Necessary changes<\/h3>\n<ul>\n<li>For Uploading Images on the front end<\/li>\n<li>Copy Media and Skin folders from magento-sample-data and paste them on your setup folder.<\/li>\n<li>Setup folder will already contain these folders, just you have to do is replace them.<\/li>\n<li>Then go to your Front-End and refresh the page. You will see that the logos, images and banners are uploaded.<\/li>\n<li>In some case you will see there is no updation, the Front-End is still blank. In that case follow the below mentioned steps:<\/li>\n<li>Open the terminal and type the command:<\/li>\n<\/ul>\n<table style=\"height: 57px;\" width=\"511\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">sudo chown -R www-data\/var\/www\/html\/magento\/media\/<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Then go to your Back-End, hover your cursor over system menu in the admin panel menu bar and click on the cache management on the drop-down option.<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture14.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3361 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture14-e1487071386947.png\" alt=\"picture14\" width=\"549\" height=\"304\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture14-e1487071386947.png 549w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture14-e1487071386947-300x166.png 300w\" sizes=\"auto, (max-width: 549px) 100vw, 549px\" \/><\/a><\/p>\n<ul>\n<li>After clicking on the cache management option you will be directed to a new page where you will see two options on the top right corner of the page:<\/li>\n<li>Flush Magento Cache<\/li>\n<li>Flush Cache storage<\/li>\n<li>Click on these options to Flush Magento Cache and Cache Storage.<\/li>\n<li>Now Go to your Front-end and refresh the page, you will see that all the banners, logos, images are updated, you will get your Front-end ready.<\/li>\n<li>Modifying File Index.php<\/li>\n<li>Now Open Index.php, you will find index.php at the path provided below:<\/li>\n<\/ul>\n<table style=\"height: 64px;\" width=\"481\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">\/var\/www\/html\/magento<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Click on the Index.php file and open it.<\/li>\n<li>You will see a Php code, go to line 73,74 and 75 and place double slash at the beginning of these lines and remove \u201c#\u201d at the beginning of line 77 as shown below:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture15.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3360 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture15.png\" alt=\"picture15\" width=\"564\" height=\"337\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture15.png 564w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture15-300x179.png 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/><\/a><\/p>\n<ul>\n<li>Now save the file and close it.<\/li>\n<li>Modifying File Varien.php<\/li>\n<li>Now Open Varien.php, you will find Varien.php at the path provided below:<\/li>\n<\/ul>\n<table style=\"height: 106px;\" width=\"613\">\n<tbody>\n<tr>\n<td>\n<p style=\"text-align: center;\">\/var\/www\/html\/magento\/app\/code\/core\/Mage\/Core\/Model\/Session\/<\/p>\n<p style=\"text-align: center;\">Abstract<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li>Click on the Varien.php file and open it.<\/li>\n<li>You will see a Php code, go to line 99, 100 and 101 and assign values as shown below:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture16.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3359 size-full\" src=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture16.png\" alt=\"picture16\" width=\"552\" height=\"337\" srcset=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture16.png 552w, https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture16-300x183.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><\/p>\n<ul>\n<li>Remove the lines like $cookie-&gt;getconfigDomain() from line 99,100 and 101 and place double quotes as shown in the figure.<\/li>\n<li>Now save the file and close it.<\/li>\n<\/ul>\n<p><strong>You Might Also Like:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/www.knowband.com\/blog\/magento-tutorials\/installing-magento-themes\/\" target=\"_blank\">How to install themes on Magento<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition: Enterprise [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kbui_enabled":"","footnotes":""},"categories":[6],"tags":[7781,7780,7782],"class_list":["post-3357","post","type-post","status-publish","format-standard","hentry","category-magento-tutorials","tag-how-to-install-magento-in-ubuntu","tag-install-magento-in-ubuntu","tag-steps-to-install-magento-in-ubuntu"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"og:description\" content=\"Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition: Enterprise [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowband Blog | Ecommerce Modules\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Knowband\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-14T11:25:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-08T12:28:12+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png\" \/>\n\t<meta property=\"og:image:width\" content=\"552\" \/>\n\t<meta property=\"og:image:height\" content=\"278\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Joe Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:site\" content=\"@KnowbandPlugin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Joe Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/\"},\"author\":{\"name\":\"Joe Parker\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/3d766b60ef5a1c9338ff341a544f27a8\"},\"headline\":\"How to Install Magento In Ubuntu?\",\"datePublished\":\"2017-02-14T11:25:55+00:00\",\"dateModified\":\"2018-11-08T12:28:12+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/\"},\"wordCount\":1248,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Picture1-8-e1487070824265.png\",\"keywords\":[\"How to Install Magento In Ubuntu?\",\"Install Magento In Ubuntu\",\"Steps to Install Magento In Ubuntu\"],\"articleSection\":[\"Magento Tutorials\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/\",\"name\":\"How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Picture1-8-e1487070824265.png\",\"datePublished\":\"2017-02-14T11:25:55+00:00\",\"dateModified\":\"2018-11-08T12:28:12+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Picture1-8-e1487070824265.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/Picture1-8-e1487070824265.png\",\"width\":552,\"height\":278},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/magento-tutorials\\\/how-to-install-magento-in-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Magento In Ubuntu?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#website\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"description\":\"Magento, Prestashop, Opencart, Shopify\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#organization\",\"name\":\"Knowband Blog | Ecommerce Modules\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/09\\\/cropped-knowband_logo-v2.png\",\"width\":153,\"height\":61,\"caption\":\"Knowband Blog | Ecommerce Modules\"},\"image\":{\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/Knowband\",\"https:\\\/\\\/x.com\\\/KnowbandPlugin\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/fr\\\/#\\\/schema\\\/person\\\/3d766b60ef5a1c9338ff341a544f27a8\",\"name\":\"Joe Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"contentUrl\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/wp-content\\\/plugins\\\/wp-user-avatar\\\/deprecated\\\/wp-user-avatar\\\/images\\\/wpua-96x96.png\",\"caption\":\"Joe Parker\"},\"description\":\"We boast of the best in the industry plugins for eCommerce systems and has years of experience working with eCommerce websites. We provide best plugins for platforms like - Magento, Prestashop, OpenCart and Shopify . We also provide custom module development and customization services for the website and modules..\",\"url\":\"https:\\\/\\\/www.knowband.com\\\/blog\\\/author\\\/joe\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules","og_description":"Magento is one of the most popular Content Management System(CMS) for an E-commerce website. It is one of the most flexible E-commerce platforms. Magento uses MySQL as its database, PHP as the programming language and elements of zend framework. It has two Editions one is a Paid edition and other is an Unpaid edition: Enterprise [&hellip;]","og_url":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/","og_site_name":"Knowband Blog | Ecommerce Modules","article_publisher":"https:\/\/www.facebook.com\/Knowband","article_published_time":"2017-02-14T11:25:55+00:00","article_modified_time":"2018-11-08T12:28:12+00:00","og_image":[{"width":552,"height":278,"url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png","type":"image\/png"}],"author":"Joe Parker","twitter_card":"summary_large_image","twitter_creator":"@KnowbandPlugin","twitter_site":"@KnowbandPlugin","twitter_misc":{"Written by":"Joe Parker","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/"},"author":{"name":"Joe Parker","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/3d766b60ef5a1c9338ff341a544f27a8"},"headline":"How to Install Magento In Ubuntu?","datePublished":"2017-02-14T11:25:55+00:00","dateModified":"2018-11-08T12:28:12+00:00","mainEntityOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/"},"wordCount":1248,"commentCount":0,"publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png","keywords":["How to Install Magento In Ubuntu?","Install Magento In Ubuntu","Steps to Install Magento In Ubuntu"],"articleSection":["Magento Tutorials"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/","url":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/","name":"How to Install Magento In Ubuntu? - Knowband Blog | Ecommerce Modules","isPartOf":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png","datePublished":"2017-02-14T11:25:55+00:00","dateModified":"2018-11-08T12:28:12+00:00","breadcrumb":{"@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#primaryimage","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2017\/02\/Picture1-8-e1487070824265.png","width":552,"height":278},{"@type":"BreadcrumbList","@id":"https:\/\/www.knowband.com\/blog\/magento-tutorials\/how-to-install-magento-in-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.knowband.com\/blog\/fr\/"},{"@type":"ListItem","position":2,"name":"How to Install Magento In Ubuntu?"}]},{"@type":"WebSite","@id":"https:\/\/www.knowband.com\/blog\/fr\/#website","url":"https:\/\/www.knowband.com\/blog\/fr\/","name":"Knowband Blog | Ecommerce Modules","description":"Magento, Prestashop, Opencart, Shopify","publisher":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.knowband.com\/blog\/fr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.knowband.com\/blog\/fr\/#organization","name":"Knowband Blog | Ecommerce Modules","url":"https:\/\/www.knowband.com\/blog\/fr\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/","url":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/uploads\/2016\/09\/cropped-knowband_logo-v2.png","width":153,"height":61,"caption":"Knowband Blog | Ecommerce Modules"},"image":{"@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Knowband","https:\/\/x.com\/KnowbandPlugin"]},{"@type":"Person","@id":"https:\/\/www.knowband.com\/blog\/fr\/#\/schema\/person\/3d766b60ef5a1c9338ff341a544f27a8","name":"Joe Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","url":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","contentUrl":"https:\/\/www.knowband.com\/blog\/wp-content\/plugins\/wp-user-avatar\/deprecated\/wp-user-avatar\/images\/wpua-96x96.png","caption":"Joe Parker"},"description":"We boast of the best in the industry plugins for eCommerce systems and has years of experience working with eCommerce websites. We provide best plugins for platforms like - Magento, Prestashop, OpenCart and Shopify . We also provide custom module development and customization services for the website and modules..","url":"https:\/\/www.knowband.com\/blog\/author\/joe\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/3357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/comments?post=3357"}],"version-history":[{"count":5,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/3357\/revisions"}],"predecessor-version":[{"id":22633,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/posts\/3357\/revisions\/22633"}],"wp:attachment":[{"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/media?parent=3357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/categories?post=3357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.knowband.com\/blog\/wp-json\/wp\/v2\/tags?post=3357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}