Koozali.org: home of the SME Server

Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed

Offline cnoork

  • *
  • 8
  • +0/-0
Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« on: January 19, 2011, 08:41:40 PM »
Who has already installed Gallery 3.0 from http://gallery.menalto.com

I have installed it in an information bay, but after a successful upload the jpeg is not visible in the gallery. Has someone already installed Gallery 3.0 successful on SME 8b6

I did the installation through the following installation steps:
# lat-ibays -a -c "gallery | gallery | admin | wr-admin-rd-group | local | gallery | enabled"
# mysql gallery3 -uroot -e"GRANT ALL ON gallery3.* TO gallery_mysql@localhost IDENTIFIED BY '<password>'"
# yum install ImageMagick.i386
# rm /home/e-smith/files/ibays/gallery/html/index.html
--> Copied the files/directories from gallery-3.0.zip to /home/e-smith/files/ibays/gallery/html/
# chown -R www:www /home/e-smith/files/ibays/gallery/html/*
# mkdir /home/e-smith/files/ibays/gallery/html/var
# chmod 777 /home/e-smith/files/ibays/gallery/html/var

Offline erroneus

  • ***
  • 62
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #1 on: January 20, 2011, 12:33:29 AM »
I would consider checking the gallery contrib and comparing the procedures in there with the procedures you followed. On my next installation of SME, I plan to have different gallery installations for different domain names... on my list of things to do.  I have heard/read where it has been done and I think somewhere there is discussion on how to do it on SME too.  It has been a while since I last looked into it though.

SME server and its e-smith can be a tricky thing to work with until you understand how it is all supposed to work.  You may find that e-smith is changing things "back" after you have set a configuration in one way or another.

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #2 on: January 20, 2011, 12:30:13 PM »
Hi erroneus,

I am working already for years with e-smith/SME. I am aware from the template method from this distribution. With the installation of Gallery you will only put something in the Information Bay and create a mysql database. This is totally separate from the rest of SME. I started with Gallery 1 then installed Gallery 2 all without "any" problems. With this new version I get these strange behavior.

For you plan to use different version for different domains is really easy, just install the Gallery in different ibay's and create different databases. Only they need to be working. I did this with the previous version. You need SME8 for the PHP version.

Offline erroneus

  • ***
  • 62
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #3 on: January 20, 2011, 12:37:08 PM »
That's very good to know!  I appreciate your reply to this curiosity.  I look forward to hacking into this to discover more.  I had not presumed you knew too much because the previous was your first posting to these forums and your reply was your second.  It was easy to assume you were more of a newbie but I was wrong.  Sorry about that.

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #4 on: January 20, 2011, 01:30:01 PM »
Hi erroneus, absolutely no problem, I had once a different account, but lost it....

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #5 on: January 21, 2011, 09:40:34 AM »
# lat-ibays -a -c "gallery | gallery | admin | wr-admin-rd-group | local | gallery | enabled"
LAT seems to have some issues, perhaps one is hitting you now, why did you not just create the user the normal way through the server interface?

# chmod 777 /home/e-smith/files/ibays/gallery/html/var
Is that really necessary? Would 755 or perhaps even 644 not be possible? Making things world readable and writeable is a bad thing to do security wise. IIRC the configuration is also stored in ./var/ and the folders are in the webspace tree. A little caution is advised IMHO.
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 CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #6 on: January 25, 2011, 11:09:01 PM »
Is that really necessary?

No, it is never necessary! And it is always a security risk.

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #7 on: January 26, 2011, 09:52:58 PM »
Hi,

I know that the rights are much to far open, but with the installation it was recommended. Because it is not working right now this is the last think to worry about.

I have tried to do all over and create the ibay without the LAT. Unfortunately it gives the same result.

Offline winful

  • 3
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #8 on: February 01, 2011, 04:59:36 PM »
I just tested my installation and the upload works.  It is slightly different.
SME 8 Beta 6 -> Drupal 7 in the primary ibay ->Gallery 3 in the default site folder as:
/home/e-smith/files/ibays/Primary/html/sites/default/gallery3
url http://www._mysite_.com/sites/default/gallery3/index.php/
Permissions on the var folder are 755.
Before I upgraded to Drupal 7 from 6, I had gallery 2 in
/home/e-smith/files/ibays/Primary/html/sites/default/gallery2
This was available either as
http://www._mysite_.com/sites/default/gallery2/main.php/
or through the Drupal integration module described in the Contribs
Upgrading to Drupal 7 from 6 broke the gallery 2 access (all) but not the Gallery 3 direct access.
One thing I noticed in my notes on the gallery 6 install is this reference which was necessary for me to upload .jpgs-
 Since gallery 3 is in the same ibay, it is also affected:

Configure PHP Basedir Restriction per ibay:
db accounts setprop IBAYNAME PHPBaseDir DIR1:DIR2:DIRn
signal-event ibay-modify IBAYNAME
Example
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary:/tmp
signal-event ibay-modify Primary

Pasted from <http://wiki.contribs.org/Useful_Commands>

Offline erroneus

  • ***
  • 62
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #9 on: February 01, 2011, 06:10:29 PM »
winful: I know that when I finally get around to it, I will want to have at least one gallery instance for each of my domain names.  Each domain's web site will point to a separate ibay.  The thread's creator (cnoork) has attempted to do a similar configuration to the one I intend to create.  You have done something different with your use of Drupal.  I suspect Drupal has done something that made this process easier.

cnoork: have you resolved the problem?  If so, would you mind posting your success? 

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #10 on: February 01, 2011, 09:42:41 PM »
@winful: thanks, it looks like this did the trick. I am reinstalling the whole and test it again. I did the following commands:

# db accounts setprop gallery PHPBaseDir /home/e-smith/files/ibays/gallery:/tmp
# signal-event ibay-modify gallery

@erroneus: just install the files onto different directories/ibay's and create a different database and user for every gallery. At that way it is also easy to try an update on one gallery instead of all.

I will post again when I have tested again. Thanks for the good support.

Offline erroneus

  • ***
  • 62
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #11 on: February 01, 2011, 10:07:32 PM »
cnoork: Awesome!  Please!  Once you have everything working as it should, list out the steps needed to reproduce your success!  Perhaps you can even make a Contrib or How-to guide to add to the collection of useful things people can do with SME server!  Thanks so much for your contributions!  I look forward to implementing this for myself!

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #12 on: March 04, 2011, 04:51:49 PM »
HI, I have all working including ffmpeg. Only waiting for account to create wiki.

Offline cnoork

  • *
  • 8
  • +0/-0
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #13 on: April 01, 2011, 10:45:59 PM »
Hi, I have created a wiki for the installation.

http://wiki.contribs.org/Gallery3

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Re: Gallery 3.0 on SME 8 beta 6 upload jpg does not succeed
« Reply #14 on: April 01, 2011, 11:43:45 PM »
Hi, I have created a wiki for the installation.

http://wiki.contribs.org/Gallery3
Nice start. Note you can use Yum to install from atrpms which will greatly simplify your ffmpeg step. See also http://wiki.contribs.org/ATrpms

The PHPBasedir issue you ran into is common for Gallery. Now that you know, if you search on this site for both gallery2 and phpbasedir you will get a number of hits.
SME since 2003