1

Just installed Magento 2 on a shared server, everything seemed successful, no errors, but the shop looks like this (css files not found, they return 403 Forbidden, but the files are actually missing):

enter image description here

It seems like the static content/css is not generated.

pub/static: enter image description here

The only file in pub/static/frontend/Magento/luma/locale is requirejs-config.js, but there were supposed to also be other files, such as those CSS files: enter image description here

I tried reinstalling it, changing folder permissions, different PHP version, nothing worked. It's strange that some folders are generated (also the requirejs file), but not the CSS.

How can I make sure the CSS is generated (without shell access) ?

Why would Magento clearly say installation was successful if it couldn't generate the static files? Can I somehow manually copy those static files?

Specs:

  • PHP Version 7.1
  • Magento CE 2.3.0
  • Installed on a shared server, only have cPanel access, no shell
1

Try to replace .htacess files of your 2.3.0 Magento version with Magento 2.2.x version .htaccess files in following directories.

  1. root
  2. Pub
  3. Pub/static
  • Thanks, will try that. Already tried 2-3 different .htaccess versions, but all of them were for 2.3.0 – Cristy Feb 15 at 13:41
0

try to execute the command from root of magento 2 directory to regenerate static content

php bin/magento s:s:d -f

  • I don't have shell access, it's a shared hosting. – Cristy Feb 15 at 13:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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