How to Install Magento 2.3.2 with Sample Data Under Local Host?

Download magento2.3.2 at,

Remember use, instead of using localhost to intall magento. Otherwise, you will meet an error when you login the admin panel.

You may also meet a black page when you login the admin panel even if you use How to resolve this issue then?

Very easy, go to vendor\magento\framework\View\Element\Template\File, and edit Validator.php, replace:

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


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

or do as:

Go to file Magento\Framework\View\Element\Template\File\Validator.php line 138
$realPath = $this->fileDriver->getRealPath($path);
Add after
$realPath = str_replace(‘\\’, ‘/’, $realPath);

Another thing you need to do, refresh the cache when you login the admin panel, otherwise a blank homepage will meet you!