Blank admin page after installing Magento 2

Step 1:

open file /vendor/magento/framework/View/Element/Template/File/Validator.php in magento install dir , find

$realPath = $this->fileDriver->getRealPath($path)

replace with :

$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));

Step 2:
open file app/etc/di.xml in magento install dir, find

agento\Framework\App\View\Asset\MaterializationStrategy\Symlink

and replace with

Magento\Framework\App\View\Asset\MaterializationStrategy\Copy

Step 3:
Then go to var/cache , delete all folder / file

Step 4:
refresh the page, done.

Leave a Reply

Your email address will not be published. Required fields are marked *