Gossamer Forum
Home : Products : Links 2.0 : Customization :

Renaming the Directory where the app is installed?

Quote Reply
Renaming the Directory where the app is installed?
I'm using on Links SQL 2.1 on my site

I've installed the directory on mysite.com/Directory


however I wish to rename it to:


mysite.com/trucking




Now I've tried renaming it but it caused the error below:=========================================


Error :
A fatal error has occured:


Invalid template 'home.html' requested (File does not exist) at /home/loadmove/public_html/cgi-bin/Directory/admin/Links.pm line 292.


Please enable debugging in setup for more details.
=========================================

How do I do that without causing errors?



http://www.FindSP.com - Hosting Directory
Quote Reply
Re: [FindSP.com] Renaming the Directory where the app is installed? In reply to
Hi,

Are you saying that your current setup is:

mysite.com/Directory/sub_category

..but you want it to be like;

mysite.com/trucking/sub_category

?

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] Renaming the Directory where the app is installed? In reply to
Exactly Andy

and I need it done ASAP :)
http://www.FindSP.com - Hosting Directory
Quote Reply
Re: [FindSP.com] Renaming the Directory where the app is installed? In reply to
Hi,

Try doing it via a grep (SSH or Telnet);

cd /path/to/directory
grep -r -l '/Directory' .

..and if that gives the right list of files, then run;

perl -p -i -e 's|\Q/Directory|/trucking|g' `grep -r -l '/Directory' .`

PLEASE BACKUP FIRST THOUGH!

tar -cvvf backup.tar *

Hope that helps.

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] Renaming the Directory where the app is installed? In reply to
I don't have access to SSH :(

Can't I do it manually, or even a better question - can't you do it?

I'll pay :)
http://www.FindSP.com - Hosting Directory
Quote Reply
Re: [FindSP.com] Renaming the Directory where the app is installed? In reply to
Mmm.. you can't do it without SSH or Telnet Unsure

Maybe contact your host, and ask them to run the commands? (they *HAVE* to have access to SSH, or they can't manage 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!
Quote Reply
Re: [Andy] Renaming the Directory where the app is installed? In reply to
Hmm.. ok - before I send them the request are you sure that everything is there nd it is correct? or I'll have to pay them back again for backup..

Any chance you could install in on your server

check it and get back to me? again if it takes to long I'm willing to pay for your time.
http://www.FindSP.com - Hosting Directory
Quote Reply
Re: [FindSP.com] Renaming the Directory where the app is installed? In reply to
Quote:
Hmm.. ok - before I send them the request are you sure that everything is there nd it is correct? or I'll have to pay them back again for backup..

I can't tell for sure, as you havn't given me any paths etc :P If you can provide them to me (via email or PM), I'll happily make a list of commands for you to send to them, and then its just a case of them running 'em :)

Quote:
Any chance you could install in on your server

Not if you don't have SSH (to compress and move to our server, and then to also decompress it again back on your server Tongue).

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: [FindSP.com] Renaming the Directory where the app is installed? In reply to
LOL .. just realised - this is in the Links 2.0 forum - Is it meant to be? (and not the Gossamer Links one?).

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] Renaming the Directory where the app is installed? In reply to
Whether flatfile or SQL, the error looks to be in the .cfg file; it's still looking for Directory:

Invalid template 'home.html' requested (File does not exist) at /home/loadmove/public_html/cgi-bin/Directory/admin/Links.pm line 292.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Renaming the Directory where the app is installed? In reply to
Hi,

I actually helped him via email =)

It was actually LSQL, on a site that I setup for him a little while back.

Thats why I was questioning what version it was, as there is no links.cfg in GLinks/LSQL Tongue

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!