Installing Gallery On Redbrick

From Redbrick Wiki
Revision as of 22:58, 29 September 2010 by Isaac702 (talk | contribs) (Remove legacy information.)

Gallery is an excellent piece of PHP software for your website for organising and displaying photos.

Unfortunately it's not possible to install Gallery on redbrick and have it work straight away. So instead, use the RBGallery which removes all the hassle of setting up the software, upgrades, and best of all, doesn't use your quota up.

Download gallery and install it as instructed.

Gallery 2

Mostly this involves untarring it into some directory. Now, you'll need to ask the admins to set up a MySQL account for you.

Then go to http://www.redbrick.dcu.ie/~YOURUSERNAME/gallery2 (or whereever you installed it) and follow the nifty online installation program. At some stage it will ask you for the MySQL values that the nice admins should have mailed you when they set up your database. You'll need a database name, a user name and a password. Everything else: accept the defaults ( e.g. table prefixes ). Ignore the bit about making a directory chmod 777; on redbrick PHP scripts run as you, so you have permission to write to your own directory.

See the bit at the bottom of this page for adding a php.ini to allow uploading big files.

Gallery 1

You must then pass all the files through 'dos2unix' even if you downloaded the '.tar.gz' archive. You could probably write a simple script to this. This is the key to getting the scripts to work.

Oh, BTW, ImageMagick and most of NetPBM is already installed on Redbrick so you won't need those binaries in your account locally.

Gallery Remote

If you want to get GalleryRemote working so you can upload pictures without using ftp or the webform, simply create a file called php.ini in the directory where you installed gallery (normally something like =/webtree/-username-/gallery=). The contents of php.ini should be:

[PHP]

output_handler =

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /home/associat/-letter-/-username-/tmp

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M

Of course you should change the 'upload_tmp_dir' to the correct path. Thanks to Noel for this.