From MattWiki
Jump to navigation Jump to 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:// 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

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


Thumbnail size (in pixels)


Resized image size (in pixels)


Header text

Footer text

Copyright © 2009 by Matt Rude, All Rights Reserved • <a href=" Gallery3"></a>


To delete all tags from the gallery

delete from items_tags;
delete from tags;