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
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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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