0

I have recently installed Magento2. CSS and JS not loading after installing Magento 2. I have used composer to install. This magento 2 files I have taken by a checkout from a live website.

Also the php magento setup:static-content:deploy command is not working. Running this command gives the following error:

PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20131226/mongo.so' - /usr/lib/php5/20131226/mongo.so: cannot open shared object file: No such file or directory in Unknown on line 0 Could not open input file: magento
Fabian Schmengler
  • 65,791
  • 25
  • 187
  • 421

1 Answers1

0

please run this command form command prompt

php magento setup:static-content:deploy

The following command deploys static content for the US English (en_US) language, excludes the Luma theme provided with Magento, and does not minify HTML files.

generating static view files for one theme and one area The following command generates static view files for all languages, the frontend area only, the Magento Luma theme only, without generating fonts

for more info please visit :http://devdocs.magento.com/guides/v2.1/config-guide/cli/config-cli-subcommands-static-view.html

Navin Bhudiya
  • 2,988
  • 9
  • 37
  • 69