Author Topic: Use 4images/data/ directory of another installation  (Read 3643 times)

0 Members and 1 Guest are viewing this topic.

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Use 4images/data/ directory of another installation
« on: January 05, 2008, 06:02:45 PM »
I want to use "data/media"  on two sites so that i dont have to upload all imagase to second websites because it will use the same as first one.
Both web pages are on the same server but diffrent users.

i tried to setup secend website constants.php

// Data paths
define('MEDIA_DIR', 'home/onpl24/public_html/tapety/data/media');
define('THUMB_DIR', 'home/onpl24/public_html/tapety/data/thumbnails');
define('MEDIA_TEMP_DIR', 'home/onpl24/public_html/tapety/data/tmp_media');
define('THUMB_TEMP_DIR', 'home/onpl24/public_html/tapety/data/tmp_thumbnails');
define('DATABASE_DIR', 'data/database');
define('TEMPLATE_DIR', 'templates');


But it doesn't work what ai did wrong is it possible to use the same "data/media" on both websites?

Offline KurtW

  • 4images Guru
  • *******
  • Posts: 2.778
    • View Profile
    • Malediven-Bilder ~~Dreams~~
Re: Use 4images/data/ directory of another installation
« Reply #1 on: January 05, 2008, 06:43:35 PM »
Hi,

no, it is not working.
A lot of functions need:
Code: [Select]
$media_dir
in a link. So the path is worng.

I thing only one way:

Gallery_1         => data/Gallery_2/data/media
- templates
- data
    - Gallery_2    => data/media
    - templates
    - data
        - media
        - thumbnails
        - tmp_media
        - tmp_thumbnails

Use subdomains for deeper Url...
Test it ...  :wink:


################### EDIT ######################
But you must use only one db for this way

KurtW
 
« Last Edit: January 05, 2008, 07:02:53 PM by KurtW »

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Use 4images/data/ directory of another installation
« Reply #2 on: January 05, 2008, 06:44:11 PM »
No need for use different media and thumb. 4images is use remote image for upload. ;)
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Use 4images/data/ directory of another installation
« Reply #3 on: January 05, 2008, 08:03:20 PM »
Not good. I have got gallery which contains about 7GB images. And i want to create second one on different domain in another language.  So there is now way to use the same data directory ?

Offline jackald

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Use 4images/data/ directory of another installation
« Reply #4 on: January 15, 2008, 02:01:05 PM »
ok now it works when i enter www.domain.com/wallpapers  but it wont work when i go to www.wallpapers.domain.com it wont show any images is there anyway to fix that?


Maybe there is a way to create shortcut on server. For example i would create one in new installation directory and then change  in constans.php to point to it ?

« Last Edit: January 15, 2008, 02:38:33 PM by jackald »