RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AJAX upload progress bar

File sharing script

Newsletter script
steps to transfer my site to another server?

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro
View previous topic :: View next topic  
Author Message
hscorp



Joined: 12 Nov 2008
Posts: 117

PostPosted: Jun 27, 2009 2:35 pm    Post subject: steps to transfer my site to another server? Reply with quote

what steps do i have to do to transfer my site to another server?
Back to top
View user's profile Send private message Visit poster's website
nokiacare



Joined: 13 May 2009
Posts: 14

PostPosted: Jun 28, 2009 5:59 am    Post subject: Reply with quote

I am also need this.
Back to top
View user's profile Send private message
oVen



Joined: 23 Mar 2009
Posts: 6

PostPosted: Jun 28, 2009 9:39 am    Post subject: Reply with quote

Quote:
*** 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.
Back to top
View user's profile Send private message
hscorp



Joined: 12 Nov 2008
Posts: 117

PostPosted: Jun 28, 2009 10:06 am    Post subject: Reply with quote

oVen

did you read our question?

we said transfer to another server not adding another server

Smile regards man
Back to top
View user's profile Send private message Visit poster's website
oVen



Joined: 23 Mar 2009
Posts: 6

PostPosted: Jun 28, 2009 10:16 am    Post subject: Reply with quote

hscorp wrote:
oVen

did you read our question?

we said transfer to another server not adding another server

Smile 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 Smile
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 22 Mar 2006
Posts: 566

PostPosted: Jun 28, 2009 5:18 pm    Post subject: Re: steps to transfer my site to another server? Reply with quote

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
Back to top
View user's profile Send private message Send e-mail
chlankboot



Joined: 12 Jun 2008
Posts: 10

PostPosted: Jun 29, 2009 9:14 pm    Post subject: Moving files Reply with quote

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:

<?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!
Back to top
View user's profile Send private message Visit poster's website
PilgrimX182



Joined: 22 Mar 2006
Posts: 1941
Location: UFO Lab

PostPosted: Jun 30, 2009 6:03 am    Post subject: Reply with quote

We usually transfer files over FTP or SSH Smile
Back to top
View user's profile Send private message Visit poster's website
chlankboot



Joined: 12 Jun 2008
Posts: 10

PostPosted: Jun 30, 2009 6:42 am    Post subject: Reply with quote

PilgrimX182 wrote:
We usually transfer files over FTP or SSH Smile


yeah right man, but some hosting companies that do not allow ssh! or allow it after a long verification process (hm for instance)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XFileSharing Pro All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group