Try to access admin by siteurl/index.php/admin
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.
How can I solve it?
Thank you.
Hello @jason_long ,
Try to access admin by siteurl/index.php/admin
siteurl?
As you see, it is "127.0.0.1".
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
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:
$realPath = $this->fileDriver->getRealPath($path);
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Hope it will help you.
I added these lines but problem exist.
This line not exist:
# cat /var/www/html/vendor/magento/framework/View/Element/Template/File/Validator.php | grep "$realPath = $this->fileDriver->getRealPath($path);" #
@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'.
I'm using Lamp.
Any idea?