I have installed Magento 2.2.2 and after install, I see only text from website. Css doesn't load.
I found some solutions for example:
Clear cache etc in var folder
rm -rf var/cache/ var/di/ var/generation/ var/page_cache/
Run Setup ( if any thing missing )
Deploy Static Content
Give Permission to var & pub folders
chmod -R 777 pub/ var/
It doesn't help. I have PHP 7.1. Apache mod rewrite is enabled. I also contact hosting support and they said, the site will access to
But this file doesn't exist. I don't have folder "/pub/static/version1513...." . I have only /pub/adminhtml, /pub/frontend and /pub/deployed_version.txt .
I don't know why it doesn't work.
Can you help me please?
Solved! Go to Solution.
I have solved the problem. Magento want access to a dynamic folder "/pub/static/Version1513859926" which I don't create it. I create folder Version1513.... and then Magento load css file. It is a dynamic folder, so Magento edit Versionnumber and so I edited this option in config Stores>Configuration>Advanced>Developer>Sign Static Files (dev_static_sign) -> No.
Now my site loads css from "/pub/static/adminhtml" (or frontend)
How did you change this setting? If I want to change the Sign Static Files, it is disabled.
You can change this settings by login to your magento admin panel -> then go to Stores>Configuration>Advanced>Developer>Sign Static Files (dev_static_sign) -> No.
You can also disable this from database by running below query :
insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);
I can't change this option. See the image below:
Also the SQL query doesn't work. I don't get an error, but it doesn't change anything.
if you don't want to change option then make sure .htaccess file there.
Hope it will help you
okay i understand - kindly run Update query into your database :
UPDATE core_config_data SET value = 0 WHERE path LIKE 'dev/static/sign';
It will works for you !!
Hi @Sunil Patel,
The .htaccess file is there and I updated the file. Unfortunately it doesn't change anything at all.
Okay, I found the solution. The media folder was not up to date. I exported the media folder on PC 1 and placed it in the media folder of PC 2. Everything works now.