• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Localhost to a Live Domain

ExpertPixels.com

Well-known member
#1
Hey all,

Just wondering if there are / would be any issues transferring a XF install from my localhost to a live domain / server ?

It's just a lot faster working on my localhost then working on a live site.. So i am wanting to develop my project on my localhost and then once it's complete then transfer it to a live server / domain.

Thanks in advance to anyone who takes the time to reply to this question, It's greatly appreciated.

Regards, Darren
 

oman

Well-known member
#2
Brogan explained how to do so here. It seems quite easy.

Brogan said:
Upload the XenForo files from your local host to your domain (live site).

Create a database on your domain (using the same name, user and password) and import your local host database using phpMyAdmin.

There is no need to run the install script, simply copy everything from your PC to the server.
 

Lost

Well-known member
#3
Hi Darren,

Transferring from localhost to your server shouldn't cause any issues. But you should look at your site configuration settings and make sure you've configured friendly URLs correctly.
 

Andrej

Well-known member
#4
Brogan explained how to do so here. It seems quite easy.
You don't need to have exactly same database name and password because you can always change that in /library/config.php


Code:
<?php
 
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'dbuser;
$config['db']['password'] = 'dbpass';
$config['db']['dbname'] = 'dbname';
 
 
$config['superAdmins'] = '1';
 

oman

Well-known member
#5
You don't need to have exactly same database name and password because you can always change that in /library/config.php


Code:
<?php
 
$config['db']['host'] = 'localhost';
$config['db']['port'] = '3306';
$config['db']['username'] = 'dbuser;
$config['db']['password'] = 'dbpass';
$config['db']['dbname'] = 'dbname';
 
 
$config['superAdmins'] = '1';
That's fine. I just directly quoted what Brogan said. ;)
 

ExpertPixels.com

Well-known member
#7
Cheers guys.. Greatly appreciated :) Just didn't want to put in weeks of work on my localhost only to find out i can not transfer it to a live setup without any issues arising.

Regards, Darren
 

Slavik

XenForo moderator
Staff member
#8
Cheers guys.. Greatly appreciated :) Just didn't want to put in weeks of work on my localhost only to find out i can not transfer it to a live setup without any issues arising.

Regards, Darren
Its just the same as a normal domain to domain transfer, so nothing to worry about :)