Run the following CLI command to install Magento 2 sample data.
php bin/magento sampledata:deploy
Add Access Key. You can get from Market Place
Note: If you get a memory error message, run the following command.
php -d memory_limit=2G bin/magento sampledata:deploy
After successfully installing Magento2 sample data, run the following commands one by one.
try to install magento2 with Command
its work fast
php bin/magento setup:install --base-url="http://localhost/mag234/" --db-host="localhost" --db-name="mag234" --db-user="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="firstname.lastname@example.org" --admin-user="admin" --admin-password="admin123" --language="en_US" --currency="INR" --timezone="...
Most of the time these type of errors come when you try to install magento2 previously and it was failed due to some reason.
and you have started your installation process again after removing all of the previous installed files and removed old database entry.
So, to overcome this issue, before starting your installation process, just remove your browser's ...
Try editing php.ini with
sudo nano /etc/php/7.3/apache2/php.ini
max_execution_time = 18000
max_input_time = 1800
memory_limit = 1024M
Then restart apache with sudo service apache2 restart
and refresh the browser
I had to wait a while but finally it worked
Try with this command
php -d memory_limit=-1 /usr/local/bin/composer create-project --repository=https://repo.magento.com/
magento/project-community-edition --ignore-platform-reqs .
usually the path of composer is here:
If you are having problems with composer path , run the command below to find which path is the composer :