Images or JS not showing on Magento 2 installation

Try this Before that take Backup

Remove everything, except .htaccess file from pub/static folder

Open up app/etc/di.xml find the path “Magento\Framework\App\View\Asset\MaterializationStrategy\Symlink” and replace to


Note: Remove entire files and folder under pub/static except .htaccess file.

For More info ref this

Other Solution

You can run below command from the Magento root folder.

 php bin/magento setup:static-content:deploy 

This will download the content perfectly in respective folders.

After successful installation Magento 2 getting blank page for admin login

After facing the same issue looking into the error area.
I have found a solution which is works for me.


The function isPathInDirectories added a line

 $realPath = str_replace('\\', '/', $realPath); 

Function details line number 133

protected function isPathInDirectories($path, $directories)
    if (!is_array($directories)) {
        $directories = (array)$directories;
    $realPath = $this->fileDriver->getRealPath($path);
    $realPath = str_replace('\\', '/', $realPath); // add this line here
    foreach ($directories as $directory) {
        if (0 === strpos($realPath, $directory)) {
            return true;
    return false;

It’s working fine now.

Laravel Homestead: Complete setup guide

Laravel strives to make the entire PHP development experience delightful, including your local development environment. Vagrant provides a simple, elegant way to manage and provision Virtual Machines.

Laravel Homestead is an official, pre-packaged Vagrant box that provides you a wonderful development environment without requiring you to install PHP, a web server and any other server software on your local machine.

Installation & Setup

Before launching your Homestead environment, you must install VirtualBox as well as Vagrant. This software packages provide easy-to-use visual installers for all popular operating systems.

Installing Homestead
if you are on windows machine go into your user folder like C:\Users\your user name, then open the terminal/cmder here and run this line below

 git clone 

Then if you don’t have .ssh folder into this directory (C:\Users\your user name) then run this command into cmder terminal

 ssh-keygen -t rsa -b 4096 -C "your"  

Then run vagrant up command, this command will add a virtual box, if it is not available then it will download it for you

 vagrant up  

To ssh in your virtual machine run this command

 vagrant ssh 

To exit


Then we have to map a folder from our local machine to virtual box machine. To do that create a folder into your user directory C:\Users\your user name called web for more click here Laravel Homestead: Complete Setup guide

This guy did a very good job, so don’t forget subscribe on his channel WebDevMatics