cancel
Showing results for 
Search instead for 
Did you mean: 

CSS & JS not loading. + File ownership

CSS & JS not loading. + File ownership

I'm doing a clean install of Magento 2 on a Raspberry Pi. I want to use it as a test perhaps

PHP 7.0 
MariaDB 10

Apache 

Raspian/Dabian

 

It installed on the Pi but no css or JS loads. I change the apache2 to have the

Allowoveride all

to work. I'm thinking maybe the file ownership is off? The owner is pi the group is www-data Does that look right? The var/cache dir fills up when the site is freshly called so I think thats the right owner and group. Any other suggestions?   

3 REPLIES 3

Re: CSS & JS not loading. + File ownership

@soonerdm

 

DId you deploy static content after installing magento? 

 

FYI - all directories either should be 755 or 775 and files can be 664 or 644

 

I hope that helps. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: CSS & JS not loading. + File ownership

I blew the files away and actually read the directions on private web server permissions. It works. 

Pretty cool to have an instance running on a Pi

 

Thanks for your help. 

Re: CSS & JS not loading. + File ownership

Fantastic. No worries. you're welcome. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post