Transfer host via cPanel

Is there a way to transfer the site from one host to another using cPanel?

Of do I have to ftp the files from one host to another, then export the mysql and then some how import it?

I can not use the same name on the new server....  how would i overcome that?

 

dolphine 7.1

Quote · 8 Feb 2013

Assuming you have shell access I would create a zip with all the files on the old host and place in your dolphin root, keeping your domain there.

 

Then on the new host do wget http:// yourdomain.com/yourzip.zip

 

 

Then do unzip yourzip.zip

 

Unzip yourzip.zip

 

If you temporarily allow your ftp accounts to have ssh access you can even do it while logged in as the ftp user and avoid any necessity to chown all the files.

 

I am assuming you are able to export and import the db without assistance? 

 

You'll need to change your licence to change domain, you'll also need to edit inc/header.inc.php to reflect your new path.

 

Oh, and manually empty all 3 cache folders.

Quote · 8 Feb 2013

I started the FTP transfer  about the time I saw your post.  It took a while but I believe it all transfered.

I created a new mysql then imported what I had exported on the old serve.  I think that worked as well.

I modified the header to what I thought it should be.

Now getting this error at adventistdate.com

 

Getting 

[quote]


Warning: require_once(home/christianwebdate.com/public_html/adventistdate.com/inc/security.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/christia/public_html/adventistdate.com/inc/header.inc.php on line 176

Fatal error: require_once() [function.require]: Failed opening required 'home/christianwebdate.com/public_html/adventistdate.com/inc/security.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/christia/public_html/adventistdate.com/inc/header.inc.php on line 176 [/quote]

my ftp says this is the ftp address to the file.


[quote]ftp://christia:@christianwebdate.com/public_html/adventistdate.com/inc/header.inc.php[/quote]


Thinking I am getting close?

Quote · 8 Feb 2013

OK  quotes do not work like I expected   :)

Quote · 8 Feb 2013

In your header.inc.php file, the $dir['root'] should probably start with a forward slash.  

$dir['root'] = '/home/christianwebdate.com/public_html/adventistdate.com/';

sup
Quote · 8 Feb 2013

 

OK  quotes do not work like I expected   :)

 Looks like you've set the path to...

home/christianwebdate.com/public_html/adventistdate.com

when in should be...

home/christia/public_html/adventistdate.com

Quote · 8 Feb 2013

Yeah, good eye.  A little bit of both.

sup
Quote · 8 Feb 2013

thanks for your help, I broke something and can not get into my cPanel or WHM will give a report after that is fixed.  REALLY appreciate this..

Quote · 8 Feb 2013

ok - I am not noticing things as everyone else is - maybe I am a lil backwards - but in the header.inc.php file - make sure:

$site['url'] = "http://yourdomain.com/"

and

$dir['root'] = "/home/youraccountname/public_html/";

 

and also make sure that your database settings are correct as well

and dont forget to clear your cache

caredesign.net
Quote · 8 Feb 2013

just a curiousity - if i go to christianwebdate.com - i actually get a website, if i go to adventistdate.com - the errors show up. Which one is your new site and which one is the old site url

caredesign.net
Quote · 8 Feb 2013

The Christian webdate is the primary one, I installed that to make sure it was workable...   

I added adventistdate.com  after that and transferred over the files..

Quote · 8 Feb 2013

oh ok - thats what i was thinking - yeah - check your header.inc.php file as i listed in my post and make sure the second one is right. it looks as if you have your directory root set as christianwebdate.com instead of something like adventi

Do you have this: /home/christianwebdate.com/public_html/ for the dir ['root'] location

caredesign.net
Quote · 8 Feb 2013

 You're complicating this unnecessarily. This error...

Fatal error: require_once() [function.require]: Failed opening required 'home/christianwebdate.com/public_html/adventistdate.com/inc/security.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/christia/public_html/adventistdate.com/inc/header.inc.php on line 176 

 

Specifically the part in red, is teling us the path. "Something like adventi" doesn't come in to it. The path is...

 /home/christia/public_html/adventistdate.com/

That is not in doubt.

 

oh ok - thats what i was thinking - yeah - check your header.inc.php file as i listed in my post and make sure the second one is right. it looks as if you have your directory root set as christianwebdate.com instead of something like adventi

Do you have this: /home/christianwebdate.com/public_html/ for the dir ['root'] location

 

Quote · 8 Feb 2013

if you look at what i have highlighted in blue - i think you are missing that part - you should never have a domain name after the home and before the public_html. Plus, the domain name should not be showing after the public_html

I have no clue what his account name is - i would guess that it is advent or something like that since it is the new domain. i would expect the christia to be from the old domain at christianwebdate.com.

I know on my server when new accounts or cpanels are created, the account name is the first 5 to 8 characters of the domain name.

also keep in mind that /home/christia/public_html = christianwebdate.com. so for the new domain it should be /home/account/public_html - which would equal adventisdate.com

Fatal error: require_once() [function.require]: Failed opening required 'home/christianwebdate.com/public_html/adventistdate.com/inc/security.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/christia/public_html/adventistdate.com/inc/header.inc.php on line 176

caredesign.net
Quote · 8 Feb 2013

Well, take a look at that    everything seems to work....  appreciate the help so much!!

 

I do have a few more things to fix now that it is on a server I own.

 

Wondering if I should start a new thread or post it here?

 

One is to fix this, I did search this site, but came up with old ones, or ones I did not understand that well.

>>php setup = cgi-fcgi - WARNING (your PHP setup maybe very inefficient, please check it for sure and try to switch to mod_php, apache dso module or FastCGI)

 

Quote · 8 Feb 2013

just as a reference for future issues - what did you do to resolve the problem

caredesign.net
Quote · 8 Feb 2013

good idea....

I used this, now all is well.  

>>$dir['root'] = '/home/christia/public_html/adventistdate.com/';

Quote · 8 Feb 2013

 I'll say this only because the OP as indeed started a new thread and this problem is solved and maybe it'll help you...

 

In the error I referenced above The failure is that a file (specifically security.inc.php) was required by another file (specifically header.inc.php). 

 

The location of header.inc.php, which has an eror on line 176, is shown in the error....

 

Failed opening required 'home/christianwebdate.com/public_html/adventistdate.com/inc/security.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in/home/christia/public_html/adventistdate.com/inc/header.inc.php on line 176

 

If there is an error on line 176 of header.inc.php it must exist and must be located at...

 

/home/christia/public_html/adventistdate.com/inc/header.inc.php

 

so  

 

/home/christia/public_html/adventistdate.com/

 

must be the correct root path to dolphin. This has been proven by the fact that


$dir['root'] = '/home/christia/public_html/adventistdate.com/';

 

has been shown to work. I had already given that information which is why I said you were unnecessarily complicating the matter by going back to what the correct path might be.  


Well, take a look at that    everything seems to work....  appreciate the help so much!!

 

I do have a few more things to fix now that it is on a server I own.

 

Wondering if I should start a new thread or post it here?

 

One is to fix this, I did search this site, but came up with old ones, or ones I did not understand that well.

>>php setup = cgi-fcgi - WARNING (your PHP setup maybe very inefficient, please check it for sure and try to switch to mod_php, apache dso module or FastCGI)

 

 

Quote · 8 Feb 2013

well - in all of my experience - i have never EVER seen a domain name after a public_html - not even in regards to subdomains. And personally am afraid this may cause another issue for him. On all versions of Dolphin I have installed, his will be the first time i have EVER seen that like that.

And just for reference sake - this is my header.inc.php sections:

$site['url']               = "http://www.mytherapysession.com/";

and

$dir['root']               = "/home/mytherap/public_html/";

I am sure if you look at yours it will be similar. and notice the account name is the first characters of my domain name - all of my sites are like that on my server.

 

One other thing - i went and made my dir url just like his for my domains and this is what i get

Warning: require_once(/home/mytherap/public_html/mytherapysession.cominc/security.inc.php) [function.require-once]: failed to open stream: No such file or directory in /home/mytherap/public_html/inc/header.inc.php on line 163

Fatal error: require_once() [function.require]: Failed opening required '/home/mytherap/public_html/mytherapysession.cominc/security.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mytherap/public_html/inc/header.inc.php on line 163

caredesign.net
Quote · 8 Feb 2013

I can only ask you to read the thread again and see if you can spot what you've missed. I don't know how to make it clearer...

 

The error tells which file the error is in. The file must exist to have an error, therefore we know the path. There is no domain name where you think I am saying there is. the path is. 


/home/christia/public_html/adventistdate.com/


As I have said all along, since before you started confusing the issue. The path was NEVER in question. Only to you.

Quote · 8 Feb 2013

/home/christia/public_html/adventistdate.com/ - the domain name is at the end adventistdate.com

and when i put the domain name at the end like he has it - i get the exact same error - remove the domain name from the end and the error goes away

caredesign.net
Quote · 8 Feb 2013

yup ...   sorry for the confusion...

Quote · 8 Feb 2013

Well you will on your server. One can have a folder name with a dot in it wherever one would like to have. Basically, his new site, adventistdate.com is currently in a sub directory of his domain's root. The subdirectory is called adventistdate.com so christianwebdate.com/adventistdate.com/ is currently the url to his dolphin installation. It could just a easily be a sub folder called /dev or /test or /slash.what.ever.you.like.

Quote · 8 Feb 2013

 No, sorry I've turned this into a debate. I only wanted to point out the unnecessary complication.  I would have scrapped the idea of trying to explain to the professor if it weren't for the fact that you have solved your problem.

yup ...   sorry for the confusion...

 

Quote · 8 Feb 2013

and that part, my, i didnt think of till i read what you wrote - i dont put subdomains in a folder of the main domain anymore - instead I use the subdomain.domain.com url. Sorry bout that

caredesign.net
Quote · 8 Feb 2013

Nothing to do with subdomains, it's a sub directory, maybe "sub folder" will mean more to you. I give up. I really was just trying to help solve the problem and secondarilly explain to you. Never mind.

Quote · 8 Feb 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.