after I finished the Installing Magento 2.2.5 , the web page(which home page and Admin page ) is is messy. what can i do for it?
Hi @ideamanga,
It seems static content isn't loading.
Can you check your browser console to see if you are getting 404s?
Maybe the .htaccess file inside /pub is missing?
sorry how can i do it?
Hi @ideamanga,
Right click on your page, choose "Inspect".
Then you'll see something like:
Then click on "Network"
And then reload the page.
I guess you'll find several assets with error 404.
Can you confirm that?
Hello @ideamanga,
There is some static content issue. Please run below command in Magento root directory
Below command for Magento files and directory permissions
find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; find ./var -type d -exec chmod 777 {} \; find ./pub/media -type d -exec chmod 777 {} \; find ./pub/static -type d -exec chmod 777 {} \; chmod 777 ./app/etc chmod 644 ./app/etc/*.xml;
Below command deploy static content, compile code, indexing content and clear cache
php bin/magento setup:upgrade php bin/magento setup:static-content:deploy -f php bin/magento setup:di:compile php bin/magento indexer:reindex php bin/magento cache:flush
If you still get an issue then let us know.
--
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution"
Please check browser console and you will find 404 all css and js.
please rename htaccess file of pub/static directory.