Setting up image path... Setting up image path...
 

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]

Main Menu

Setting up image path...

Started by niks_007, March 29, 2006, 06:57:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

niks_007

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

Abbas Ali

Are you on linux or windows server?

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

Joachim Müller

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

niks_007

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

niks_007

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

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

sorry again

Niks

Abbas Ali

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
Chief Geek at Ranium Systems

niks_007

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...


Abbas Ali

Quote from: niks_007 on March 29, 2006, 02:23:55 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
Chief Geek at Ranium Systems

niks_007

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

Joachim Müller

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.