cancel
Showing results for 
Search instead for 
Did you mean: 

Error 404 not found

Error 404 not found

I download magento 2 and extract it in xampp/ htdocs/ magento.

I created a database using phpmyadmin.

But when I open my browser and write localhost/magento it shown error 404 not found.

 

4 REPLIES 4

Re: Error 404 not found

Hi @rizwan023719db,

 

After downloading and unzipping in the directory have you done the commands to install Magento?

 

If you have done all the settings and still have the same error you can refer to this article for more information. 

 

Hope this can help you! Let me know if you need further assistance.

__________

If issue solved, Click Kudos & Accept as Solution

LitExtension - #1 Shopping Cart Migration Expert

LitExtension helps store owners and agencies migrate all important data from one eCommerce platform to another accurately, securely and at the highest speed.

Visit website: http://litextension.com/

Re: Error 404 not found

Hello   

For Linux edit the file /etc/apache2/apache2.conf

To edit this file use sudo vi /etc/apache2/apache2.conf command

<Directory /var/www/>
     Options Indexes FollowSymLinks
     AllowOverride None
     Require all granted
</Directory>

to

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

After this run command

sudo service apache2 restart

IF STILL ADMIN SHOW 404 NOT FOUND, FOLLOW THIS STEP

1) Add .htaccess at root of magento 2

https://github.com/magento/magento2/blob/2.3-develop/.htaccess

2) Now run this command

php bin/magento setup:upgrade

php bin/magento setup:static-content:deploy

rm -rf var/cache/*

rm -rf var/generation/*

@rizwan023719db

Re: Error 404 not found

Hello,

If you haven't install magento after downloading it then please folllow below guide and if you done it already and still getting issue then please add pub in your url.
https://devdocs.magento.com/guides/v2.4/install-gde/composer.html 

Re: Error 404 not found

Hello rizwan023719db,

 

After setting up a new Magento 2 store, you might face the issue of an admin 404 not found error, or any third-party extension can cause your admin login page to be inaccessible with a 404 error page.

 

You can resolve the 404 not found error page for admin by following the below steps,

 

Flush and Clear Magento Cache:

 

You must try to flush and clear the Magento cache by command line or remove folders manually.

 

php bin/magento cache:clean
rm -rf var/cache/*
rm -rf var/generation/*

You can also manually delete the cache and generate a folder inside a var folder.

 

Check the admin URL from the env.php file:

 

Navigate to: app/etc/env.php and open that file

 

Now, locate the admin URL with code like the below,

 

You can see/change the admin URL from @app/etc/env.php.

 

return array (

'backend' =>

array (

'frontName' => 'admin_q76xvk',

),

Thus, I hope the above methods help you to fix the Error 404 not found, and if the issue persists, update us here.

 

---------------------

Regards,
Rex M

 

AccuWeb Hosting | Magento Hosting