cancel
Showing results for 
Search instead for 
Did you mean: 

backend and frontend Css and JS not loading on fresh magento 2.3

backend and frontend Css and JS not loading on fresh magento 2.3

Hi,

 Preconditions

1. Magento version 2.3
2. server: Php 7.1

 

**### Steps to reproduce (*)**

1. Download Magento2.3 from magento site
2. upload zip on live server and install following magento install instructions

 

**### Expected result (*)**

1. beautiful luma theme on magento2.3 site
2. No errors

**### Actual result (*)**

1. css and js not loading on frontend and backend
see image
Screenshot 2019-02-13.png

Screenshot 2019-02-13.png

**Solutions I have tried**
ran these on command line

find . -type f -exec chmod 644 {} ;
find . -type d -exec chmod 755 {} ;
find ./generated -type d -exec chmod 777 {} ;
find ./pub/media -type d -exec chmod 777 {} ;
find ./pub/static -type d -exec chmod 777 {} ;
chmod 777 ./app/etc
chmod 644 ./app/etc/*.xml

still not working. Please help?

thanks.

3 REPLIES 3

Re: backend and frontend Css and JS not loading on fresh magento 2.3

Hello @Bene ,

 

Can you please make sure user and group are perfect for Magento?

Also give below permission and try to generate static content

php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
rm -rf pub/static/frontend/* pub/static/adminhtml/* var/cache/ var/generation/ var/page_cache/ var/view_preprocessed/ var/composer_home generated/
php -dmemory_limit=6G bin/magento setup:static-content:deploy -f
chmod -Rf 777 pub/ var/ generated/

--
If my answer is useful, please Accept as Solution & give Kudos

Re: backend and frontend Css and JS not loading on fresh magento 2.3

hi,

 

I have tried those its still not working

Re: backend and frontend Css and JS not loading on fresh magento 2.3

deplay static content

@ the end of the command add your language, I have instlalled 2,  en_US for the backend and nl_NL for frontend.

So I run both. You should set language for your installed languages.

bin/magento setup:static-content:deploy -f


bin/magento setup:static-content:deploy -f nl_NL
bin/magento setup:static-content:deploy -f en_US