Gallery3

From MattWiki
Jump to: navigation, search

Installing Gallery 3 from Source

Prerequisite for install Gallery 3

(ffmpeg requires the atrpms repo)

yum -y install httpd php mysql-server php-mysqli git perl-JSON php-gd GraphicsMagick GraphicsMagick-perl \
perl-GD perl-GDGraph ffmpeg

Modify your /etc/php.ini file and change

upload_max_filesize = 32M
memory_limit = 128M

Installing Gallery 3

cd /var/www/
git clone git://github.com/gallery/gallery3.git gallery3
cd gallery3
mkdir var/
chown apache:apache var/

Gallery3 Setup

Setup 3rd party contrib modules

In the root of the Gallery3 install, download the Contrib repository from github.

git clone https://github.com/gallery/gallery3-contrib.git

Go to the Contrib repository directory and run

cd contrib/3.1/modules
for a in `ls`; do ln -s ../contrib/3.1/modules/$a ../../../modules/$a; done

Theme Details

Items per page

36

Thumbnail size (in pixels)

200

Resized image size (in pixels)

1024

Header text

Footer text

Copyright © 2009 by Matt Rude, All Rights Reserved • <a href="mailto:webmaster@mattrude.com?subject=From Gallery3">webmaster@mattrude.com</a>

How-To

To delete all tags from the gallery

delete from items_tags;
delete from tags;