*

Recent

Author Topic: how do i transfer my site from one server to another  (Read 9034 times)

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
how do i transfer my site from one server to another
« on: May 21, 2015, 04:29:09 PM »
hi,i tried changing host today but i have an issue,after i upload my backup to my new server and tried visiting it, i got a white screen.
can anybody explain how to  transfer site from one host to another?

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #1 on: May 21, 2015, 05:08:12 PM »
Old Server
First make a full backup of your database
copy all files to your pc
before your upload to new server delete all files in the cache folder.

Transfer your DNS to new server

New Server
create new database
import database
insert new info into the includes/config.php
create a file named path.php
with this info
Code: [Select]
<?php 
echo getcwd(); // Short for `Get Current Working Directory` 
?>

upload path.php and run yoursite.com/path.php
copy and insert the info in the includes/config.php for cache
upload all files

Now you should be able to login into admin, insert the new directory path in admin => settings

Done!  8)



kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #2 on: May 21, 2015, 05:34:46 PM »
i get
Not Found

The requested URL /login/ was not found on this server.

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #3 on: May 21, 2015, 05:47:04 PM »
did your transfer your domain to your new server DNS or IP?

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #4 on: May 21, 2015, 05:48:47 PM »
server dns

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #5 on: May 21, 2015, 05:50:30 PM »
yea like ns1.myhosting.com / ns2.myhosting.com

where is the domain registered at? namecheap, godaddy, ect

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #6 on: May 21, 2015, 05:53:32 PM »
i pointed my domain to my server ip on digital ocean

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #7 on: May 21, 2015, 05:55:25 PM »
that is ok, it can take up to 24hrs to transfer.

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #8 on: May 21, 2015, 05:58:47 PM »
the site is up,
when i try to login or sign-up i get that.

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #9 on: May 21, 2015, 05:59:54 PM »
same with trying to play a game..
Not Found

The requested URL /login/ was not found on this server.

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #10 on: May 21, 2015, 06:01:24 PM »
oh, what is the site so i can take a look
also make sure you have apache rewrite module enabled

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #11 on: May 21, 2015, 06:05:17 PM »
how do i enable apache rewrite module?

am-fs

  • Owner
  • Developer
  • Full Member
  • ******
  • Posts: 228
  • Force: +1/-0
    • Great Flash Games
Re: how do i transfer my site from one server to another
« Reply #12 on: May 21, 2015, 06:12:48 PM »
each cpanel/ server is different but the should be in the hosting settings, php settings

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #13 on: May 22, 2015, 04:05:08 AM »
mod rewrite is enabled

kratos

  • Newbie
  • *
  • Posts: 23
  • Force: +0/-0
Re: how do i transfer my site from one server to another
« Reply #14 on: May 22, 2015, 04:31:18 AM »
still same issue