cancel
Showing results for 
Search instead for 
Did you mean: 

after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

1.jpg2.pngafter 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?

5 REPLIES 5

Re: after I finished the Installing Magento 2.2.5 , the web page 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?

Re: after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

sorry how can i do it?

Re: after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

Hi @ideamanga,

 

Right click on your page, choose "Inspect".

Then you'll see something like:

 

 Selección_002.png

 

Then click on "Network"

 

Selección_003.png

 

 

And then reload the page.

 

Selección_005.png

 

 

I guess you'll find several assets with error 404.

Can you confirm that?

 

Re: after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

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"

Re: after I finished the Installing Magento 2.2.5 , the web page is messy! what can i do for it?

Please check browser console and you will find 404 all css and js.

 

please rename htaccess file of pub/static directory.