Magento Simple CMD
Magento Simple CMD
Magento Simple CMD
1)
-----------------------------------------------------------------------------------
-------------------
composer create-project --repository-url=https://repo.magento.com/ magento/project-
community-edition Project_2 2.4.6
-----------------------------------------------------------------------------------
--------------------
mysql -u root -p
password : root
3)
-----------------------------------------------------------------------------------
-----------------
sudo php bin/magento setup:install --base-url=http://127.0.0.1/php81/Project_2/pub/
--db-host=localhost --db-name=Project_2 --db-user=root --db-password=root@123 --
admin-firstname=admin --admin-lastname=admin --admin-email=admin@gmail.com --admin-
user=admin --admin-password=admin123 --language=en_US --currency=USD --
timezone=America/Chicago --use-rewrites=1 --search-engine=elasticsearch7 --
elasticsearch-host=localhost --elasticsearch-port=9200
-----------------------------------------------------------------------------------
-------------------------
sudo chmod -R 777 app/ generated/ var/ pub/
bin/magento sampledata:deploy
--------------------------------------------------------
--------------------------
php bin/magento cron:run
-----------------
bin/magento deploy:mode:set developer
--------------------------------------------------------------------
$writer = new \Zend_Log_Writer_Stream(BP . '/var/log/custom.log');
$logger = new \Zend_Log();
$logger->addWriter($writer);
--------------------------------------------------------
sudo service elasticesearch start
to display product