Gossamer Forum
Home : Products : Gossamer Links : Discussions :

] Moving to new server instructions II

Quote Reply
] Moving to new server instructions II
  
I got to (maybe silly) questions, which concerns to this post: http://www.gossamer-threads.com/forum/Products_C9/Gossamer_Links_C5/Discussions_F18/Re%3A_%5BTaki-x%5D_Moving_to_new_server_instructions_P298281/#p298281

Quote:
6) Decompress them (in their correct folders!), with: tar -xof file.tar

-> Is it also fine if I do the move per FTP instead of tar compress?

7) Then, you need to run a `grep` on the files, something like:

Replace /old/ with your old path to the admin folder
Replace /new/ with your NEW path to the admin folder

perl -p -i -e 's|/old/|/new/|g' `grep -r -l '/old/' .`


-> Needs the grep online be done for the admin folder - or also others? /html/cgi-bin/admin/

-> What is meant by path ? (maybe: /html/cgi-bin/admin/ ???)

Hope anybody can help. Thanks!

Last edited by:

Andy: Nov 25, 2016, 12:49 AM
Quote Reply
Re: [qes] ] Moving to new server instructions II In reply to
Hi,

You need to grep ALL the folders where GLinks is (in the cgi-bin)

Quote:
-> What is meant by path ? (maybe: /html/cgi-bin/admin/ ???)

Maybe you should pay for a professional to do this, if you don't know what a path is? Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] ] Moving to new server instructions II In reply to
Hi Andy,
thanks for your reply and hint. Smile

If I fail - I promise to ask you and pay for it. But maybe you can give me some hint.

If I do an echo phpinfo() - I got the following information for my (old) environment:

DOCUMENT_ROOT /var/www/web47/html
PATH /bin

I'm wondering if the path which you meant ist just /bin or /var/www/web47/html/cgi-bin or maybe combination /var/www/web47/html/bin

((My admin folder is reached by the FTP Server per /html/cgi-bin/admin - therefor I would intend to: /var/www/web47/html/cgi-bin as the old path))

Greetz Carolin
Quote Reply
Re: [qes] ] Moving to new server instructions II In reply to
Hi,

The easiest way would be a simple script on bother servers:
Code:
#!/usr/bin/perl

print "Content-Type: text/html \n\n";
print "TEST: $ENV{DOCUMENT_ROOT}\n"

Just CHMOD 755, and then run this from the browser. It should print out the path for you.

Be aware that your static content, and cgi-bin could be different paths. For example, your old server may be:

Code:
/var/www/web47/html
/var/www/web47/cgi

It all really depends on your server config, so its hard to tell without seeing the server.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!