{"id":9301,"date":"2021-08-10T04:13:59","date_gmt":"2021-08-10T04:13:59","guid":{"rendered":"https:\/\/cloudkul.com\/blog\/?p=9301"},"modified":"2021-08-10T04:14:03","modified_gmt":"2021-08-10T04:14:03","slug":"how-to-install-magento-2-4-on-macos","status":"publish","type":"post","link":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/","title":{"rendered":"Learn Magento 2.4 Installation On macOS"},"content":{"rendered":"\n<p>In this blog, we&#8217;ll learn Magento 2.4 Installation On macOS.&nbsp;You can also follow my blogs for Magento 2.4 Installation on <strong><a href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-ubuntu\/\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu 20.04<\/a><\/strong> and <strong><a href=\"https:\/\/cloudkul.com\/blog\/learn-magento-2-4-installation-on-windows\/\" target=\"_blank\" rel=\"noreferrer noopener\">Windows<\/a><\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><span class=\"has-inline-color has-black-color\">Installation Requirements For Magento 2.4:<\/span><\/strong><\/h2>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Operating systems <\/span><\/strong><\/p>\n\n\n\n<ul><li>Distributions&nbsp;of&nbsp;Linux,&nbsp;including&nbsp;RedHat&nbsp;Enterprise&nbsp;Linux&nbsp;(RHEL),&nbsp;CentOS,&nbsp;Ubuntu,&nbsp;Debian,&nbsp;macOS.<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Memory requirement<\/span><\/strong><\/p>\n\n\n\n<ul><li>Magento2&nbsp;requires&nbsp;2GB&nbsp;or higher RAM.&nbsp;<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Composer<\/span><\/strong><\/p>\n\n\n\n<ul><li>Composer&nbsp;2.x&nbsp;cannot&nbsp;be&nbsp;supported&nbsp;by&nbsp;Magento.<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Web servers<\/span><\/strong><\/p>\n\n\n\n<ul><li>Apache 2.4<\/li><li>Nginx 1.x<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Database<\/span><\/strong><\/p>\n\n\n\n<ul><li>MySQL 8.0<\/li><li>MariaDB 10.4<\/li><\/ul>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">PHP<\/span><\/strong><\/p>\n\n\n\n<p>Magento supports PHP 7.4.0<\/p>\n\n\n\n<p><strong><span style=\"color:#011d56\" class=\"has-inline-color\">Elasticsearch<\/span><\/strong><\/p>\n\n\n\n<ul><li>As&nbsp;of&nbsp;2.4.0&nbsp;Magento,&nbsp;MySQL&nbsp;is&nbsp;no&nbsp;longer&nbsp;available&nbsp;for&nbsp;search&nbsp;purposes.&nbsp;You\u2019re&nbsp;supposed&nbsp;to&nbsp;use&nbsp;Elasticsearch.<\/li><li>Elasticsearch 2.x, 5.x, and 6.x are no longer supported by Magento.<\/li><\/ul>\n\n\n\n<p>To get detailed information about system requirements, just visit the mentioned link:&nbsp;<a href=\"https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/system-requirements.html\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>https:\/\/devdocs.magento.com\/guides\/v2.4\/install-gde\/system-requirements.html<\/strong><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong><span class=\"has-inline-color has-black-color\">What We\u2019re Going To Use:<\/span><\/strong><\/h2>\n\n\n\n<ul><li><strong><span style=\"color:#011d56\" class=\"has-inline-color\">OS<\/span>:&nbsp;<\/strong>macOS Catalina 10.15<\/li><li><strong><span style=\"color:#011d56\" class=\"has-inline-color\">SERVER<\/span>:&nbsp;<\/strong>Apache 2<\/li><li><strong><span style=\"color:#011d56\" class=\"has-inline-color\">RAM<\/span>:&nbsp;<\/strong>8 GB <\/li><li><strong><span style=\"color:#011d56\" class=\"has-inline-color\">PHP<\/span>:<\/strong>&nbsp;7.4<\/li><li><strong><span style=\"color:#011d56\" class=\"has-inline-color\">MY SQL<\/span>:&nbsp;<\/strong>8.0 <\/li><li><span style=\"color:#011d56\" class=\"has-inline-color\"><strong>Composer<\/strong><\/span><strong>:<\/strong> 1.10<\/li><li><span style=\"color:#011d56\" class=\"has-inline-color\"><strong>Elasticsearch<\/strong><\/span><strong>:<\/strong> 7.10<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"has-inline-color has-black-color\">Magento 2.4 Installation On macOS <\/span><\/h2>\n\n\n\n<p>So let\u2019s move to the installation part.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>STEP 1:<\/strong><span style=\"color:#6d0606\" class=\"has-inline-color\"><strong> Installing Homebrew<\/strong> <strong>by execute the command below:<\/strong><\/span><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/master\/install.sh)\"\ngit -C \/usr\/local\/Homebrew\/Library\/Taps\/homebrew\/homebrew-core fetch \u2013unshallow\n\/usr\/local\/bin\/brew update\n\n<\/pre>\n\n\n\n<p><strong><span style=\"color:#530951\" class=\"has-inline-color\">Now, Setting up the environment.<\/span><\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><strong>STEP 2:<\/strong> <\/strong><span style=\"color:#6d0606\" class=\"has-inline-color\"><strong><strong>Install Apache2<\/strong><\/strong> <\/span><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">brew install httpd \nbrew services start httpd \n\n<\/pre>\n\n\n\n<p><strong>(i)&nbsp;Apache Configuration<\/strong> <\/p>\n\n\n\n<p>However, to support the web pages we will configure apache.&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/usr\/local\/etc\/httpd\/httpd.conf \n\n<\/pre>\n\n\n\n<p>Check for the following after opening the httpd.conf file:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>listen 8080<\/p><p><\/p><\/blockquote>\n\n\n\n<p>And just like the image below, change this to <strong>&#8220;<span style=\"color:#530951\" class=\"has-inline-color\">listen 80<\/span>&#8220;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/port-80-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"159\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/port-80-1.png\" alt=\"\" class=\"wp-image-9306\"\/><\/a><\/figure>\n\n\n\n<p>Now, made some changes to the <strong><span style=\"color:#530951\" class=\"has-inline-color\">DocumentRoot directory<\/span><\/strong>. You will find the following lines as shown below:<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/document-root.png\"><img loading=\"lazy\" decoding=\"async\" width=\"725\" height=\"111\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/document-root.png\" alt=\"\" class=\"wp-image-9307\"\/><\/a><\/figure><\/div>\n\n\n\n<p>Besides that, change this to :<\/p>\n\n\n\n<div class=\"wp-block-image is-style-default\"><figure class=\"aligncenter size-large\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/doc.-root-changed.png\"><img loading=\"lazy\" decoding=\"async\" width=\"611\" height=\"116\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/doc.-root-changed.png\" alt=\"\" class=\"wp-image-9308\"\/><\/a><\/figure><\/div>\n\n\n\n<p>The next setting for your configuration is <strong>&#8220;<span style=\"color:#530951\" class=\"has-inline-color\">Allowing Overrides<\/span>&#8220;<\/strong>. Although, you will find it as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/overrides.png\"><img loading=\"lazy\" decoding=\"async\" width=\"731\" height=\"198\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/overrides.png\" alt=\"\" class=\"wp-image-9309\"\/><\/a><\/figure>\n\n\n\n<p>Modify it to:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>AllowOverride all<\/p><p><\/p><\/blockquote>\n\n\n\n<p>Now, the <strong><span style=\"color:#530951\" class=\"has-inline-color\">rewrite_module<\/span> <\/strong>need&nbsp;to be enabled. Just navigate to:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/load-module-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"90\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/load-module-2.png\" alt=\"\" class=\"wp-image-9315\"\/><\/a><\/figure>\n\n\n\n<p>Uncomment this module so that we can use this module for Magento 2. We do so as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LoadModule rewrite_module lib\/httpd\/modules\/mod_rewrite.so\n\n<\/pre>\n\n\n\n<p>Similarly, in the directory, we need to define the <span style=\"color:#530951\" class=\"has-inline-color\"><strong>local user<\/strong> <\/span>and the <strong><span style=\"color:#530951\" class=\"has-inline-color\">group <\/span><\/strong>we are using. <strong><span style=\"color:#530951\" class=\"has-inline-color\">The variables, by default, look like:<\/span><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/user-group.png\"><img loading=\"lazy\" decoding=\"async\" width=\"586\" height=\"84\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/user-group.png\" alt=\"\" class=\"wp-image-9313\"\/><\/a><\/figure>\n\n\n\n<p>It would look like that,<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/add-user-grp.png\"><img loading=\"lazy\" decoding=\"async\" width=\"641\" height=\"114\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/add-user-grp.png\" alt=\"\" class=\"wp-image-9314\"\/><\/a><\/figure>\n\n\n\n<p>Save and exit, httpd.config file and then run the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">brew services restart httpd\n\n<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><strong>STEP <\/strong><\/strong>3: <span style=\"color:#6d0606\" class=\"has-inline-color\">Install <\/span><strong><strong><span style=\"color:#6d0606\" class=\"has-inline-color\">MYSQL Server for database creation by executing the following commands and when a password is asked after the below three commands, simply press E<\/span><span style=\"color:#83050f\" class=\"has-inline-color\">NTER<\/span><\/strong><\/strong><\/h5>\n\n\n\n<pre id=\"block-560e1d10-1001-4570-bc08-a376b6336e19\" class=\"wp-block-preformatted\">brew install mysql\nbrew services start mysql\n\/usr\/local\/mysql\/bin\/mysql -u root -p\ncreate database magento3;\nCREATE USER 'magento3user'@'localhost' IDENTIFIED BY 'magento3';\nGRANT ALL PRIVILEGES ON *.* to 'magento3user'@'localhost';\nflush privileges;\nexit;\n\n<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><strong>STEP 4:<\/strong><\/strong> <strong><span style=\"color:#6d0606\" class=\"has-inline-color\">Setting and installing PHP 7.4 and its modules<\/span><\/strong><\/h5>\n\n\n\n<p>The&nbsp;commands&nbsp;necessary&nbsp;to&nbsp;manually&nbsp;install&nbsp;PHP&nbsp;7.4&nbsp;on&nbsp;macOS&nbsp;are&nbsp;listed&nbsp;below.&nbsp;Check&nbsp;the&nbsp;package&nbsp;names&nbsp;correctly&nbsp;on&nbsp;your&nbsp;macOS&nbsp;terminal.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">brew install php@7.4 \nbrew services start php@7.4\n\n<\/pre>\n\n\n\n<p><strong>(i) PHP Configuration<\/strong><\/p>\n\n\n\n<p>PHP would not run if we try running PHP on Apache just like we do. For this purpose, we have to <strong><span style=\"color:#530951\" class=\"has-inline-color\">return to our httpd.config file <\/span><\/strong>by executing the command below:<\/p>\n\n\n\n<pre id=\"block-29aa463e-d87e-4b22-a321-ace93af31ac0\" class=\"wp-block-preformatted\">nano \/usr\/local\/etc\/httpd\/httpd.conf\n\n<\/pre>\n\n\n\n<p>Now, adding up the path to PHP 7.4 module in httpd.conf file<\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p> LoadModule php7_module \/usr\/local\/opt\/php@7.4\/lib\/httpd\/modules\/libphp7.so LoadModule php7_module libexec\/apache2\/libphp7.so<\/p><p><\/p><\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/load-module-3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"610\" height=\"130\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/load-module-3.png\" alt=\"\" class=\"wp-image-9322\"\/><\/a><\/figure>\n\n\n\n<p>Additionally, you will find the <strong>&#8220;<span style=\"color:#530951\" class=\"has-inline-color\">DirectoryIndex index.html<\/span>&#8221; <\/strong>as shown below:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/directory.png\"><img loading=\"lazy\" decoding=\"async\" width=\"729\" height=\"113\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/directory.png\" alt=\"\" class=\"wp-image-9317\"\/><\/a><\/figure>\n\n\n\n<p>After finding it, <strong><span style=\"color:#530951\" class=\"has-inline-color\">update it as follows<\/span>:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>DirectoryIndex index.php index.html<\/p><p><\/p><\/blockquote>\n\n\n\n<p>and <strong>add the following:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>&lt;FilesMatch \\.php$&gt;<\/p><p>SetHandler application\/x-httpd-php<\/p><p>&lt;\/FilesMatch&gt;<\/p><p><\/p><\/blockquote>\n\n\n\n<p>It will be similar to,<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/file.png\"><img loading=\"lazy\" decoding=\"async\" width=\"714\" height=\"215\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/file.png\" alt=\"\" class=\"wp-image-9321\"\/><\/a><\/figure>\n\n\n\n<p>Save the file and restart the apache service after performing this action.<\/p>\n\n\n\n<pre id=\"block-ea77b511-b156-443b-99a3-d72a977a6263\" class=\"wp-block-preformatted\">brew services restart httpd\n\n<\/pre>\n\n\n\n<p>In the <strong><span style=\"color:#530951\" class=\"has-inline-color\">~\/.zshrc file<\/span><\/strong>, add the <strong><span style=\"color:#530951\" class=\"has-inline-color\">path to PHP 7.4<\/span> <\/strong>installation&nbsp;with the command line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'export PATH=\"\/usr\/local\/opt\/php@7.4\/bin:$PATH\"' &gt;&gt; ~\/.zshrc\necho 'export PATH=\"\/usr\/local\/opt\/php@7.4\/sbin:$PATH\"' &gt;&gt; ~\/.zshrc\n\n\nNow, update the file <strong><span style=\"color:#530951\" class=\"has-inline-color\">~\/.bash profile<\/span> <\/strong>and <strong><span style=\"color:#530951\" class=\"has-inline-color\">connect the path to PHP 7.4<\/span><\/strong> by running the commands:<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">echo 'export PATH=\"\/usr\/local\/opt\/php@7.4\/bin:$PATH\"'\n\n<\/pre>\n\n\n\n<p>Meanwhile, make some changes to<span style=\"color:#530951\" class=\"has-inline-color\"> <strong>php.ini file<\/strong><\/span><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/usr\/local\/etc\/php\/7.4\/php.ini \n\n<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>max_execution_time = 360<br>memory_limit = -1<br>upload_max_filesize = 1024M<br>short_open_tag = On<br>date.timezone = America\/Chicago<\/p><p><\/p><\/blockquote>\n\n\n\n<p>Save and exit, php.ini file and then run the command below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">brew services restart httpd\n\n<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><strong>STEP 5:<\/strong><\/strong> <span style=\"color:#6d0606\" class=\"has-inline-color\">After the above steps,<\/span> <span style=\"color:#6d0606\" class=\"has-inline-color\"><strong><strong>install<\/strong><\/strong> <strong>the composer<\/strong><\/span><\/h5>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>brew install composer<br>brew install wget<br>\/usr\/local\/Cellar\/composer\/2.0.8\/bin<br>wget&nbsp;<a href=\"https:\/\/getcomposer.org\/download\/1.10.17\/composer.phar\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/getcomposer.org\/download\/1.10.17\/composer.phar<\/a><br>mv composer.phar composer<br>chmod -R 755 composer<\/p><p><\/p><\/blockquote>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><span class=\"has-inline-color has-black-color\">STEP 6: <\/span><span style=\"color:#6d0606\" class=\"has-inline-color\">Download Magento by using the composer:<\/span><\/strong><\/h5>\n\n\n\n<p>To install magento2 with composer, first,<strong> <span style=\"color:#530951\" class=\"has-inline-color\">create the Access keys of Magento marketplace. If you have an account on Magento Marketplace, simply sign in<\/span><\/strong> and generate the access keys. If you don\u2019t have an account, create an account by registering yourself on<strong> <a href=\"https:\/\/marketplace.magento.com\/\">marketplace.magento.com<\/a><\/strong><\/p>\n\n\n\n<p>For generating Access keys, login into Magento marketplace,<strong> <\/strong>and from the top right corner of the page where your user name is displayed, navigate to <strong><span style=\"color:#530951\" class=\"has-inline-color\">My profile &gt; Marketplace &gt; My products &gt; Access Keys<\/span><\/strong><\/p>\n\n\n\n<p>After all, create a new pair of Access keys. You need to provide the public Key as a username and the Private Key as a password when prompt.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo composer create-project --repository=https:\/\/repo.magento.com\/ magento\/project-community-edition magento3\n\n<\/pre>\n\n\n\n<p><span class=\"has-inline-color has-black-color\"><strong>STEP 7:<\/strong> <\/span><span style=\"color:#6d0606\" class=\"has-inline-color\"><strong>In addition, Enable requisite permissions and restart Apache2<\/strong><\/span><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo chmod -R 755 \/Users\/wadmin\/www\/magento3\nsudo chown -R wadmin:admin \/Users\/wadmin\/www\/magento3\n\n<\/pre>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>STEP 8: <span style=\"color:#6d0606\" class=\"has-inline-color\">Similarly, Install the Elastic Search to move further<\/span><\/strong><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">brew install elasticsearch\nbrew services start elasticsearch\nbrew services restart --all\n\n<\/pre>\n\n\n\n<p>The next step is to install Magento2. Open your browser first and enter&nbsp;<strong>\u201chttp:\/\/localhost\/magento2\u201d<\/strong>. You will get the output as similar below.<\/p>\n\n\n\n<figure class=\"wp-block-image is-style-default\"><img decoding=\"async\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/magento-final-1-1024x542.png\" alt=\"This image has an empty alt attribute; its file name is magento-final-1-1024x542.png\"\/><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong>STEP 9:<\/strong> <span style=\"color:#6d0606\" class=\"has-inline-color\"><strong>Likewise,&nbsp;execute&nbsp;the&nbsp;commands&nbsp;below&nbsp;to&nbsp;install&nbsp;Magento&nbsp;2&nbsp;by using&nbsp;the&nbsp;required&nbsp;variables&nbsp;such&nbsp;as&nbsp;host,&nbsp;database&nbsp;name,&nbsp;username,&nbsp;and&nbsp;password,&nbsp;etc.<\/strong><\/span><\/h5>\n\n\n\n<pre class=\"wp-block-preformatted\">cd \/home\/magento\/magento3\nbin\/magento setup:install --base-url=http:\/\/ Public IP Address or Domain Name --db-host=localhost --db-name=magento3 --db-user=magento3user --db-password=magento3 --admin-firstname=Admin --admin-lastname=User --admin-email=admin@example.com --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America\/Chicago --use-rewrites=1\n\n<\/pre>\n\n\n\n<p>when this command is successfully executed, <strong><span style=\"color:#530951\" class=\"has-inline-color\">the output will be identical as seen in the image below:<\/span><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/installation.png\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"285\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/installation.png\" alt=\"\" class=\"wp-image-9304\"\/><\/a><\/figure>\n\n\n\n<p>while the installation&nbsp;of&nbsp;Magento2&nbsp;has&nbsp;been&nbsp;successfully&nbsp;completed, go to your browser and enter the IP address or your domain name. As a result, the homepage of your default eCommerce website will be like this: <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/homepage-apple.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"542\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/homepage-apple-1024x542.png\" alt=\"\" class=\"wp-image-9324\"\/><\/a><\/figure>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><span class=\"has-inline-color has-black-color\">STEP 10: <\/span><\/strong><span style=\"color:#6d0606\" class=\"has-inline-color\"><strong>Magento configuration<\/strong><\/span><\/h5>\n\n\n\n<p>After all the above steps, you can now access your admin panel by using your credentials. Therefore, the admin login will open as in the image below. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/sign-in-1024x571.png\" alt=\"\" class=\"wp-image-9257\"\/><\/figure>\n\n\n\n<p>You can&#8217;t log in to Magento Admin Panel after installation <strong><span style=\"color:#530951\" class=\"has-inline-color\">since two-factor authentication has been implemented in Magento2.4<\/span><\/strong> and won&#8217;t be allowed you to log in. Hence, a page similar to the one below will open.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/mage.png\"><img loading=\"lazy\" decoding=\"async\" width=\"901\" height=\"593\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/mage.png\" alt=\"\" class=\"wp-image-9283\"\/><\/a><\/figure>\n\n\n\n<p>Moreover, to log in, we need a working email id. And then Magento sends an email to conduct the authentication on the given email id. In that case, the 2-factor authentication module must need to be disabled and later set up by the admin panel. Thus, we can <strong><span style=\"color:#530951\" class=\"has-inline-color\">disable 2FA by using the below command in the Magento web root directory:<\/span><\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\"><p><\/p><p>bin\/magento module:disable Magento_TwoFactorAuth<\/p><p><\/p><\/blockquote>\n\n\n\n<p><strong>**<span style=\"color:#530951\" class=\"has-inline-color\">We highly recommend you to continue with 2-factor authentication<\/span>**<\/strong><\/p>\n\n\n\n<p>It looks like,<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/2fa.png\"><img loading=\"lazy\" decoding=\"async\" width=\"727\" height=\"136\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/2fa.png\" alt=\"\" class=\"wp-image-9318\"\/><\/a><\/figure>\n\n\n\n<p>At last,&nbsp;the&nbsp;admin&nbsp;panel&nbsp;is&nbsp;accessible. In addition, this is what the <strong><span style=\"color:#530951\" class=\"has-inline-color\">default admin dashboard looks like.<\/span><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><a href=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/mag.dash_.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"588\" src=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/mag.dash_-1024x588.png\" alt=\"\" class=\"wp-image-9326\"\/><\/a><\/figure>\n\n\n\n<p>In short, your <strong><span style=\"color:#530951\" class=\"has-inline-color\">eCommerce platform is ready to use.<\/span><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"block-4c9c8023-022d-416a-9ba1-5e080a0fecb0\"><strong><span class=\"has-inline-color has-black-color\">Thanks For Reading!<\/span><\/strong><\/h2>\n\n\n\n<p id=\"block-b20388cb-c38d-41a6-b65f-dfc7d787cdf9\">At last, we hope it works for you! And during this blog, you have found something valuable.<\/p>\n\n\n\n<p><strong><span style=\"color:#6d0606\" class=\"has-inline-color\">Keep in touch!!<\/span><\/strong><\/p>\n\n\n\n<p><em><strong>In case of any help or query, please<\/strong>&nbsp;<a href=\"https:\/\/cloudkul.com\/contact\/\"><strong>contact<\/strong><\/a>&nbsp;<strong>us or raise a<\/strong>&nbsp;<strong><a href=\"https:\/\/webkul.uvdesk.com\/en\/customer\/create-ticket\/\">ticket<\/a>.<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, we&#8217;ll learn Magento 2.4 Installation On macOS.&nbsp;You can also follow my blogs <a class=\"text-primary\" title=\"read more\" href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[65,178,574,575,566,572,576,570,114,281,573,28,556],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Learn Magento 2.4 Installation On macOS - Cloudkul<\/title>\n<meta name=\"description\" content=\"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Learn Magento 2.4 Installation On macOS - Cloudkul\" \/>\n<meta property=\"og:description\" content=\"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\" \/>\n<meta property=\"og:site_name\" content=\"Cloudkul\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-10T04:13:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-10T04:14:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/port-80-1.png\" \/>\n<meta name=\"author\" content=\"Bhawana Dehran\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\",\"url\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\",\"name\":\"Learn Magento 2.4 Installation On macOS - Cloudkul\",\"isPartOf\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\"},\"datePublished\":\"2021-08-10T04:13:59+00:00\",\"dateModified\":\"2021-08-10T04:14:03+00:00\",\"author\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62\"},\"description\":\"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.\",\"breadcrumb\":{\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cloudkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Learn Magento 2.4 Installation On macOS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#website\",\"url\":\"https:\/\/cloudkul.com\/blog\/\",\"name\":\"Cloudkul\",\"description\":\"Host your eCommerce Store on AWS with Optimized Performance\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cloudkul.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62\",\"name\":\"Bhawana Dehran\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g\",\"caption\":\"Bhawana Dehran\"},\"description\":\"Business Development Executive\",\"url\":\"https:\/\/cloudkul.com\/blog\/author\/bhawanadehran-bd033\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Learn Magento 2.4 Installation On macOS - Cloudkul","description":"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.","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:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/","og_locale":"en_US","og_type":"article","og_title":"Learn Magento 2.4 Installation On macOS - Cloudkul","og_description":"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.","og_url":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/","og_site_name":"Cloudkul","article_published_time":"2021-08-10T04:13:59+00:00","article_modified_time":"2021-08-10T04:14:03+00:00","og_image":[{"url":"https:\/\/cloudkul.com\/blog\/wp-content\/uploads\/2021\/01\/port-80-1.png"}],"author":"Bhawana Dehran","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/","url":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/","name":"Learn Magento 2.4 Installation On macOS - Cloudkul","isPartOf":{"@id":"https:\/\/cloudkul.com\/blog\/#website"},"datePublished":"2021-08-10T04:13:59+00:00","dateModified":"2021-08-10T04:14:03+00:00","author":{"@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62"},"description":"To survive online, the right platform plays a significant role. In this blog, we\u2019ll learn Magento 2 Installation on macOS locally.","breadcrumb":{"@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/cloudkul.com\/blog\/how-to-install-magento-2-4-on-macos\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cloudkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Learn Magento 2.4 Installation On macOS"}]},{"@type":"WebSite","@id":"https:\/\/cloudkul.com\/blog\/#website","url":"https:\/\/cloudkul.com\/blog\/","name":"Cloudkul","description":"Host your eCommerce Store on AWS with Optimized Performance","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cloudkul.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/1c8f54067c7f81f91da6df1534ce8d62","name":"Bhawana Dehran","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cloudkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5f035955c6c9130a5f553568a78b245c?s=96&d=https%3A%2F%2Fs.gravatar.com%2Favatar%2F6148c37469011bc2f8e491ca8f5de495%3Fs%3D80&r=g","caption":"Bhawana Dehran"},"description":"Business Development Executive","url":"https:\/\/cloudkul.com\/blog\/author\/bhawanadehran-bd033\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9301"}],"collection":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/users\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/comments?post=9301"}],"version-history":[{"count":28,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9301\/revisions"}],"predecessor-version":[{"id":9948,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/posts\/9301\/revisions\/9948"}],"wp:attachment":[{"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/media?parent=9301"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/categories?post=9301"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudkul.com\/blog\/wp-json\/wp\/v2\/tags?post=9301"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}