Installing Gallery On Redbrick: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
(Updated for MediaWiki syntax!)
No edit summary
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[http://gallery.sourceforge.net Gallery] is an excellent piece of PHP software for your website for orgainsing and displaying photos.
[http://gallery.sourceforge.net Gallery] is an excellent piece of PHP software for your website for organising and displaying photos.


Unfortantly it's not possible to install Gallery on redbrick and have it work straight away.  
Unfortunately it's not possible to install Gallery on redbrick and have it work straight away. So instead, use the [http://gallery.redbrick.dcu.ie 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.
Download gallery and install it as instructed.
==Gallery 3==
The installation of gallery 3 is virtually the same as Gallery 2.


You must then pass all the files through 'dos2unix' even if you downloaded the '.tar.gz' archive. You could probaly write a simple script to this. This is the key to getting the scripts to work.  
Extract gallery3 into your public_html directory using the unzip command. Then go to http://redbrick.dcu.ie/~username/gallery3


To get '''any''' PHP web software running on redbrick you need to add '#!/usr/local/bin/php' to the beginning of the php file. To get Gallery to work, you don't need to add it to all files but only the files executed, specifically:
You will be asked to enter your MySQL account details. If you do not have one of these ask the admin's to set one up for you.
Provided all goes well you will be given a temporary admin password. You should change this once you login.


add_photos.php
Please note: Although Gallery3 supports uploading video files. [[Murphy]] doesn't have ffmpeg installed and because of this Gallery3 will not allow videos to be uploaded.
add_photos_frame.php
 
album_permissions.php
==Gallery 2==
albums.php
Mostly this involves untarring it into some directory.
captionator.php
Now, you'll need to ask the admins to set up a MySQL account for you.  
copy_photo.php
 
create_user.php
Then go to
delete_album.php
http://www.redbrick.dcu.ie/~YOURUSERNAME/gallery2 (or where-ever you installed it)
delete_photo.php
and follow the nifty online installation programAt some stage it will ask you for the MySQL values that the
delete_user.php
nice admins should have mailed you when they set up your databaseYou'll need a database name, a user name and a
do_command.php
passwordEverything else: accept the defaults ( e.g. table prefixes ).
  edit_appearance.php
Ignore the bit about making a directory chmod 777; on redbrick PHP scripts run as you, so you have permission to write
edit_caption.php
to your own directory.
  edit_field.php
 
edit_thumb.php
See the bit at the bottom of this page for adding a php.ini to allow uploading big files.
  extra_fields.php
 
gallery_remote.php
==Gallery 1==
  gallery_remote2.php
 
highlight_photo.php
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.  
index.php
login.php
manage_users.php
modify_user.php
move_album.php
move_photo.php
poll_results.php
progress_uploading.php
rename_album.php
reset_votes.php
resize_photo.php
rotate_photo.php
rss.php
save_photos.php
search.php
setup/phpinfo.php
setup/check_imagemagick.php
setup/check_mail.php
setup/check_netpbm.php
setup/check_versions.php
setup/diagnostics.php
setup/frame_test.php
setup/index.php
setup/session_test.php
slideshow.php
slideshow_low.php
sort_album.php
tools/find_orphans.php
upgrade_album.php
user_preferences.php
view_album.php
view_photo.php


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


Of course you should change the 'upload_tmp_dir' to the correct path. Thanks to [[User:Noel|Noel]] for this.
Of course you should change the 'upload_tmp_dir' to the correct path. Thanks to [[User:Noel|Noel]] for this.
[[Category:HowTo]]

Latest revision as of 14:42, 25 October 2010

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 3

The installation of gallery 3 is virtually the same as Gallery 2.

Extract gallery3 into your public_html directory using the unzip command. Then go to http://redbrick.dcu.ie/~username/gallery3

You will be asked to enter your MySQL account details. If you do not have one of these ask the admin's to set one up for you. Provided all goes well you will be given a temporary admin password. You should change this once you login.

Please note: Although Gallery3 supports uploading video files. Murphy doesn't have ffmpeg installed and because of this Gallery3 will not allow videos to be uploaded.

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 where-ever 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.