cancel
Showing results for 
Search instead for 
Did you mean: 

After successful Installation of Magento 2 on ubuntu 404 error is coming

After successful Installation of Magento 2 on ubuntu 404 error is coming

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 ? 

Screenshot from 2019-04-10 12-00-23.png

4 REPLIES 4

Re: After successful Installation of Magento 2 on ubuntu 404 error is coming

Hi @sachin_dubey2 

 

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 ?

if issue solved,Click Kudos & Accept as Solution

Re: After successful Installation of Magento 2 on ubuntu 404 error is coming

yes  i completed all ssh command but .htaccess file is not there in the root directory . 

Re: After successful Installation of Magento 2 on ubuntu 404 error is coming

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 !

if issue solved,Click Kudos & Accept as Solution

Re: After successful Installation of Magento 2 on ubuntu 404 error is coming

i did that now i am getting new error . 

Screenshot from 2019-04-10 16-18-41.png