cancel
Showing results for 
Search instead for 
Did you mean: 

Magengo 2 local to Live setup issue

Magengo 2 local to Live setup issue

 

I have installed Magento Version 2.3.2 on the local window system XAMPP server. It is working fine but when I have transferred the code on the live CentOS system than many files not loaded. My project URL: http://103.29.106.30//magento232/

Request URL/pub/static/version1571050386/frontend/Magento/luma/en_AU/Magento_Ui/templates/tooltip/tooltip Status code: 404 Not Found
Request URL:/pub/static/version1571050386/frontend/Magento/luma/en_AU/Magento_Ui/templates/modal/modal-slide Status code: 404 Not Found
Request URL/pub/static/version1571050386/frontend/Magento/luma/en_AU/Magento_Ui/templates/modal/modal-popup Status code: 404 Not Found
Request URL:/pub/static/version1571050386/frontend/Magento/luma/en_AU/Magento_Ui/templates/modal/modal-custom  Status code: 404 Not Found

11 REPLIES 11

Re: Magengo 2 local to Live setup issue

Hello @Anees Magento 

 

Run the below commands:

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
chmod -R 777 var pub generated

Hope it helps.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Magengo 2 local to Live setup issue

I have already done below command. but issue not solved

 

php bin/magento setup:static-content:deploy -f
php bin/magento cache:flush
php bin/magento cache:clean
chmod -R 777 var pub generated

Re: Magengo 2 local to Live setup issue

Hello, @Anees Magento again!

 

Remove version from the URL and run all the commands again.

 

You may refer https://magento.stackexchange.com/questions/159728/why-its-adding-version-no-in-js-and-css-url-in-ma...

 

Thanks.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Magengo 2 local to Live setup issue

Just comment .htaccess file /pub/static/.htaccess but not working

 

http://103.29.106.30/magento232/

 

#RewriteRule ^version.+?/(.+)$ $1 [L]

Re: Magengo 2 local to Live setup issue

@Anees Magento 

 

https://drops.meetanshi.com/tb0rPW

 

As you can see in the above screenshot, the version is not yet removed.

This is a permission issue.

 

Please remove the version from the URL and then run the commands.

It will resolve the issue.

 

Thanks.

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Magengo 2 local to Live setup issue

How did remove the versions? Please tell me step.

Re: Magengo 2 local to Live setup issue

@Anees Magento 

 

To remove the version, follow any of the two methods:

Method 1 - From the Admin Panel

  1. Go to Stores > Configuration > Advanced > Developer > Sign
  2. Select No for Static Files

Method 2 - From the Database

insert into core_config_data (config_id, scope, scope_id, path, value) values (null, 'default', 0, 'dev/static/sign', 0);

 

Thanks

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Magengo 2 local to Live setup issue

Just removed the version but same issue shows. I am not able to open admin menu popup store,System and also frontend sub menu.

http://103.29.106.30/magento232/

 

Request method:GET
Remote address:103.29.106.30:80
Status code: 404 Not Found
Version:HTTP/1.1
Referrer Policy:no-referrer-when-downgrade

Re: Magengo 2 local to Live setup issue

Just removed the version but same issue shows. I am not able to open admin menu popup store,System and also frontend sub menu.

Request URL: /pub/static/frontend/Magento/luma/en_AU/Magento_Ui/templates/modal/modal-popup

Request method:GET
Remote address:103.29.106.30:80
Status code: 404 Not Found
Version:HTTP/1.1
Referrer Policy:no-referrer-when-downgrade