cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 on Mac install

Magento 2 on Mac install

Running cmd on MacOS

using MAMP as the linux server

Magento2-2.3

 

I am in the root directory of my magento server

xxxxxx@Peters-MBP magento2-2.3 % 

 

if I type in  magento:install or php magento:install I get

Could not open input file: bin\magento:install

 

the file is there as you can see

 

xxxxxxx@Peters-MBP bin % ls

magento

 

So frustrating...

 

 

5 REPLIES 5

Re: Magento 2 on Mac install

It seems like you are trying to run the Magento 2 installation command in the wrong directory. To run the command, navigate to the root directory of your Magento installation and then run the command as "php bin/magento setup:install". Make sure that you have all the required dependencies and configurations set up for your Magento installation.

Re: Magento 2 on Mac install

Is this not already my top directory ?

 

xxxxxx@Peters-MBP magento2-2.3 

 

CHANGELOG.md

auth.json.sample

lib

COPYING.txt

bin

nginx.conf.sample

Gruntfile.js.sample

composer.json

package.json.sample

LICENSE.txt

composer.lock

phpserver

LICENSE_AFL.txt

dev

pub

README.md

generated setup

SECURITY.md

grunt-config.json.sample

var

app

index.php

vendor

Re: Magento 2 on Mac install

I ran your command..got another error

 

xxxxx@Peters-MBP magento2-2.3 % php bin/magento setup:install  

SQLSTATE[HY000] [2002] No such file or directory

 

In InstallCommand.php line 264:

                               

  Parameter validation failed  

                               

Re: Magento 2 on Mac install

To run the Magento installation command on macOS using MAMP as the server, follow these steps:

  1. Open your terminal.
  2. Navigate to the root directory of your Magento server using the cd command.
  3. Run the command bin/magento install.

If you encounter any issues, provide more details such as your Magento installation setup and any error messages received.

Re: Magento 2 on Mac install

The key steps involved are as follows:

  1. Set up a local server stack like MAMP or XAMPP to create a web server environment with PHP, MySQL, and Apache.
  2. Download and configure Composer, a dependency management tool.
  3. Clone the Magento 2 repository from GitHub to obtain the code.
  4. Create a Magento 2 configuration file containing database credentials and other configurations.
  5. Install and configure Magento 2 using specific commands in the command line.
  6. Access the Magento 2 storefront and admin panel through a web browser.

By following these steps, users can successfully install Magento 2 on macOS for local development purposes.