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
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.
This issue occurs because of PHP version, make sure you are using php 7.4 with Magento 2.4.x .
Hope it helps !
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 ?
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 --email@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 !
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.