I have installed Magento version 2.4.2 in XAMPP - Ubuntu,
installation was successful with elastic search,
but when I run the front and back URL, it's not load properly,
when I see in console its look like the CSS and JS are not load,
I see the path of css and js, in the path pub folder is missing,
I have attached the below screen shot.
please help me with this.
Hi @R K Solanki ,
First Try disabling version number from the files using below ways
You can disable option in your admin
Stores>Configuration>Advanced>Developer>Sign Static Files (dev_static_sign)
Or simply insert this row in your core_config_data table
insert core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);
Also check if we have .htacess file in pub/static folder. if not , try to recreate that file and run
content deploy command.
Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!
Hello @R K Solanki
Please follow step 4 at https://meetanshi.com/blog/install-magento-2-4-2-on-localhost-using-xampp/ to solve your issue.
I hope it helps.