cancel
Showing results for 
Search instead for 
Did you mean: 

I installed Magento but can't open admin page.

I installed Magento but can't open admin page.

Hello.

I installed Magento but When I want to browse admin page then it show me below error:

The requested URL /admin_1axk8e/ was not found on this server.

magento.png

How can I solve it?

 

Thank you.

15 REPLIES 15

Re: I installed Magento but can't open admin page.

Hello @jason_long ,

 

Try to access admin by siteurl/index.php/admin

 
 
Please Accept as solution and kudos if it works for you!!

Re: I installed Magento but can't open admin page.

siteurl?

As you see, it is "127.0.0.1".

Re: I installed Magento but can't open admin page.

@jason_long 

 

Edit apache2.conf file and change following

 

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

or you may try to enable the rewrite module in the Apache

sudo a2enmod rewrite
sudo service apache2 restart

 

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: I installed Magento but can't open admin page.

Hi @jason_long 

 

As I can see you are installing Magento on localhost. To solve Magento 2.x admin page blank issue follow these steps:

 

  1. Navigate to #/vendor/magento/framework/View/Element/Template/File/Validator.php:114
  2. Find the below string:
    $realPath = $this->fileDriver->getRealPath($path);
  3. and replace it with:
    $realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

     

    Hope it will help you.

    ---
    If you've found one of my answers useful, please give"Kudos"  and "Accept as Solution"

Re: I installed Magento but can't open admin page.

I added these lines but problem exist.

Re: I installed Magento but can't open admin page.

This line not exist:

# cat /var/www/html/vendor/magento/framework/View/Element/Template/File/Validator.php | grep "$realPath = $this->fileDriver->getRealPath($path);"
#

Re: I installed Magento but can't open admin page.

@jason_longFrontend is working for you? What environment you are on Lamp/Mamp/Wamp etc?

 

Problem solved? Please give 'Kudos' and accept 'Answer as Solution'.

 

- Tarandeep
Problem solved?Please give 'Kudos' and accept 'Answer as Solution'.

Re: I installed Magento but can't open admin page.

I'm using Lamp.

Re: I installed Magento but can't open admin page.

Any idea?