Try the Demo

Magento

eCommerce Software for Online Growth

Magento Forum

Our new hosted solution for small & emerging businesses
   
Page 1 of 3
move magento from local server to live server w/out fresh install
 
edgarv
Jr. Member
 
Total Posts:  17
Joined:  2008-08-03
 

I need to move my magento local installation to a live server but I can’t do a clean install on the live server with the exact same database settings as my local server. For instance, my local server database connection users root > root (as username and password). But my live server can only be configured to use something like mydomain_root as the username.

Is there a config file or something where I can update the database username and password ?

 Signature 

-----------------
Submit reviews of medical marijuana dispensaries and chat with other medical marijuana patients
http://www.mymarijuananetwork.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damián Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

If you want to move your installation form directory or domain, you need to follow this setps.

1) Delete the content of the folder /var

2) Change the values of the file /app/etc/local.xml
There you can find your connection string data (database user, host and name).

3) Once you got your database uploaded, you need to make some changes.

- Run this query:

SELECT FROM core_config_data WHERE path 'web/unsecure/base_url' OR path 'web/secure/base_url';

You gonna get something like this:

+-----------+---------+----------+-----------------------+--------------------------------------+
config_id scope   scope_id path                  value                                |
+-----------+---------+----------+-----------------------+--------------------------------------+
|         
| default |        web/unsecure/base_url http://www.tudominio.com.ar/magento/ |
|         | default |        web/secure/base_url   http://www.tudominio.com.ar/magento/ |
+-----------+---------+----------+-----------------------+--------------------------------------+

- Now, change that values for your new url.

UPDATE core_config_data SET value 'http://www.tudominio.com.ar/' WHERE path LIKE 'web/%/base_url';

If you run the first query, now you gonna get something like this:

+-----------+---------+----------+-----------------------+------------------------------+
config_id scope   scope_id path                  value                        |
+-----------+---------+----------+-----------------------+------------------------------+
|         
| default |        web/unsecure/base_url http://www.tudominio.com.ar/ |
|         | default |        web/secure/base_url   http://www.tudominio.com.ar/ |
+-----------+---------+----------+-----------------------+------------------------------+

That’s all.
Of ocurse, the url’s that I’ve used are just examples.

wink

 Signature 

Blog http://www.damianculotta.com.ar

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tomas G.
Magento Team
 
Avatar
Total Posts:  336
Joined:  2007-09-15
 

Good Post Damián smile

Just to make it a tiny bit easier for everybody in regards of the URL, http://www.tudominio.com.ar/ = http://www.yourdomain.com

 
Magento Community Magento Community
Magento Community
Magento Community
 
Damián Culotta
Enthusiast
 
Total Posts:  878
Joined:  2008-12-10
Argentina
 

Thanks Tomas, your’re right.
I use an own blog post (and I wrote in spanish) (my fault)
grin

 Signature 

Blog http://www.damianculotta.com.ar

 
Magento Community Magento Community
Magento Community
Magento Community
 
Tomas G.
Magento Team
 
Avatar
Total Posts:  336
Joined:  2007-09-15
 

I know, i’ve checked your blog a couple of times smile

 
Magento Community Magento Community
Magento Community
Magento Community
 
r557
Jr. Member
 
Total Posts:  29
Joined:  2008-05-10
 
Damián Culotta - 01 January 2009 04:04 PM

If you want to move your installation form directory or domain, you need to follow this setps.

1) Delete the content of the folder /var

2) Change the values of the file /app/etc/local.xml
There you can find your connection string data (database user, host and name).

3) Once you got your database uploaded, you need to make some changes.

- Run this query:

SELECT FROM core_config_data WHERE path 'web/unsecure/base_url' OR path 'web/secure/base_url';

You gonna get something like this:

+-----------+---------+----------+-----------------------+--------------------------------------+
config_id scope   scope_id path                  value                                |
+-----------+---------+----------+-----------------------+--------------------------------------+
|         
| default |        web/unsecure/base_url http://www.tudominio.com.ar/magento/ |
|         | default |        web/secure/base_url   http://www.tudominio.com.ar/magento/ |
+-----------+---------+----------+-----------------------+--------------------------------------+

- Now, change that values for your new url.

UPDATE core_config_data SET value 'http://www.tudominio.com.ar/' WHERE path LIKE 'web/%/base_url';

If you run the first query, now you gonna get something like this:

+-----------+---------+----------+-----------------------+------------------------------+
config_id scope   scope_id path                  value                        |
+-----------+---------+----------+-----------------------+------------------------------+
|         
| default |        web/unsecure/base_url http://www.tudominio.com.ar/ |
|         | default |        web/secure/base_url   http://www.tudominio.com.ar/ |
+-----------+---------+----------+-----------------------+------------------------------+

That’s all.
Of ocurse, the url’s that I’ve used are just examples.

wink

great tip.  *Subscribing to this thread*.

 
Magento Community Magento Community
Magento Community
Magento Community
 
FirestarZA
Jr. Member
 
Total Posts:  5
Joined:  2008-08-14
 

Ok, I tried this, and it worked! Thanks. However, when I now open the site, or click on a link, it adds the domain name twice in the URL.

This is what my core config data table entries looks like:

mysql> SELECT * FROM magento_core_config_data WHERE path = ‘web/unsecure/base_url’ OR path = ‘web/secure/base_url’;
+-----------+---------+----------+-----------------------+-----------------------+
| config_id | scope | scope_id | path | value |
+-----------+---------+----------+-----------------------+-----------------------+
| 2 | default | 0 | web/unsecure/base_url | http://192.168.1.181/ |
| 3 | default | 0 | web/secure/base_url | http://192.168.1.181/ |
+-----------+---------+----------+-----------------------+-----------------------+

I’m on a local intranet dev server, so I don’t have a domain and make use of the IP address internally. It worked 100%, until I made a network change, which changed the dev server’s IP address. So I found this post and it worked, but now shows my URL like so:

http://192.168.1.181/192.168.1.181/?SID=b81570020fb6c74830200d95844a9d2f

I’ve also tried using ONLY the ip address (so no slashes and http: and stuff) as the update in the table, but it also gives almost exactly the same result. Any help here would be greatly appreciated. It’s not a huge issue to reinstall (since I have made nearly no changes) but I would like to know how to fix this, if this happens again.

Thanks very much.

 
Magento Community Magento Community
Magento Community
Magento Community
 
matt5409
Jr. Member
 
Total Posts:  15
Joined:  2008-12-22
 

I am trying to move my site from the /magento/ folder to the top level, i.e. from http://localhost:8888/magento/ to http://localhost:8888/

After copying the files to the top level and changing the core config information, all i get is a blank page :S

if i look at the site in /magento/ it loads find but all links are pointing to the top level (even the css, javascript etc but they all pull through correctly) but sub pages do not load. can anybody help with this weird issue?

thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
ecoHaven
Jr. Member
 
Total Posts:  9
Joined:  2009-04-05
 

Hi
for beginners like me:
don’t click on the tab “Query”, click on “SQL’ and paste the query there.
Michael

 
Magento Community Magento Community
Magento Community
Magento Community
 
remora
Jr. Member
 
Total Posts:  8
Joined:  2008-08-04
 

And what about Magento Connect?. It fails one you have migrated your site.

Anybody has solved the problem?.

Thanks,

 
Magento Community Magento Community
Magento Community
Magento Community
 
nbt725
Jr. Member
 
Total Posts:  7
Joined:  2009-05-10
 

Well thanks for the details, I also got url forwarded to old server one solved with this details.

But still giving login/password keeps me there itself not moving me in the admin panel.

I give http://localhost:81/magentofin/index.php/sspadmin

I use WampServer2.0g-1 based php/mysql.

Please help me.

Thanks & Regards,

Nbt

 
Magento Community Magento Community
Magento Community
Magento Community
 
pharmokan
Sr. Member
 
Avatar
Total Posts:  150
Joined:  2009-04-12
 

wonderful thread.  thank you so much for this.

 Signature 

modern furniture

 
Magento Community Magento Community
Magento Community
Magento Community
 
Aabid Hussain
Jr. Member
 
Total Posts:  18
Joined:  2009-02-12
India
 

Hi

I have done all these steps, but my home page is still blank.

Admin login page is working fine, but after the login, the admin home page is also blank, if i am writting the “/admin” after the ‘admin’ in url its only showking the Logo of Admin home page and nothing else.

please help me to solve this problem.

 Signature 

Aabid Hussain

http://www.leosoft.in
cool mad

 
Magento Community Magento Community
Magento Community
Magento Community
 
Paul Morris
Member
 
Total Posts:  37
Joined:  2009-05-06
 

It’s too bad. It seems v1.3.2.3 changed this setting. We need modify somewhere else.

 
Magento Community Magento Community
Magento Community
Magento Community
 
peropi101
Jr. Member
 
Total Posts:  1
Joined:  2009-09-24
 

Hi,thanks for all of those who shared their insights. Very useful indeed…

Regards,
peropi101
Placement financier

 
Magento Community Magento Community
Magento Community
Magento Community
 
gustav30
Jr. Member
 
Total Posts:  24
Joined:  2009-07-07
 

Can anyone also comment on taking a production magento site and copying it locally to a Xampp install to test and develop?

I tried exporting my production SQL database and also taking the content of my public_html folder and copying to the htdocs folder on my local Xampp install but had no luck.

I’m sure I’m missing a bunch of steps.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
Page 1 of 3
 
© Copyright Magento Inc.
Privacy Policy|Terms of Service
Magento Community Count
819302 users|1412 users currently online|519451 forum posts