A
A
Alexey Voropaev2018-04-12 01:34:30
Magento
Alexey Voropaev, 2018-04-12 01:34:30

Why doesn't js and css work after installing magento?

Hello, I installed Magento CE 2.2.3.
The installation was successful, but styles, pictures, etc. are not loaded.
What I tried:
1) Removed files from /pub/static
2) Run php bin/magento setup:static-content:deploy (files appeared, but did not solve the problem)
3) php bin/magento cache:clean
My site: wildthread.co
I tried to install 2 times on a live server and on a local one. Every time it's a problem. After installation, I did nothing but the points above
Server version: Apache/2.4.29 (cPanel)
Server built: Feb 28 2018 18:32:13
---
ea-php-cli Copyright 2017 cPanel, Inc.
PHP 7.0.28 (cgi-fcgi) (built: Mar 6 2018 09:28:13)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CodeKeeper, 2018-04-12
@CodeKeeper

Check the presence of .htaccess in the pub/static folder and also that the mod_rewrite module is enabled if apache is used. If nginx then the config for it lies in the magento root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question