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
1

1 Answer 1

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

4
  • I am getting this warning: 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 Commented Sep 20, 2016 at 11:45
  • Please this command from your project root directory like : php bin/magento setup:static-content:deploy Commented Sep 20, 2016 at 11:52
  • Yes, I did that only Navin Commented Sep 20, 2016 at 11:53
  • Please follow this may be help: stackoverflow.com/questions/10565521/… Commented Sep 20, 2016 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.