cancel
Showing results for 
Search instead for 
Did you mean: 

Front page does not look right

SOLVED

Front page does not look right

Hello,

I have just installed Magento with sample data. After installation, the front page look like this. Can anyone help?

https://www.mediafire.com/convkey/4d74/wtr4ny6utv6wacszg.jpg

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Front page does not look right

Hi @chuong_lam,

There may be some issue with permissions on the server in generations of static files. And make sure that you have ". htaccass" file in pub/static folder.

Sometime there are versioning issue in the url, you can remove this as well from admin. 


You need to turn off configuration option from backend.

Stores>Configuration>Advanced>Developer>Sign Static Files select No


Try the following command to setup proper permission to magento directory.

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

use sudo if you have sudo access.

After it run the following magento commands in the sequence.


Upgrade and compile command are optional.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/


I hope it will help you! 

View solution in original post

5 REPLIES 5

Re: Front page does not look right

Hi @chuong_lam,

There may be some issue with permissions on the server in generations of static files. And make sure that you have ". htaccass" file in pub/static folder.

Sometime there are versioning issue in the url, you can remove this as well from admin. 


You need to turn off configuration option from backend.

Stores>Configuration>Advanced>Developer>Sign Static Files select No


Try the following command to setup proper permission to magento directory.

find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && chmod u+x bin/magento

use sudo if you have sudo access.

After it run the following magento commands in the sequence.


Upgrade and compile command are optional.

chmod -R 0777 var/ pub/ generated/
rm -rf var/cache/* var/view_preprocessed/* generated/* pub/static/*
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento indexer:reindex
chmod -R 0777 var/ pub/ generated/


I hope it will help you! 

Re: Front page does not look right

@chuong_lam  is your css load correctly??

Re: Front page does not look right

Please check the log file for exact error. As I can see the style files are not generated due to permission and ownership issue. Please read the following instruction to set correct ownership and permission. https://devdocs.magento.com/guides/v2.3/install-gde/prereq/file-sys-perms-over.html

Re: Front page does not look right

I fixed the problem by following the instruction of @Vimal Kumar . Thank you for the support.

Re: Front page does not look right

HI @chuong_lam 

 

I am glad to help you!