cancel
Showing results for 
Search instead for 
Did you mean: 

Admin uri is not accessible after cloning the vps

SOLVED

Admin uri is not accessible after cloning the vps

Hello, 

I cloned my vps with the fully operating magento installation. 

Now I have two identical servers, the only difference is their public IP. 

The new clone has no domain address pointed. 

When I try to access to the admin uri of the new cloned server as below: 

https://public_ip_of_the_clone/admin_uri

it redirects me to the 

https://domain_name_of_the_original_server/admin_uri. 

 

After googling, I feel like I have to update the web_uri and web_secure_uri from the mysql database. But I don't want to use any domain name to access to the new clone. Could you please guide me to access https://public_ip_of_the_clone/admin_uri. Should I change the web_uri and the web_secure_uri from mysql? 

 

Thanks in advance

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Admin uri is not accessible after cloning the vps

Hi @hncr,


If you execute this query:

 

select * from core_config_data where path like 'web%url' 

You'll see the values configured.

You can replace, for example, the specific values with:

 

update core_config_date set value = 'http://192.168.1.1' where config_id = ID;

The new IP should be yours and the ID you'll get it with the first query.

If you are more confident maybe you can execute this:

 

update core_config_data set value = replace(value,'your.old.domain.com','192.168.1.1') where path like 'web/%/%url%' and value like '%your.old.domain.com%';

Again, the IP should be your new VPS IP address.

View solution in original post

1 REPLY 1

Re: Admin uri is not accessible after cloning the vps

Hi @hncr,


If you execute this query:

 

select * from core_config_data where path like 'web%url' 

You'll see the values configured.

You can replace, for example, the specific values with:

 

update core_config_date set value = 'http://192.168.1.1' where config_id = ID;

The new IP should be yours and the ID you'll get it with the first query.

If you are more confident maybe you can execute this:

 

update core_config_data set value = replace(value,'your.old.domain.com','192.168.1.1') where path like 'web/%/%url%' and value like '%your.old.domain.com%';

Again, the IP should be your new VPS IP address.