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: Setting up image path...  (Read 5477 times)

0 Members and 1 Guest are viewing this topic.

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Setting up image path...
« on: March 29, 2006, 06:57:23 am »

Dear Sir,
        My two sites are hosted on the same server. where i can share the database by changeing database connectivity details in config.inc.php file. after that the second site shows tha category and files names on the copermine galleary but images are not displayed. please let me know from where i can set the image path so it can retrive images corresponding to database data from my other sites url from where the database is used connected.

            i want to show the same images used in one site on other sites gallery the data base can be shared by giving the databse details. but need to set images path as images are not show.

ex:-
site 1 :- http://www.abc.com/gallery/ 
where the actual images are stored.
on the other site gallery :- http://www.xyz.com/gallery/

the server is same.

I want to know from where i can set the image path ?

Thanks
I know you can help me....
Nishant Shrivastava
« Last Edit: March 29, 2006, 10:03:40 pm by GauGau »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Setting up image path...
« Reply #1 on: March 29, 2006, 07:24:36 am »

Are you on linux or windows server?

Also give us the real URLs instead of dummy.
Logged
Chief Geek at Ranium Systems

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Setting up image path...
« Reply #2 on: March 29, 2006, 08:20:00 am »

@niks_007: don't double-post. I removed your identical thread that you posted on another sub-board.
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Setting up image path...
« Reply #3 on: March 29, 2006, 11:24:50 am »

hi....
           thanks
           I am using Linux server.
   
the actual url of my site is where images are loded.

http://www.lakesparadise.com/wallpapers/index.php

the other sire url is http://www.bollywoodplus.co.in/wallpaper/index.php

this is after editing the cofig.inc.php i can see the albums in the gallery but images are not shown...

please help me how to set path...

one more thing i want to encrupt the path of my first site url so the search engines do not found that the images are taken from lakesparadise.com...

I am the owner of both the sites....

Thanks
Nishant Shrivastava
Logged

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Setting up image path...
« Reply #4 on: March 29, 2006, 11:26:36 am »

well i feel sorry for posting one thread twise...

actually i am desprade to get some solution of my problem..

sorry again

Niks
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Setting up image path...
« Reply #5 on: March 29, 2006, 11:59:41 am »

You will have to create a symlink to achieve what you want.

Suppose the path to original gallery (where actual images are stored) is "/home/lakesparadise/public_html/wallpapers/" and the second gallery is "/home/bollywoodplus/public_html/wallpaper/" then follow the steps below (The paths used are just for example. Replace them with your real paths)

  • Rename the albums directory of bollywoodplus gallery i.e. rename "/home/bollywoodplus/public_html/wallpaper/albums" to say "/home/bollywoodplus/public_html/wallpaper/albumsOld".
  • Create a symlink "/home/bollywoodplus/public_html/wallpaper/albums" which will point to "/home/lakesparadise/public_html/wallpapers/albums"
  • The command to create a symlink will be "ln -s /home/lakesparadise/public_html/wallpapers/albums /home/bollywoodplus/public_html/wallpaper/albums"

If you are on a shared webserver then you will have to ask your webhost to create symlinks.

Note: If you don't know how to create symlinks and what does it mean then i suggest you ask your webhost to do the same.


Abbas
Logged
Chief Geek at Ranium Systems

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Setting up image path...
« Reply #6 on: March 29, 2006, 02:23:55 pm »

Hi.......
         Thanks Mr. Abbas.
 
Ya we have same web server. actually i have purchased a resaller plan from a webhosting company. and they have provied us cpanel and web host manager to create hosting planes. lakesparadise.com is the main account there and bollywoodplus is created by me.

I have reded about symlinks after you wrote here. now please let me know it is possible for me to set symlinks for me. and how is gonna help me becouse i want when some one take a look as the property of a image the url path should not indicate the real lakesparadise.com path it should be like bollywoodplus.com path or somehting else.

if i cant create a symlink then what i have to ask my web hosting company to do...

i am realy thankfull for you that you are helping me...

Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: Setting up image path...
« Reply #7 on: March 29, 2006, 02:41:12 pm »

I have reded about symlinks after you wrote here. now please let me know it is possible for me to set symlinks for me. and how is gonna help me becouse i want when some one take a look as the property of a image the url path should not indicate the real lakesparadise.com path it should be like bollywoodplus.com path or somehting else.

Yes the urls won't indicate that the images are coming from different site.

If you have SSH access then you can create the symlinks by yourself else ask your webhost to do the same.


Abbas
Logged
Chief Geek at Ranium Systems

niks_007

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 73
Re: Setting up image path...
« Reply #8 on: March 29, 2006, 08:27:12 pm »

Thanks Mr. Abbas Is is now working...

i have readed some where about fatching copermine but cant find any where please let me know from where i can read more about that.


Thanks A Lot
The copermine support team is excellent in there job...

Thanks Once Again
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Setting up image path...
« Reply #9 on: March 29, 2006, 10:03:00 pm »

We have a "one issue per thread" policy you agreed to respect when signing up. As your initial issue was solved, I'm makring this thread accordingly and locking it.
Logged
Pages: [1]   Go Up
 

Page created in 0.029 seconds with 19 queries.