Koozali.org: home of the SME Server

Migration of Gallery 1 in ibay to Gallery 2 contrib

Offline csnaus

  • *
  • 22
  • +0/-0
Migration of Gallery 1 in ibay to Gallery 2 contrib
« on: May 26, 2007, 06:55:18 AM »
Have been trying to migrate my Gallery 1 to Gallery 2 but without success.
Gallery 1 is installed in ibay while Gallery 2 through contrib.
When I enter path to Gallery 1 albums (Gallery 2 requires absolute path name) I am getting error indicating that the path is incorrect. I checked and it is correct but it I think it is something in the config of SME that kind of "hides" absolute pathnames, or is it php.ini? I cannot remember where the problem is. Has anyone come across this problem?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #1 on: May 26, 2007, 12:37:31 PM »
Quote from: "csnaus"
Have been trying to migrate my Gallery 1 to Gallery 2 but without success.
Gallery 1 is installed in ibay while Gallery 2 through contrib.
When I enter path to Gallery 1 albums (Gallery 2 requires absolute path name) I am getting error indicating that the path is incorrect. I checked and it is correct but it I think it is something in the config of SME that kind of "hides" absolute pathnames, or is it php.ini? I cannot remember where the problem is. Has anyone come across this problem?
You might be running into the PHP open_basedir restriction, do a search on the forum. Perhaps another post I once posted here about enabling error_display for PHP when having problems could also be helpfull: http://wiki.contribs.org/viewpost.php?p=156439
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline beeboob

  • ***
  • 135
  • +0/-0
    • http://www.normal.dk
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #2 on: May 26, 2007, 11:42:32 PM »
Is it Gallery2 from menalto? I get the same problem whit menalto Gallery 2.

But can it run with out php5?

I gav up and install Coppermin  instat of gallery2. I work, but desig off galler 2 is must better
-------------------------------
Webber Wana Bee

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #3 on: May 27, 2007, 04:24:39 AM »
Quote from: "beeboob"
Is it Gallery2 from menalto? I get the same problem whit menalto Gallery 2.

But can it run with out php5?

I gav up and install Coppermin  instat of gallery2. I work, but desig off galler 2 is must better


I'm running Gallery2 just fine as are many. Per cactus' note, you may be running into a PHPBaseDir problem.  There is a contrib available as well which set everything up properly for you in /opt. However if you put it in an iBay it will work too but as before PHPBaseDir may need to be modified depending on what specifically your issue was.
SME since 2003

Offline csnaus

  • *
  • 22
  • +0/-0
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #4 on: May 27, 2007, 05:02:19 AM »
Quote from: "christian"
I'm running Gallery2 just fine ...


Do you mean (1) you've migrated your Gallery 1 albums to Gallery 2 without hitting the problem I described in my original post? Or (2) are you just saying that you are running Gallery 2 without problems?

If (2) then I'm running Gallery 2 without problems as well, however problem is with migrating Gallery 1 to Gallery 2

If (1) can you please describe how was your Gallery 1 installed (in ibay or otherwise)?

Offline csnaus

  • *
  • 22
  • +0/-0
Re: Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #5 on: May 27, 2007, 05:05:11 AM »
Quote from: "cactus"
You might be running into the PHP open_basedir restriction


Thanks for your reply.

Now that you've mentioned open_basedir, it kind of rings the bell. I vaguely remember I had similar problem with netjuke a few years back. I'm still investigating, will let you all know if I find any solution.

Offline csnaus

  • *
  • 22
  • +0/-0
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #6 on: May 27, 2007, 05:09:53 AM »
Quote from: "beeboob"
Is it Gallery2 from menalto? I get the same problem whit menalto Gallery 2.

But can it run with out php5?

I gav up and install Coppermin  instat of gallery2. I work, but desig off galler 2 is must better


Yes it is menalto's Gallery 2.
Gallery 2 install works fine, it is only migration of my existing Gallery 1 albums that is a problem.
Are you perhaps saying that you migrated Gallery 1 to Coppermine because you could not load them into Gallery 2? If so I would be interested to hear how you did it, but then it may not be appropriate to discuss such a subject on this forum.

Offline csnaus

  • *
  • 22
  • +0/-0
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #7 on: May 27, 2007, 05:18:45 AM »
Looks like cactus pinned it down the first time round.

When I modified open_basedir for gallery2 there is no problem. I know I should not modify httpd.conf "manually" but at this stage I need to do some more reading to find out how to do it properly  :)

Anyway, looks like solution has been found, thanks to all who reply and particularly to cactus

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #8 on: May 27, 2007, 05:20:13 PM »
Quote from: "csnaus"
Looks like cactus pinned it down the first time round.

When I modified open_basedir for gallery2 there is no problem. I know I should not modify httpd.conf "manually" but at this stage I need to do some more reading to find out how to do it properly  :)
To save you some time I suggest you read the linked sections of the developers guide about the internal configuration database and the template system, this will get you started pretty soon. You can set the PHPBaseDir for any ibay like so:
Determine the current setting for ibayname using the following command:
Code: [Select]
db accounts getprop ibayname PHPBaseDir
Usually it will only consist of the path to the html folder of the ibay, to add one issue the following command:
Code: [Select]
db accounts setprop ibayname PHPBaseDir "oldvalue:/path/to/extra/filesystem/location"
Be sure to add the old path exactly as it was and put the new path after a colon. Also the keywords are case sensitive so PHPBaseDir should be written exactly like that.
After you have entered the proper values we have to regenrate the configuration value of the webserver:
Code: [Select]
expand-template /etc/httpd/conf/httpd.conf
and restart the webserver to reload the configuration changes:
Code: [Select]
/etc/rc7.d/S86httpd-e-smith restart
Quote from: "csnaus"
Anyway, looks like solution has been found, thanks to all who reply and particularly to cactus
Always nice to be of (some) help!
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #9 on: May 27, 2007, 06:31:47 PM »
Quote from: "csnaus"
Quote from: "christian"
I'm running Gallery2 just fine ...


Do you mean (1) you've migrated your Gallery 1 albums to Gallery 2 without hitting the problem I described in my original post? Or (2) are you just saying that you are running Gallery 2 without problems?

If (2) then I'm running Gallery 2 without problems as well, however problem is with migrating Gallery 1 to Gallery 2

If (1) can you please describe how was your Gallery 1 installed (in ibay or otherwise)?


I was specifcally quoting beeboob with that note as he had problems on a fresh G2 install but yes I started fresh with G2.

Glad to see it's worked out. Per cactus' comment, correct way to adjust this is with PHPBasedir setting in the accounts database.
SME since 2003

Offline csnaus

  • *
  • 22
  • +0/-0
Migration of Gallery 1 in ibay to Gallery 2 contrib
« Reply #10 on: May 31, 2007, 01:11:04 AM »
Quote from: "cactus"
... You can set the PHPBaseDir for any ibay like so ...


Thanks for the pointers, however this will not do for gallery2 contrib as it is installing not in ibay but in /opt.