cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 Install Issue

Magento 2 Install Issue

Hi Experts,

 

I am facing the problem while install the Magento 2 while open the localhost : http://localhost/magento2/setup/#/landing-install

 

Parse error: syntax error, unexpected ')' in C:\xampp\htdocs\magento2\setup\src\Magento\Setup\Module.php on line 82

 

One of expert suggested to remove the "," in line 81 in the module.php file, after that issue resolved and page is opening with version on the link : http://localhost/magento2/setup/#/landing

 

Magento 

Version 2.4.1

Welcome to Magento Admin, your online store headquarters.
Please review Terms & Agreement and read Getting Started to learn how to install Magento using the command line.

 

But not able to see the Agree and Setup Magento  for further process.

 

Please suggest

 

BR,

Santosh

5 REPLIES 5

Re: Magento 2 Install Issue

Hello @srshivaneg8a15 

 

This issue occurs because of PHP version, make sure you are using php 7.4 with Magento 2.4.x .

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2 Install Issue

Hi ,

I have checked php 7.4 version is there but still not able to see the Install option on the localhost Magento 2.4

XAMPP for Windows 7.2.34, 7.3.24 & 7.4.12

7.4.12 / PHP 7.4.12

is there any way to install ?

 pl. suggest.

BR,

Santosh

 

Re: Magento 2 Install Issue

@srshivaneg8a15 

The above suggestion was for the error you get initially, and to install Magento, you need to install it from command line, please follow command below :

php bin/magento setup:install --base-url=http://127.0.0.1/magento2/ \
--db-host=localhost --db-name=magento --db-user=magento --db-password=magento \--admin-firstname=Magento --admin-lastname=User --admin-email=user@example.com \--admin-user=admin --admin-password=admin123 --language=en_US \--currency=USD --timezone=America/Chicago --use-rewrites=1 \--search-engine=elasticsearch7 --elasticsearch-host=es-host.example.com \--elasticsearch-port=9200

Note: change your data accordingly

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Magento 2 Install Issue

Hi,

Thanks for the reply.

I am new in the Magento.

1. You are correct,  phpadmin is 5.0 in xampp, can you suggest how to update phpadmin 7.4 in the xampp or if any other way to update the php, please suggest the link.

2. How and where to open the command line.

Thanks in advance.

BR,

Santosh

Re: Magento 2 Install Issue

Helo @srshivaneg8a15 

You should watch this video for help

 

https://www.youtube.com/watch?v=3RFw9j4ihag

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now