Koozali.org: home of the SME Server

Gallery2 install feedback

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Thanks for the info.
« Reply #15 on: December 27, 2006, 07:04:07 PM »
Quote from: "sad111"

Cactus can you give me you're input as to what directory and scheme
you would use? I.E for g2data.

Thanks.
Most of it is an earlier posts, but here it goes:

Gallery itself is installed in /opt/gallery2 which is shared to the internet using a custom template called 92gallery2 which I placed in the /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf directory, as I use this as code base for multiple galleries I have to add every directory for which I want to enable gallery2 to the open_basedir line as other wise PHP files can not be executed as SME Server isconfigured to allow execution of php scripts in its own tree only. The 92gallery2 fragment reads like this:
Code: [Select]
Alias /gallery2/ /opt/gallery2/
<Directory /opt/gallery2/>
    AddType application/x-httpd-php .php .php3 .phtml
    php_admin_value open_basedir /opt/gallery2/:/home/e-smith/files/ibays/Primary/html/
    Options None
    Options +Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>

If have succesfully implemented this fragment in your httpd.conf file and have restarted your webserver you should be able to access your gallery2 main code base at http://your-server-at-your-domain/gallery2 . If you access this location you are presented with the gallery2 installer. There you can choose to install gallery2 for multiple galleries (Installation step 3: Multisite installation, more information about this option can be found here: http://codex.gallery2.org/index.php/Gallery2:Multisite) and then specify your new location (I had to manually copy the required files because the webserver will try to put them there for you, but is restricted to do so by the configuration of the SME Server by default).

You will also have to configure the ibay (or other location) from which you will run gallery2 to allow execution of PHP code outside of its tree. In my case I added the following entries to the configuration database:
Code: [Select]
db accounts setprop Primary PHPBaseDir /home/e-smith/files/ibays/Primary/html/:/opt/gallery2/ In your case this will probably have to be adapted to suit your needs.
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)

drfresh

Gallery2 install feedback
« Reply #16 on: December 29, 2006, 12:43:08 PM »
Hmm - being very little familiar with linux and installing on SME, can someone tell me when this will be a how-to-for-dummies (like me  :oops: ), that is a how-to that takes care of the subjects raised in the posts? I'm really looking forward to be able to install gallery2 on my system - but I do not have the knowledge to deciffer all this and know exactly what to do and when to do it...

But great that someone is struggling on our behalf! Thanks!

sad111

Fixed
« Reply #17 on: December 29, 2006, 06:28:44 PM »
First I would like to thank cactus and all who helped with testing and input.
here is the links to the new files.
www.linux-one.org/gallery-final/gallery2-install-new.tar.gz
Also if you already have the script installed then just download these 2 files.
www.linux-one.org/gallery-final/install.sh
www.linux-one.org/gallery-final/fixit.sh
Just copy the last 2 files to you're gallery2-install folder and run sh install.sh

In response to drfresh this is as simple as it gets.
If you need any further help just let me know.

P.S the new storage folder is /opt/Gallery2data/gallery/g2data.
Gallery being what you chose during install.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Fixed
« Reply #18 on: December 29, 2006, 09:37:02 PM »
Quote from: "sad111"
First I would like to thank cactus and all who helped with testing and input.
here is the links to the new files.
www.linux-one.org/gallery-final/gallery2-install-new.tar.gz
Also if you already have the script installed then just download these 2 files.
www.linux-one.org/gallery-final/install.sh
www.linux-one.org/gallery-final/fixit.sh
Just copy the last 2 files to you're gallery2-install folder and run sh install.sh

In response to drfresh this is as simple as it gets.
If you need any further help just let me know.

P.S the new storage folder is /opt/Gallery2data/gallery/g2data.
Gallery being what you chose during install.
A few quick remarks...
Why don't you still use netpbm and not ImageMagick (which can be installed using yum from the base repository)? IMHO netpbm is a bit ancient and it will also save you a lot of effort providing all the neccesarry rpms if you use ImageMagick?

Maybe you could also use the script to download the gallery files from the net as well. It will save you a lot of maintenance I think.
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)

drfresh

Gallery2 install feedback
« Reply #19 on: December 29, 2006, 10:42:06 PM »
Thanks again - I'll try it out. Otherwise I'll PM you  :D

Offline svangool

  • ****
  • 73
  • +0/-0
Gallery2 install feedback
« Reply #20 on: December 30, 2006, 08:14:57 AM »
Works fine sad111, good job !

One little remark: adjust the default values in step 4 (still using old values) and if possible for step 5 (database) during install.
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Gallery2 install feedback
« Reply #21 on: December 30, 2006, 10:25:52 AM »
Quote from: "drfresh"
Otherwise I'll PM you  :D
That option seems available, but is disabled on this forum.
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)

sad111

One more thing
« Reply #22 on: December 30, 2006, 02:25:19 PM »
I forgot to tell you if you use the fixit script.
You will have to edit config.php and adjust this line.
$gallery->setConfig('data.gallery.base', 'some/path');
(Replace 'some/path' with the correct value.)
The new storage will be /opt/Gallery2data/gallery/g2data.
Also I don't use imagemagic yet, I use netpbm.

Maybe you could also use the script to download the gallery files from the net as well. It will save you a lot of maintenance I think.

I like to have all the files in one location so that you don't get dead links.
Also then I know the files I have work.

svangool
Works fine sad111, good job !
One little remark: adjust the default values in step 4 (still using old values) and if possible for step 5 (database) during install.

Not sure what you mean are you referring to the script or the gallery installer? If the installer i'm not that good at modifying php code yet.

drfresh

Gallery2 install feedback
« Reply #23 on: December 30, 2006, 07:30:22 PM »
Hmm - I'm really confused here:

I extracted the gallery2-install-new.tar.gz in my /tmp dir.

I ran the install script and chose option 1). It then got an error saying something about the install directory didn't excist

Then I moved to the created /gallery2-install/ dir and ran the script again. Then it worked so far.

Now I ran the gallery2 install from the webbrowser. First thing I noticed is that the script chooses /opt/gallery/g2data as the data dir. That dir wasn't created with your script (I thought it would be - but perhaps I'm wrong there). I created it, changed permissions and continued to the database.

The installation thinks the database name is gallery2, but I find that the database created with your script is "gallery". So I typed that in instead.

But apart from that it seems to have worked... Thanks!

sad111

Gallery2 install feedback
« Reply #24 on: December 30, 2006, 11:14:48 PM »
Quote from: "drfresh"
Hmm - I'm really confused here:

I extracted the gallery2-install-new.tar.gz in my /tmp dir.

I ran the install script and chose option 1). It then got an error saying something about the install directory didn't excist

Then I moved to the created /gallery2-install/ dir and ran the script again. Then it worked so far.

Now I ran the gallery2 install from the webbrowser. First thing I noticed is that the script chooses /opt/gallery/g2data as the data dir. That dir wasn't created with your script (I thought it would be - but perhaps I'm wrong there). I created it, changed permissions and continued to the database.

The installation thinks the database name is gallery2, but I find that the database created with your script is "gallery". So I typed that in instead.

But apart from that it seems to have worked... Thanks!


That is part of the gallery install.
when asked for the storage you are right,  but you can type in /opt/Gallery2data/gallery/g2data as this fixes the indexes problem.
Also the default as per the instaltion for the database is gallery2 just change that to whatever you named you're gallery to.
I would like to fix these problems but it's in the gallery setup and as I said i'm not that good with php. If anyone with php knowledge wants to help with that part i'd appreciate it.
Thanks.

drfresh

Gallery2 install feedback
« Reply #25 on: January 02, 2007, 03:52:36 PM »
But why do you move all files from whereever I extracted them to /gallery2-install/ so that I have to run the script twise? And you don't explain that anywhere - isn't very helpfull...

You say install in: /opt/Gallery2data/gallery/g2data. But that dir wasn't created with your script either. I installed in the proposed /opt/gallery/g2data. Is that a problem? It's OK that you choose another dir so that I have to edit something in the gallery2 install. But I need to know that I should and also why that is.

And why don't you just create a db called gallery2 to comply with the gallery2 install? Why do I need to edit that in the install? It isn't explained anywhere...

But as I said - it seems to work now. Now I have to find some good looking styles for my gallery...

Thanks again

sad111

Gallery2 install feedback
« Reply #26 on: January 02, 2007, 08:18:37 PM »
Quote from: "drfresh"
But why do you move all files from whereever I extracted them to /gallery2-install/ so that I have to run the script twise? And you don't explain that anywhere - isn't very helpfull...

Sorry for the confusion, you are right I changed it to move the files
because if you run it from out side of gallery2-install part of the script
fails. Maybe I can look into something better for that.


You say install in: /opt/Gallery2data/gallery/g2data. But that dir wasn't created with your script either. I installed in the proposed /opt/gallery/g2data. Is that a problem? It's OK that you choose another dir so that I have to edit something in the gallery2 install. But I need to know that I should and also why that is.

First let me ask you if you do a ls of /opt do you have a /Gallery2data?
if Yes then in /opt/Gallery2data do you have /gallery/g2data? should be an empty folder.
If yes then thats good, if not then it didn't work as expected.
As to why i chose this was per cactus input, I'm trying to make as secure as possible. Also let me help you the Gallery2data is not the installation folder but rather the storage for you're albums and pictures. the install will still be in /opt/gallery.


And why don't you just create a db called gallery2 to comply with the gallery2 install? Why do I need to edit that in the install? It isn't explained anywhere...

Ok now I hope this helps but I setup the script so 1 you could have you're gallery be called whatever you want. I.E myvacation, work , or home or whatever. 2 Then you wouldn't have to remember the database that belongs with what. 3 I have taken great care to make it so you could not mess up an existing gallery.

But as I said - it seems to work now. Now I have to find some good looking styles for my gallery...

Thanks again


Again sorry for the confusion.
Quote

Offline Ryan483

  • **
  • 28
  • +0/-0
    • http://rspencer.ath.cx
Gallery2 install feedback
« Reply #27 on: January 11, 2007, 12:16:23 AM »
Anyone got ffmpeg or mplayer to work inside g2? On SME of course :)

I have g2 running on my site, installing from source is pretty easy too.

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
Gallery2 install feedback
« Reply #28 on: January 11, 2007, 01:02:43 AM »
I have ffmpeg installed and ImageMagick. ffmpeg was a little challenging because you'll need to yum it off a 3rd party site; it's not in the base.

A search in this forum will get you the site. how to add 3rd party yum sites is in the wiki.
SME since 2003

Offline Ryan483

  • **
  • 28
  • +0/-0
    • http://rspencer.ath.cx
Gallery2 install feedback
« Reply #29 on: January 11, 2007, 01:06:53 AM »
Thanks.