XFileSharing Pro - steps to transfer my site to another server?

Message
Author
hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

steps to transfer my site to another server?

#1 Postby hscorp » Jun 27, 2009 2:35 pm

what steps do i have to do to transfer my site to another server?

nokiacare
Posts: 15
Joined: May 13, 2009 5:20 pm

#2 Postby nokiacare » Jun 28, 2009 5:59 am

I am also need this.

oVen
Posts: 6
Joined: Mar 23, 2009 9:00 am

#3 Postby oVen » Jun 28, 2009 9:39 am

*** Extra File-Server Installation ***

1) Copy all files and folders from "FS-dist/cgi-bin" into FileServer cgi-bin folder.
Copy all files and folders from "FS-disr/htdocs" into FileServer htdocs (public_html) folder.

NOTE: use binary FTP mode for script files upload.

2) Chmod install_fs.cgi to 755 and run it in browser.
It will set correct permissions for other files and put correct paths into config.

3) Login with admin account and go to "Server Management" section, click "Add new server".
Put your FS cgi-bin and files URLs there, then Main server will test & update FileServer configuration.

INFO: After installation try to open env.php which is in FileServer files folder in browser - it should show you error or source code.
If you see full path, then check that you've moved .htaccess to FileServer htdocs folder.
When you make sure PHP files are forbidden, delete env.php
Executing php/cgi scripts on your server is potential vulnerability. Disable php,pl,cgi,py,sh,shtml extensions in your Site Settings.

INFO: To force file download for direct links (Save As popup in browser) you should have mod_headers Apache module enabled on your server.

hscorp
Posts: 143
Joined: Nov 12, 2008 5:36 pm

#4 Postby hscorp » Jun 28, 2009 10:06 am

oVen

did you read our question?

we said transfer to another server not adding another server

:) regards man

oVen
Posts: 6
Joined: Mar 23, 2009 9:00 am

#5 Postby oVen » Jun 28, 2009 10:16 am

hscorp wrote:oVen

did you read our question?

we said transfer to another server not adding another server

:) regards man
To begin with create a new server, and further there will be a transfer on this server.
If not so, excuse, has not understood your question :)

admin
Site Admin
Posts: 1843
Joined: Mar 22, 2006 12:32 pm

Re: steps to transfer my site to another server?

#6 Postby admin » Jun 28, 2009 5:18 pm

hscorp wrote:what steps do i have to do to transfer my site to another server?
1. create database dump (and then create new db on new server)
2. move all files from cgi-bin and htdocs to a new server
3. correct paths in configs on new server

chlankboot
Posts: 10
Joined: Jun 12, 2008 8:01 pm

Moving files

#7 Postby chlankboot » Jun 29, 2009 9:14 pm

hey admin, how do you move files from old to new server ? i did the following php script, works great for small files but sucks with bigger ones (30 Mb+) due to php limitations i presume:

Code: Select all

<?PHP

/* chlankboot.com */

    $user_name = "XXXXX";
    $password = "YYYYY";
    $database = "ZZZZZ";
    $server = "localhost";

$db_handle = mysql_connect($server, $user_name, $password);
$db_found = mysql_select_db($database, $db_handle);

if ($db_found) {

$SQL = "SELECT file_name, file_code, file_size FROM `Files`order by file_size";
$result = mysql_query($SQL);

while ($db_field = mysql_fetch_assoc($result)) {
print "Processing : " . $db_field['file_name'] . " - " . $db_field['file_code'] . " - Size : " . $db_field['file_size'] . "<BR>";

if (!file_exists($db_field['file_code']))
{
$Source = "http://www.your_old_domain.com/cgi-bin/uploads/00000/" . $db_field['file_code'];
$Destination = "/home/--------/public_html/cgi-bin/uploads/00000/" . $db_field['file_code'];

if (!copy($Source, $Destination)) { echo "La copie de $Destination n'a pas réussi...\n" . "<BR>"; } else { echo "OK..." . "<BR>"; };
};

}

mysql_close($db_handle);

}
else {
print "Database NOT Found ";
mysql_close($db_handle);
}

?>
Notes:
- in the $SQL query you can target the user files you want
- $Source and $Destination as well as connection variables are just examples and need to be adjusted as per your actual data
- adjust and upload the script on your new host and run it from the browser
- finally : changing nameservers might take more than 12 hours to propagate!


i know php sucks so if anyone has a better idea please share!

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#8 Postby PilgrimX182 » Jun 30, 2009 6:03 am

We usually transfer files over FTP or SSH :)

chlankboot
Posts: 10
Joined: Jun 12, 2008 8:01 pm

#9 Postby chlankboot » Jun 30, 2009 6:42 am

PilgrimX182 wrote:We usually transfer files over FTP or SSH :)
yeah right man, but some hosting companies that do not allow ssh! or allow it after a long verification process (hm for instance)