I am installing magento on local ubuntu machine but after completion of installation 404 error is coming .
i tried many things to solve it but couldn't get any solution .
can anyone tell me how to solve it ?
could you please confirm ? you have run all the require commands from the SSH terminal ? then you have a .htaccess file in the root directory of Magento 2 and then rewrite mode on ?
yes i completed all ssh command but .htaccess file is not there in the root directory .
Hello @sachin_dubey2
Then you will require to put/create .htaccess files in the root directory of your magento 2 !
create .htaccess file and write the content in it from this link - https://github.com/magento/magento2/blob/2.3-develop/.htaccess
then run the below commands in sequence :
php bin/magento setup:upgrade php bin/magento setup:di:compile php bin/magento setup:static-content:deploy -f php bin/magento cache:clean php bin/magento cache:flush
then check it will works ! Hope it helps !
i did that now i am getting new error .