{"id":325,"date":"2020-10-23T11:47:25","date_gmt":"2020-10-23T11:47:25","guid":{"rendered":"https:\/\/ccbill.com\/kb\/?p=325"},"modified":"2023-03-06T12:27:34","modified_gmt":"2023-03-06T12:27:34","slug":"how-to-install-magento-in-linux","status":"publish","type":"post","link":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux","title":{"rendered":"How to Install Magento in Linux"},"content":{"rendered":"\n<p class=\"h3\">Introduction<\/p>\n\n\n\n<p>Magento is a comprehensive e-commerce platform for building online stores. As an open-source solution, Magento allows you to customize its many features to create a unique customer shopping experience. It is versatile and scalable, which makes it suitable for both small mom-and-pop stores as well as big-box retailers.<\/p>\n\n\n\n<p>Find out how to <strong>prepare your Linux server and carry out a full Magento installation<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"400\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\" alt=\"Magento and Ubunutu Logos for introductory image.\" class=\"wp-image-327\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost-300x150.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost-768x384.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Linux OS (Windows and macOS installations are not supported)<\/li>\n\n\n\n<li>Access to a command-line interface (CLI)<\/li>\n\n\n\n<li>A user with <strong>root<\/strong> or <strong>sudo<\/strong> privileges.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Magento Open Source Vs. Magento Commerce<\/h2>\n\n\n\n<p>Before proceeding with the installation, decide which of the two available Magento platforms meet your store requirements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Magento Open Source.<\/strong> Provides a fully functional front-end content management system <strong>for free<\/strong>. It is ideal for newly established pure-click companies looking to build online stores from the ground up.<\/li>\n\n\n\n<li>The <strong>Magento Commerce<\/strong> edition is a platform-as-a-service (PaaS) with advanced features, technical and marketing solutions, and trained support staff. <strong>The cost<\/strong> of the Magento Commerce platform depends on annual store turnover. The price can range from tens of thousands to millions of dollars.<\/li>\n<\/ul>\n\n\n\n<p>This tutorial shows you how to install <strong>Magento Open Source version 2.4.0<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-cyan-blue-color has-css-opacity has-vivid-cyan-blue-background-color has-background is-style-wide\"\/>\n\n\n\n<p><strong>Magento 1 End-of-Life:<\/strong> Official support for Magento 1 ended on the 30<sup>th<\/sup> of June 2020. It is possible to install and use Magento 1, but we advise against it. Without the latest security patches and the lack of support, an e-commerce solution is a major liability. If you are still using Magento 1 we recommend upgrading to the latest version as soon as possible. Check out our <a href=\"https:\/\/ccbill.com\/kb\/magento-migration\" target=\"_blank\" rel=\"noreferrer noopener\">Magento Migration Checklist<\/a> for more details.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-vivid-cyan-blue-color has-css-opacity has-vivid-cyan-blue-background-color has-background is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">How to Install Magento<\/h2>\n\n\n\n<p>Before installing Magento, you need to establish a working environment for the background processes. This includes installing a <a href=\"https:\/\/phoenixnap.com\/kb\/what-is-a-lamp-stack\" target=\"_blank\" rel=\"noreferrer noopener\">LAMP stack<\/a>, PHP Composer, and Elasticsearch to serve as a catalog search solution.<\/p>\n\n\n\n<p>This guide uses <strong>Ubuntu 20.04 <\/strong>for command examples. <\/p>\n\n\n\n<p>Use the commands in the table to check if your system meets the requirements. To install a software solution from the list, or upgrade to a specific version, use the provided links.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-regular\"><table class=\"has-background has-fixed-layout\" style=\"background-color:#e7f5fe\"><thead><tr><th class=\"has-text-align-center\" data-align=\"center\"><strong>Software Version<\/strong><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>How to Check Version in Ubuntu 20.04<\/strong><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>Installation Guides<\/strong><\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Apache 2.4<\/strong> ( or <strong>Nginx 1.x<\/strong>)<\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>apache2 -v<\/em><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/phoenixnap.com\/kb\/how-to-install-apache-web-server-on-ubuntu-18-04\" target=\"_blank\" rel=\"noreferrer noopener\">Install Apache on Ubuntu<\/a><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>PHP 7.4*<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>php -v<\/em><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/phoenixnap.com\/kb\/install-php-7-on-ubuntu\" target=\"_blank\" rel=\"noreferrer noopener\">Install PHP 7 on Ubuntu<\/a> <br>(PHP 7.4.3 is available on Ubuntu 20.04 by default)<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>MySQL 8.0<\/strong><br>(MariaDB 10.4 if using Magento Commerce Cloud)<\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>mysql -V<\/em><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/phoenixnap.com\/kb\/how-to-install-mysql-on-ubuntu-18-04\" target=\"_blank\" rel=\"noreferrer noopener\">Install MySQL 8.0 on Ubuntu<\/a><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>Elasticsearch<\/strong> <strong>7.6.x<\/strong><br>(Mandatory for Magento 2.4)<\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>curl -X GET \"localhost:9200\"<\/em><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/phoenixnap.com\/kb\/how-to-install-elk-stack-on-ubuntu#htoc-step-2-add-elastic-repository\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install Elasticsearch<\/a><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>PHP Composer<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><em>composer<\/em><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/phoenixnap.com\/kb\/how-to-install-composer-ubuntu-18-04\" target=\"_blank\" rel=\"noreferrer noopener\">Install PHP Composer on Ubuntu<\/a><\/td><\/tr><\/tbody><\/table><figcaption class=\"wp-element-caption\">* Avoid using PHP version <strong>7.4.2<\/strong> with Magento as it has a known messaging issue.<\/figcaption><\/figure>\n\n\n\n<p>You can use additional solutions to improve Magento\u2019s efficiency. A key-value store like <strong>Redis<\/strong> and a messaging server such as <strong>RabbitMQ<\/strong> are highly recommended but are not mandatory for Magento.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Install PHP Modules<\/h3>\n\n\n\n<p>Magento requires a set of PHP extensions for server-side scripting. Enter the following command to install the necessary PHP modules:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install -y php7.4-common php7.4-opcache php7.4-gd php7.4-mysql php7.4-intl php7.4-xml php7.4-mbstring php7.4-json php7.4-soap php7.4-curl php7.4-xsl php7.4-zip<\/code><\/pre>\n\n\n\n<p>The system takes a few moments to complete the installation.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"237\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/install-php-extentions-magento.png\" alt=\"Command to install necessary PHP extentions.\" class=\"wp-image-329\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/install-php-extentions-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/install-php-extentions-magento-300x89.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/install-php-extentions-magento-768x228.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>To list existing PHP modules, use the <strong><code>php -m<\/code><\/strong> command.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create Apache Virtual Host<\/h3>\n\n\n\n<p>Use a text editor, such as nano, to create an Apache Virtual Host configuration file for your store.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apache2\/sites-available\/magentostore.conf<\/code><\/pre>\n\n\n\n<p>Add the following content to the file.Change the information to match your system\u2019s data. For example, your store\u2019s IP or domain name.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80&gt;\n     ServerAdmin admin@yourstore.com\n     DocumentRoot \/var\/www\/html\/magento2.4\/\n     ServerName yourstore.com\n     ServerAlias www.yourstore.com\n\n     &lt;Directory &quot;\/var\/www\/html\/magento2.4\/&quot;&gt;\n        Options Indexes FollowSymLinks MultiViews\n        AllowOverride All\n        Order allow,deny\n        allow from all\n     &lt;\/Directory&gt;\n\n     ErrorLog ${APACHE_LOG_DIR}\/error.log\n     CustomLog ${APACHE_LOG_DIR}\/access.log combined\n&lt;\/VirtualHost&gt;<\/code><\/pre>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>In this example, the path to the Magento installation directory is <strong><code>\/var\/www\/html\/magento2.4\/<\/code><\/strong>. The path needs to match the location of your installation folder.<\/p>\n<\/div><\/div>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\"><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"324\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/apache-virtual-hosts-magento.png\" alt=\"The content of the Apache Virtual Hosts file.\" class=\"wp-image-330\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/apache-virtual-hosts-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/apache-virtual-hosts-magento-300x122.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/apache-virtual-hosts-magento-768x311.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div><\/div><\/div>\n<\/div><\/div>\n\n\n\n<p>Save the changes and exit the file. Then, use the following command to enable the configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2ensite magentostore.conf<\/code><\/pre>\n\n\n\n<p>Enable the Apache rewrite module:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo a2enmod rewrite<\/code><\/pre>\n\n\n\n<p>Restart the Apache service to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create MySQL Database and User<\/h3>\n\n\n\n<p>Access the MySQL command shell and create a database for your Magento store:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE DATABASE magento;<\/code><\/pre>\n\n\n\n<p>Create a user for the <em>magento<\/em> database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER &#039;magento2os&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;passwd&#039;;<\/code><\/pre>\n\n\n\n<p>Give the <em>magento2os<\/em> user adequate privileges for the <em>magento<\/em> database:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRANT ALL PRIVILEGES ON magento.* TO &#039;magento2os&#039;@&#039;localhost&#039; WITH GRANT OPTION;<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"245\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/mysql-user-magento.png\" alt=\"Creating a MySQL user for Magento database.\" class=\"wp-image-332\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/mysql-user-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/mysql-user-magento-300x92.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/mysql-user-magento-768x235.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>Flush the newly granted privileges:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<p><strong>Note:<\/strong> Read our post <a href=\"https:\/\/ccbill.com\/kb\/magento-database-type\" target=\"_blank\" rel=\"noreferrer noopener\">Magento Database Types Explained<\/a> to learn about the EAV data model and Magento databases.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-text-color has-background has-vivid-cyan-blue-background-color has-vivid-cyan-blue-color is-style-wide\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Make PHP Composer Globally Available<\/h3>\n\n\n\n<p>Use the following command to make Composer globally accessible:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo mv composer.phar \/usr\/bin\/local\/composer<\/code><\/pre>\n\n\n\n<p>Confirm that Composer is now globally available:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer<\/code><\/pre>\n\n\n\n<p>As confirmation, the output displays the installed version.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"155\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/php-composer-magento-install-version.png\" alt=\"The output confirms PHP Composer version.\" class=\"wp-image-333\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/php-composer-magento-install-version.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/php-composer-magento-install-version-300x58.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/php-composer-magento-install-version-768x149.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 5: Download Magento Using Composer<\/h3>\n\n\n\n<p>There are several ways to download Magento Open Source. You can retrieve and unpack compressed Magento files from the <a href=\"https:\/\/magento.com\/tech-resources\/download?_ga=2.187348139.2051899541.1600243928-1971540064.1600243928\" target=\"_blank\" rel=\"noreferrer noopener\">official archives<\/a>, or a create a Git clone of the Magento repository. <\/p>\n\n\n\n<p>This tutorial shows you how to use PHP Composer to install and manage Magento dependencies. Composer allows you to reuse third-party libraries, reduce PHP compatibility issues, and repackage Magento Open Source with other components.<\/p>\n\n\n\n<p>1. Visit the <a href=\"https:\/\/marketplace.magento.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">official Magento page<\/a> and create a free user account.<\/p>\n\n\n\n<p>2. Log in to your Magento account and select <strong>Access Keys<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"340\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-access-keys.png\" alt=\"Location of Magento access keys.\" class=\"wp-image-334\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-access-keys.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-access-keys-300x128.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-access-keys-768x326.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>3. Click the <strong>Create a New Access Key<\/strong> tab. Enter a name and click <strong>OK<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"311\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/create-new-access-key-magento.png\" alt=\"Enter a name for your Access Keys.\" class=\"wp-image-335\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/create-new-access-key-magento.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/create-new-access-key-magento-300x117.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/create-new-access-key-magento-768x299.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>4. Save your Public and Private Keys.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"287\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/private-public-key-magento-installation.png\" alt=\"Copy your Public and Private access keys.\" class=\"wp-image-336\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/private-public-key-magento-installation.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/private-public-key-magento-installation-300x108.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/private-public-key-magento-installation-768x276.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>5. Use a CLI to create a directory for the Magento installation. In this example, the <em>magento2.4<\/em> sub-directory is created within the Apache web root (<em>\/var\/www\/html\/<\/em>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir \/var\/www\/html\/magento2.4<\/code><\/pre>\n\n\n\n<p>6. Access the <em>magento2.4<\/em> directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/html\/magento2.4<\/code><\/pre>\n\n\n\n<p>7. Use the following Composer command to download the <strong>Magento 2.4 Open Source Edition<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>composer create-project --repository-url=https:\/\/repo.magento.com\/ magento\/project-community-edition<\/code><\/pre>\n\n\n\n<p>8. When prompted, enter your Magento authentication keys. The Username and Password are the Public and Private Keys you previously created.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"208\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-download-private-public-key.png\" alt=\"Use private and public key to download Magento with Composer.\" class=\"wp-image-337\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-download-private-public-key.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-download-private-public-key-300x78.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-download-private-public-key-768x200.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>Allow the system to complete the download.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 6: Set Ownership and Permissions for the Shared Group<\/h3>\n\n\n\n<p>Create a distinct non-root user for the Magento installation. For example, <strong>pnap<\/strong>, and set a strong password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -g www-data pnap<\/code><\/pre>\n\n\n\n<p>Access the Magento installation directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/data\/magento2.4<\/code><\/pre>\n\n\n\n<p>Set the read-write permissions for the web server group before installing the Magento software. This way users can write files to the Magento file system. Grant users the following permissions:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo find var generated vendor pub\/static pub\/media app\/etc -type f -exec chmod g+w {} \\; &amp;&amp; find var generated vendor pub\/static pub\/media app\/etc -type d -exec chmod g+ws {} \\; &amp;&amp; chown -R :www-data . &amp;&amp; chmod u+x bin\/magento<\/code><\/pre>\n\n\n\n<p>Let the system finish matching the various files and folders in your installation directory. Then, use the following command to restart the Apache service:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl restart apache2<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 7: Install Magento<\/h3>\n\n\n\n<p>Switch to the user you created for the Magento installation:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo su pnap<\/code><\/pre>\n\n\n\n<p>Access your Magento root directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\/html\/magento2.4\/<\/code><\/pre>\n\n\n\n<p>Enter the following command to install Magento:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento setup:install --base-url=&quot;http:\/\/localhost\/magento2.4\/&quot; --db-host=&quot;localhost&quot; --db-name=&quot;magento&quot; --db-user=&quot;magento2os&quot; --db-password=&quot;passwd&quot; --admin-firstname=&quot;Bruce&quot; --admin-lastname=&quot;Banner&quot; --admin-email=&quot;thehulk@store.com&quot; --admin-user=&quot;Hulk&quot; --admin-password=&quot;Hulk123&quot; --language=&quot;en_US&quot; --currency=&quot;USD&quot; --timezone=&quot;America\/Chicago&quot; --use-rewrites=&quot;1&quot; --search-engine=&quot;elasticsearch7&quot; --elasticsearch-host=&quot;localhost&quot; --elasticsearch-port=&quot;9200&quot;<\/code><\/pre>\n\n\n\n<p>If necessary, edit the information to match your requirements and the configuration of your system:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>base-url - <\/strong>The location (URL) of your store. In this example, the store is installed on the <em>localhost<\/em> in the <em>magento2.4<\/em> sub-directory.<\/li>\n\n\n\n<li><strong>db-host<\/strong> - If Magento is on the same server as your database, use <em>localhost<\/em>. If you are using a separate database server, enter the hostname of that server.<\/li>\n\n\n\n<li><strong>db-name<\/strong> - The name of the MySQL database created earlier.<\/li>\n\n\n\n<li><strong>db-user<\/strong> - Enter the username of your MySQL user.<\/li>\n\n\n\n<li><strong>db-password<\/strong> - &nbsp;The password for your MySQL user.<\/li>\n\n\n\n<li><strong>admin-firstname<\/strong> and <strong>admin-lastname<\/strong> - Set the full name for your Magento admin user.<\/li>\n\n\n\n<li><strong>admin-email<\/strong> - Define a contact email for system notifications and password resets.<\/li>\n\n\n\n<li><strong>admin-user<\/strong> \/ <strong>admin-password<\/strong> - Create the login credentials for the Magento Admin control panel.<\/li>\n\n\n\n<li><strong>language <\/strong>- Defines the default language for your store.<\/li>\n\n\n\n<li><strong>currency <\/strong>- Sets the base currency for your store.<\/li>\n\n\n\n<li><strong>timezone <\/strong>- Regulates the default time zone for Magento.<\/li>\n\n\n\n<li><strong>use<\/strong>-<strong>rewrites<\/strong> - Enable rewrites by setting the value to <strong>1<\/strong>.<\/li>\n\n\n\n<li><strong>search-engine - <\/strong>The default search engine value needs to be set to<strong> elasticsearch7<\/strong>.<\/li>\n\n\n\n<li><strong>elasticsearch-host<\/strong> - If Elasticsearch is on the same server as Magento, use <em>localhost<\/em>. If you are using a separate server, enter the hostname of that server.<\/li>\n\n\n\n<li><strong>elasticsearch-port<\/strong> - The default Elasticsearch port number is <strong>9200<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p>The system creates a random Magento Admin URI and displays the value at the end of the installation process. Take note of the value as it allows you to access the Admin panel.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"341\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-install-success.png\" alt=\"Location of the Magento Admin URI.\" class=\"wp-image-338\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-install-success.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-install-success-300x128.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-install-success-768x327.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>If you need to retrieve the Admin URI at a later point, access the Magento root directory and use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>bin\/magento info:adminuri<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Step 8: Access and Configure Magento<\/h3>\n\n\n\n<p>Use a browser to access your Magento storefront. In this example, Magento is installed on the <em>localhost<\/em> within the <em>magento2.4<\/em> sub-directory:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#047;&#047;127.0.0.1\/magento2.4<\/code><\/pre>\n\n\n\n<p>You now have access to the Magento Home Page.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"800\" height=\"521\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-store-browser-access.png\" alt=\"Deafult Magento Luma theme storefront.\" class=\"wp-image-340\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-store-browser-access.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-store-browser-access-300x195.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-store-browser-access-768x500.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Access the Magento admin panel by adding the admin URI to the store\u2019s frontend URL.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#047;&#047;127.0.0.1\/magento2.4\/admin_fasjdnw<\/code><\/pre>\n\n\n\n<p>Enter the Admin username and password you created during the installation process and <strong>Sign In<\/strong>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"536\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-admin-login-user-password.png\" alt=\"Magento Admin Log In page.\" class=\"wp-image-341\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-admin-login-user-password.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-admin-login-user-password-300x201.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magento-admin-login-user-password-768x515.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>Magento 2.4 uses <a href=\"https:\/\/ccbill.com\/kb\/what-is-two-factor-authentication\" target=\"_blank\" rel=\"noreferrer noopener\">two-factor authentication<\/a> to provide a secure environment for administrators. You cannot log into the Magento admin panel unless you have a Mail Transfer Agent (MTA) or an SMTP server.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"540\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/two-factor-authentication-magenti-disable.png\" alt=\"Magento two-factor authentication error.\" class=\"wp-image-342\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/two-factor-authentication-magenti-disable.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/two-factor-authentication-magenti-disable-300x203.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/two-factor-authentication-magenti-disable-768x518.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>An alternative solution is to disable the two-factor authentication module. <\/p>\n\n\n\n<p>Enter the following command from your Magento root folder:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php bin\/magento module:disable Magento_TwoFactorAuth<\/code><\/pre>\n\n\n\n<p>As the two-factor authentication is no longer required, reload the page to access the Magento admin panel.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" width=\"800\" height=\"526\" src=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magneto-access-admin.png\" alt=\"Magneto admin interface.\" class=\"wp-image-343\" srcset=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magneto-access-admin.png 800w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magneto-access-admin-300x197.png 300w, https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/magneto-access-admin-768x505.png 768w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/figure><\/div>\n\n\n<p>Use the Magento Admin to create and maintain your store, add extensions to improve performance, and design themes that really stand out.<\/p>\n\n\n\n<p>For installing themes, refer to our guide <a href=\"https:\/\/ccbill.com\/kb\/magento-install-new-theme\" target=\"_blank\" rel=\"noreferrer noopener\">How to Install a New Theme in Magento<\/a>.<\/p>\n\n\n\n<p class=\"h3\">Conclusion<\/p>\n\n\n\n<p>You have successfully installed Magento 2.4, a complete e-commerce solution that allows you to create a one-of-a-kind experience for your customers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find out how to prepare your Linux server and install Magento 2.4. This comprehensive tutorial illustrates each phase in detail. <\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-325","post","type-post","status-publish","format-standard","hentry","category-e-commerce"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Magento in Linux {Step-By-Step Guide} | CCBill KB<\/title>\n<meta name=\"description\" content=\"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\" \/>\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 Linux {Step-By-Step Guide} | CCBill KB\" \/>\n<meta property=\"og:description\" content=\"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\" \/>\n<meta property=\"og:site_name\" content=\"CCBill Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ccbillBIZ\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-23T11:47:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-06T12:27:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\" \/>\n<meta name=\"author\" content=\"Vladimir Kaplarevic\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:site\" content=\"@CCBillBIZ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vladimir Kaplarevic\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#article\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\"},\"author\":{\"name\":\"Vladimir Kaplarevic\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\"},\"headline\":\"How to Install Magento in Linux\",\"datePublished\":\"2020-10-23T11:47:25+00:00\",\"dateModified\":\"2023-03-06T12:27:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\"},\"wordCount\":1436,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\",\"articleSection\":[\"eCommerce Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\",\"url\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\",\"name\":\"How to Install Magento in Linux {Step-By-Step Guide} | CCBill KB\",\"isPartOf\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\",\"datePublished\":\"2020-10-23T11:47:25+00:00\",\"dateModified\":\"2023-03-06T12:27:34+00:00\",\"description\":\"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.\",\"breadcrumb\":{\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png\",\"width\":800,\"height\":400,\"caption\":\"Magento and Ubunutu Logos for introductory image.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"KB Home\",\"item\":\"https:\/\/ccbill.com\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"eCommerce Tutorials\",\"item\":\"https:\/\/ccbill.com\/kb\/category\/e-commerce\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Install Magento in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ccbill.com\/kb\/#website\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"name\":\"CCBill Knowledge Base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ccbill.com\/kb\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/ccbill.com\/kb\/#organization\",\"name\":\"CCBill\",\"url\":\"https:\/\/ccbill.com\/kb\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"contentUrl\":\"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png\",\"width\":160,\"height\":70,\"caption\":\"CCBill\"},\"image\":{\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ccbillBIZ\/\",\"https:\/\/x.com\/CCBillBIZ\",\"https:\/\/www.linkedin.com\/company\/ccbill\",\"https:\/\/www.youtube.com\/c\/CCBillBiz\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644\",\"name\":\"Vladimir Kaplarevic\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g\",\"caption\":\"Vladimir Kaplarevic\"},\"description\":\"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Magento in Linux {Step-By-Step Guide} | CCBill KB","description":"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.","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:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux","og_locale":"en_US","og_type":"article","og_title":"How to Install Magento in Linux {Step-By-Step Guide} | CCBill KB","og_description":"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.","og_url":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux","og_site_name":"CCBill Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/ccbillBIZ\/","article_published_time":"2020-10-23T11:47:25+00:00","article_modified_time":"2023-03-06T12:27:34+00:00","og_image":[{"url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png","type":"","width":"","height":""}],"author":"Vladimir Kaplarevic","twitter_card":"summary_large_image","twitter_creator":"@CCBillBIZ","twitter_site":"@CCBillBIZ","twitter_misc":{"Written by":"Vladimir Kaplarevic","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#article","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux"},"author":{"name":"Vladimir Kaplarevic","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644"},"headline":"How to Install Magento in Linux","datePublished":"2020-10-23T11:47:25+00:00","dateModified":"2023-03-06T12:27:34+00:00","mainEntityOfPage":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux"},"wordCount":1436,"commentCount":0,"publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"image":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png","articleSection":["eCommerce Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux","url":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux","name":"How to Install Magento in Linux {Step-By-Step Guide} | CCBill KB","isPartOf":{"@id":"https:\/\/ccbill.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage"},"image":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage"},"thumbnailUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png","datePublished":"2020-10-23T11:47:25+00:00","dateModified":"2023-03-06T12:27:34+00:00","description":"Learn how to install the latest Magento version in Linux. The article is packed with clear-cut images that guide you each step of the way.","breadcrumb":{"@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#primaryimage","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/how-to-install-magento-server-localhost.png","width":800,"height":400,"caption":"Magento and Ubunutu Logos for introductory image."},{"@type":"BreadcrumbList","@id":"https:\/\/ccbill.com\/kb\/how-to-install-magento-in-linux#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"KB Home","item":"https:\/\/ccbill.com\/kb\/"},{"@type":"ListItem","position":2,"name":"eCommerce Tutorials","item":"https:\/\/ccbill.com\/kb\/category\/e-commerce"},{"@type":"ListItem","position":3,"name":"How to Install Magento in Linux"}]},{"@type":"WebSite","@id":"https:\/\/ccbill.com\/kb\/#website","url":"https:\/\/ccbill.com\/kb\/","name":"CCBill Knowledge Base","description":"","publisher":{"@id":"https:\/\/ccbill.com\/kb\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ccbill.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/ccbill.com\/kb\/#organization","name":"CCBill","url":"https:\/\/ccbill.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","contentUrl":"https:\/\/ccbill.com\/kb\/wp-content\/uploads\/2020\/10\/ccbill-logo.png","width":160,"height":70,"caption":"CCBill"},"image":{"@id":"https:\/\/ccbill.com\/kb\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ccbillBIZ\/","https:\/\/x.com\/CCBillBIZ","https:\/\/www.linkedin.com\/company\/ccbill","https:\/\/www.youtube.com\/c\/CCBillBiz"]},{"@type":"Person","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/1f198b1218f6343a2682022ac4395644","name":"Vladimir Kaplarevic","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ccbill.com\/kb\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cc08885e8fec32585bae8a0f5a1aef92f8c8c4fc33692e74e0ec2e63633d2478?s=96&d=mm&r=g","caption":"Vladimir Kaplarevic"},"description":"Vladimir is a resident Tech Writer at CCBill. He has more than 8 years of experience in implementing e-commerce and online payment solutions with various global IT services providers. His engaging writing style provides practical advice and aims to spark curiosity for innovative technologies."}]}},"_links":{"self":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/325","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/comments?post=325"}],"version-history":[{"count":29,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/325\/revisions"}],"predecessor-version":[{"id":4819,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/posts\/325\/revisions\/4819"}],"wp:attachment":[{"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/media?parent=325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/categories?post=325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ccbill.com\/kb\/wp-json\/wp\/v2\/tags?post=325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}