3

I have installed vanilla (with sample data) Magento Community edition 2.4.2 on Mac OS with following technology stack however styles are not loaded at all, not even in head block. However I can see all CSS files in pub/static folder when content is deployed. As it can be seen in attached screenshot, there are NO errors in browser console as well.

enter image description here

Web server: Nginx

PHP: 7.4 with fpm

Elastic Search: v7

Mysql: 5.7.32 (Here I agree that on Magento's site Mysql 8 is recommended but with same version on linux, it works as expected.)

1
  • pcre.jit=0 is solution to php 7.4
    – Adrian R
    Commented Jul 6, 2021 at 22:02

3 Answers 3

2

You can try this if you have configured nginx correctly:

If you use php 7.4.20

Edit that php.ini file and find the section [Pcre] and add this line at the bottom of that section :

pcre.jit=0

Restart your PHP

see : Magento doesn't include theme.css in html

0

Make sure you are serving the requests from the <magento_root>/pub folder at webserver level.

2
0

Within this URL - https://devdocs.magento.com/guides/v2.4/install-gde/system-requirements.html - under the Operating Systems section - this is shared for your consideration. "Magento is not supported on Microsoft Windows and macOS."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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