cancel
Showing results for 
Search instead for 
Did you mean: 

error 404 on admin panel

error 404 on admin panel

Hello,

I installed magento 2.3.5-p1 on ubuntu 20.04LTS, apache 2 and php 7.3

I have an error 404 when i tried to reach admin panel

 

as indicated in severals old posts, i copied .htaccess file from ./pub to . folder but i have the same bad result.

someone could help me please ? i don't know what to do :-(

 

Thanks a lot for your help

 

6 REPLIES 6

Re: error 404 on admin panel

@turboclick 

 

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/*

Manish Mittal
https://www.manishmittal.com/

Re: error 404 on admin panel

Hello @turboclick 

 

First of check your domain link with pub or outside of the folder then do necessary changes.

 

then check url_rewrite mode enable or not, if not then enabled it.

 

hope it will work if works then mark as a solution

 

 


Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer

Re: error 404 on admin panel

Thanks a lot for you help but unfortunately, it doesn't work.

Do you have any other ideas ?

 

Re: error 404 on admin panel

Hello @Sunil Patel 

Thanks a lot for you help but honestly, i don't know how to check that. i am a c++ developer but not an expert in apache.

 

I just followed a tutorial.

Actually, i have a virtual host and magento is installed on it.

 

the virtualhost is written like this

<VirtualHost *:80>
ServerAdmin contact@my_website.net
ServerName my_website.net
ServerAlias www.my_website.net
DocumentRoot /var/www/my_website.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

 

How can i check that ?

Thanks again for your help

Re: error 404 on admin panel

Hi @turboclick 

Kindly refer below url :
https://www.simicart.com/blog/magento-admin-404/

It will help you to resolve admin 404 issue.

Problem solved? Click Accept as Solution!

Re: error 404 on admin panel

Hi @turboclick,

 

You need to enable mod_rewrite, download and re-upload file htaccess into your root folder. Then go to file app/etc/env.php and check whether frontName is set up or not. 

 

Let me know if you need further assistance. Hope it helps!

 

_____________

If issue solved, Click Kudos & Accept as Solution.

Marcus | LitExtension Expert
Shopping Cart Migration Service