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
Solved! Go to Solution.
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!
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!
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
I fixed the problem by following the instruction of @Vimal Kumar . Thank you for the support.