Skip to main content
formatting, add relevant information in title, tags
Source Link
Fabian Schmengler
  • 66.1k
  • 25
  • 188
  • 422

CSS and JS not loading after installing Magento 2, setup:static-content:deploy shows error

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

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

CSS and JS not loading after installing Magento 2

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

CSS and JS not loading after installing Magento 2, setup:static-content:deploy shows error

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
added 291 characters in body
Source Link

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

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.

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

deleted 96 characters in body
Source Link

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. Then I installed using composer command Also the php magento setup:

composer create-project magento/community-edition magento2 -s dev --prefer-dist

Now, my CSS and JS arestatic-content:deploy command is not loadingworking.

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. Then I installed using composer command :

composer create-project magento/community-edition magento2 -s dev --prefer-dist

Now, my CSS and JS are not loading.

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.

Source Link
Loading