Copy entire site to new domain - Have Rights

Discussion in 'Site & Server Administration' started by rajivv, Dec 7, 2009.

  1. #1
    Hi,

    Need the site duplicated ( see signature for site) to 2 country domains.
    Site is mine and code is available
    Domains already resolved to server where its need to be hosted
    The things that will need to be changed are the 'mail to' addresses and admin/backend links I guess.
    Database can duplicate.
    Some features like revenue share ( will be ready in a week) will need to be customize for the domain url.

    Also on top of each site will need the country flag of all 3 domains.

    Simple.
    Let me know how this will work and can anyone do the same

    Rajiv
     
    rajivv, Dec 7, 2009 IP
  2. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #2
    SSH logged in on old server - with SSH login enabled to new server:
    use rsync as below:

    rsync -axv --progress --stats root@www.xxx.yyy.zzz:/path/to/public_html-on-new-server/ /path/to/public_html-on-old-server/

    if NOT root, then replace root by correct username@new-server

    for databases
    you make a

    mysqldump

    of all the databases you want to copy to new server
    then insert the backup into new server using proper

    mysql

    -syntax
    thats easy and fast

    and can all be done by YOU alone
     
    hans, Dec 8, 2009 IP
  3. nimhost

    nimhost Active Member

    Messages:
    235
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #3
    if you use cpanel you can use the copy feature :)

    [​IMG]
     
    nimhost, Dec 8, 2009 IP
  4. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    1- How do I ssh on both servers.
    2- I want to copy the site to the new domain on same server itself ( i have my own dedicated)
    3- Cpanel where is copy ?

    Rajiv
     
    rajivv, Dec 8, 2009 IP
  5. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #5

    if you have all on one dedicated server
    then u ssh login only that one of course

    then simply rsync

    rsync -axv --progress --stats /path/to/public_html-on-old-site/ /path/to/public_html-on-new-site/


    if you have own dedicated and missing such basic knowledge ...

    how are you securing your server ?? or do you have a big "welcome to all hackers" on your start pages ... hackers are already knocking at your doors guaranteed and it is your liability to keep your server clean!

    may be you stay with one site and first learn the very basics before growing totally out of control.

    with cpanel i have no experience, I work my 4 servers in SSH console directly - i have exact same OD/dist at home on my laptop to simulate critical operations if needed.
     
    hans, Dec 8, 2009 IP
  6. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,

    So rsync command will copy the website right not move I hope .
    Do I changes config settings after copying files and database

    Rajiv
     
    rajivv, Dec 8, 2009 IP
  7. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #7
    1.
    first learn what you do until you know what you do ! that is a simple rule of life

    2.
    in my opinion you have by far exceeded already the limits of your current knowledge and skills. that means that you are a danger to yourself, an accident waiting to happen
    I hope you have nothing of real value or importance on your site for this exercises
    backup full site
    backup all db
    make sure you have no hacker software already installed and multiplied !!

    3.
    to know rsync - read on your own linux computer

    man rsync

    4.
    yes of course you have to configure anything relevant to paths, domain names, etc
    you also have to adapt your apache system config
    mail config
    and anything else as relevant to installing new domain on server
    also mysql configurations may need adaptation
    basically ALL
     
    hans, Dec 8, 2009 IP
  8. rajivv

    rajivv Peon

    Messages:
    335
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I will do that Hans thanks for all the help any additional security i could use there is basic firewalling.

    rajiv
     
    rajivv, Dec 8, 2009 IP
  9. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #9
    basic firewalling NEVER nearly enough
    its not even a beginning - but something you do AFTER securing all site as additional feature
    site security is about securing scripts, pages, login procedures, permissions, user areas and much more

    after all that done
    next step might be

    snort
    and
    mod_security
    and a bunch of other options (fail2ban, DDoS prevention and similar security features)
    all properly configured and installed
    AFTER site secured that way - then you may add your basic firewalling ...

    your best friend for years to come is Google and thousands of howtos onliine depending on your software running
    you may also use search function on THIS forum to find more tips - or Google

    Merry Christmas
     
    hans, Dec 8, 2009 IP