Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

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

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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