Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: csnaus on May 26, 2007, 06:55:18 AM

Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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?
Title: Re: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: cactus 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
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: beeboob 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
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: christian 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.
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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)?
Title: Re: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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.
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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.
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: cactus 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 (http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c159.htm) and the template system (http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c610.htm), 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!
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: christian 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.
Title: Migration of Gallery 1 in ibay to Gallery 2 contrib
Post by: csnaus 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.