Author Topic: changing path to directories  (Read 7775 times)

0 Members and 1 Guest are viewing this topic.

Offline maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
changing path to directories
« on: February 26, 2008, 07:02:28 PM »
I have 2 domains under the same hosting account. I would like to run both domains that are running 4images to use the same database, but I need to change the paths to media folders on one. What file would I edit for this, or would this even be possible?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: changing path to directories
« Reply #1 on: February 26, 2008, 07:09:10 PM »
- includes/constants.php file (same for thumb folder).
- FTP: Rename media folder to new folder (same for thumb folder).
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 maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: changing path to directories
« Reply #2 on: February 26, 2008, 09:30:48 PM »
I tried this, but it still doesn't point to the images on the other site.

Quote
// Data paths
define('MEDIA_DIR', '/home/maineaan/public_html/DomainWithThePics.com/data/media');
define('THUMB_DIR', '/home/maineaan/public_html/DomainWithThePics.com/data/thumbnails');
define('MEDIA_TEMP_DIR', '/home/maineaan/public_html/DomainWithThePics.com/data/tmp_media');
define('THUMB_TEMP_DIR', '/home/maineaan/public_html/photoaide.com/data/tmp_thumbnails');
define('DATABASE_DIR', 'data/database');
define('TEMPLATE_DIR', 'templates');

Both domains are under public_html, so I would think this would do it?

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: changing path to directories
« Reply #3 on: February 27, 2008, 02:37:23 AM »
4images no detect folder for run.
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 maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: changing path to directories
« Reply #4 on: February 27, 2008, 02:41:42 AM »
4images no detect folder for run.
Sorry, but I don't understand this.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: changing path to directories
« Reply #5 on: February 27, 2008, 02:52:02 AM »
4images is no detect folder for use. Global.php file is use $self_url and $url for detect folder for self server. Is no possible for set different FTP folder in includes/constants.php file.
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 maineyak

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: changing path to directories
« Reply #6 on: February 27, 2008, 02:58:21 AM »
So if I wanted to change the folder for images, I couldn't? Both domains are under the same public_html, so they are really like 2 different folders, rather than 2 different domains.

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: changing path to directories
« Reply #7 on: February 27, 2008, 04:16:20 AM »
Is possible for change all folder inside gallery but no possible for two different gallery to see but is possible for mySQL. ;)
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 ?