Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: CPG without DNS?  (Read 3127 times)

0 Members and 1 Guest are viewing this topic.

TheKog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
CPG without DNS?
« on: August 14, 2005, 12:00:11 am »

Posted: Sat Aug 13, 2005 6:23 pm    Post subject: phpBB without DNS?   

--------------------------------------------------------------------------------
 
I am working on running our CPG on a backup server that has no DNS setup.

So to get to my board the path is http://IPADDY/~user/cpg/index.php

Unfortunately the DB and configs were copied from the real server with a functioning domain with DNS.

So all of the CPG scripts seem to be off 1 level of subdir in the paths -- for example image refs that are coded to ../../subdir (where subdir is outside CPG) is not finding the correct files anymore since DNS is not translating the domain name etc. It just seems the relative path names to resources outside the cpg subdir are not getting dereferenced correctly.

Is there a way I can spoof this by just editing the DB? Or a better way for me to use relative paths in my image refs within my theme template?
« Last Edit: August 14, 2005, 07:08:40 pm by TheKog »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: CPG without DNS?
« Reply #1 on: August 14, 2005, 09:52:09 am »

Logged

TheKog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: CPG without DNS?
« Reply #2 on: August 14, 2005, 07:09:12 pm »

typo, meant cpg (they are bridged)-- maybe this is just an artifact of having no DNS?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: CPG without DNS?
« Reply #3 on: August 15, 2005, 07:26:28 am »

You don't need to have DNS for CPG. Did you look at config to have the correct ecard URL?
Logged

TheKog

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 32
Re: CPG without DNS?
« Reply #4 on: August 15, 2005, 01:34:54 pm »

yep and I changed it to no effect.

All of CPG is funtional. It's just the portions of the template where I grab a header image from ../../Images that things aren't working.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: CPG without DNS?
« Reply #5 on: August 15, 2005, 09:41:22 pm »

The quick fix would be to remove a level from your relative paths.  Without actually seeing the problem firsthand, I can't give much more advice.  If you create a test webpage and reference an image in another directory exactly how the template does, do you have the same problem?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.