Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 01:53 am EST

Geeklog Forums

Geeklog failure when virtual directory was renamed


Jonathan

Anonymous
Morning all, I'm having a problem with Geeklog. Was all working fine on a company intranet server - until the company changed its name so the virtual directory (URL) under which Geeklog was hosted was changed. The server name, physical location and name of Geeklog and the database were not changed in any way. Now users cannot log in, stories cannot be posted, etc. The log files have not been appended since the change was made. However, existing stories do display on the front page. It's running on a Win2000 box with IIS. Any ideas? Thanks.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
How about simply changing the path settings in config.php and lib-common.php accordingly?

bye, Dirk
 Quote

Jonathan

Anonymous
I had already tried editing config.php. On your advice, I am now looking at lib-common.php, but which bit do I need to change? There are over 5000 lines in my file Shocked Would I need to restart the app at any point? Sadly, due to this being for a large company, there is a lot of red tape surrounding perfectly simply things like restarting Geeklog... it could take a week to get permission Doh! - that was a mistake
Cheers, Jonathan
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Jonathan: On your advice, I am now looking at lib-common.php, but which bit do I need to change?

There's only one line that you need to change - the one that include config.php.

Am I right in assuming that you used some automated installer for the initial install?

bye, Dirk
 Quote

Jonathan

Anonymous
I was not at the company when Geeklog was installed so I am not sure how it was done. The guy who set it up can't remember how it works either.
The 'include' line in lib-common.php already points to the right location of config.php, no files were actually moved, just the URL of the site. I reckon it just needs to be restarted, so I'll have to go about filling in forms and whatnot to get it restarted.
Thanks for your help!
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Jonathan: no files were actually moved, just the URL of the site.

Sorry, I see I misunderstood your original post there. If the URL changed, then it's of course $_CONF['site_url'] that has to be changed accordingly.

You may also have a few problems then with hard-coded links in stories - you'll have to fix those manually. I would export the database, do a search and replace in a text editor and import it again.


Quote by Jonathan: I reckon it just needs to be restarted

There's nothing to be "restarted". Geeklog reads the config.php every time one of its URLs is called up.

bye, Dirk
 Quote

Jonathan

Anonymous
thoughtful
I changed the $_CONF['site_url'] to reflect the new URL. I also looked through the whole config.php for other settings I might have to change. The Geeklog files themselves were never moved, only the domain changed. Links in stories are not the problem. The database is still fully operational, it's just that nobody can log in once the URL is made different from the original. Would be nice if I could present an example to you but this is hosted on a private company intranet. My boss wants me to fix this asap - do you have any further ideas? Cheers.
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
For login problems, see I can't log in.

bye, Dirk
 Quote

Jonathan

Anonymous
Thanks, I checked al the the things on the list. Problem still persists. I'm starting to think the login problems are caused by IIS. Geeklog works fine under one directory, but as soon as the directory is renamed (making appropriate adjustemnts to config.php and lib-common.php, of course) it will not accept logins. This has a whole team of techies here worrying. Should be no need to change cookie settings because this is on the same server as before and there were never any problems then.
 Quote

Sidimostafa

Anonymous
surprised
Hey,
Seeing that u mentioned that only the virtuaral directory change, not the locations of the files,

u have configured the config.php, and lib-common.php..
u have only one logical thing to do,

go on the IIS server and issue this command

iisreset.exe

this will only restart the IIS Server, and not the entire server..

Hopefully u can do this early in the morning, or late at nite when noone is on the server

i believe IIS only needs the restart inorder to caputure the new name/location of the virtual server.

let me know if this works

Hopefully, i don't think u would need lots of paper works for this operation

Mr. Green - Sidi
 Quote

Jonathan

Anonymous
Cheers for you advice.

Sadly, even that change requires paperwork and 48 hours notice. But I did it anyway, and it had no effect. Hm....
 Quote

Ivo

Anonymous
Hi, I've just solved the problem. I moved Geeklog to another domain and it was not possible to log in. After two hours of searching I have found that it was caused by a variable $_CONF['cookiedomain'] in config.php. There was the old domain. After changing to new one it works.
 Quote

All times are EST. The time is now 01:53 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content