Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Moved Server Path Problems

Quote Reply
Moved Server Path Problems
Howdy All,

My hoster has recently moved my site to a new and more reliable/faster server. However during the move all the paths (cgi) were changed and so has rendered my admin inferface to my LinksSQL database useless eventhough all the files are on the new server.

My question is whether I should manually alter all the required files to reflect the new path or simply reinstall LinksSQL. If it is recommended to do a manual alteration which files should I be looking into to fix. If it is recommended to do a reinstall what should I be aware of.

Thank you for you help.
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
Probably best to do a reinstall. Make sure you have your /templates/ folder backed up. Also, make sure you take note of any settings etc you have setup for plugins etc. Also, before doing anything, make a backup of your server via a MySQLMan dump Wink

Hope that helps.

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: [curman] Moved Server Path Problems In reply to
No need to reinstall, just edit the "use lib" and "Links::init(...)" paths in all of the cgi scripts and also update ConfigData.pm
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
Paul, I did what you recommended and when I go to the admin.cgi I get:

------------------

A fatal error has occured:

GT::Template::Inheritance (22468): Wrong argument passed to this subroutine. Usage: Path *******/links/admin/Links does not exist or is not a directory at GT/Template/Inheritance.pm line 40.

Please enable debugging in setup for more details.

------------------

So then I tried to reinstall via ssh/telnet (./install.cgi or perl install.cgi) and it did nothing at all. Just sat there. I'm running it in an ensim environment.

Any suggestions to get me back on track?

Thanks
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
That error may just mean there is a path somewhere you missed.

Did you update all cgi scripts in the cgi-bin and admin directories?
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
Hi Paul,

Yes, I did all the .cgi in both the cgi and admin Dir and also the ConfigData.pm in the admin/Links Dir (recheck and confirmed). I cannot get the admin interface at all, just that message. It tells me to enable debugging but I can't because I don't see the admin interface.

Any suggestions appreciated. Thanks
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
You can enable debugging in ConfigData.pm - debug_level

Last edited by:

Paul: Dec 12, 2002, 8:55 AM
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
Hi Paul,

Tried 1 and 2 but keep getting the same message from the admin interface.
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
If you have shell access, you can go to your cgi directory (where the links cgis are), and type

grep -r '/path/to/old/admin' *

This should give you a list of all scripts where you still have the old paths.

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Moved Server Path Problems In reply to
Too much like hard work :)

Do it automatically....

Code:

perl -p -i -e 's,/old/server/path,/new/server/path,g' `grep -l -r /old/server/path *`
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
Hi Paul, Yogi,

Did what you guy's suggested and found a few more cgi's with the old path and made the change. Also found a bunch of .html's in the compiled Dir with the old path but I did not change those.

I am still getting the same "Fatal Error" message though.
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
What does your error log say?

tail -30 /path/to/error_log
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
Paul,

The exact same thing.

GT::Template::Inheritance (25976): Wrong argument passed to this subroutine. Usage: Path /var/www/cgi-bin/links/admin/Links does not exist or is not a directory at GT/Template/Inheritance.pm line 40.

Quote Reply
Re: [curman] Moved Server Path Problems In reply to
Try clearing out your compiled template directory - I'm not sure if that is it but its worth a try.

Do it for default and admin
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
What do you mean by default and admin?
Quote Reply
Re: [curman] Moved Server Path Problems In reply to
The default and admin compiled directories.
Quote Reply
Re: [Paul] Moved Server Path Problems In reply to
OK but same error keeps poping up. Time for a re-install?