Installing Gallery On Redbrick: Difference between revisions

From Redbrick Wiki
Jump to navigation Jump to search
twiki2mediawiki (talk)
(Automagically converted by twiki2mediawiki)
 
(Updated for MediaWiki syntax!)
Line 1: Line 1:
== Installing Gallery on Redbrick ==
[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 orgainsing and displaying photos.


Line 9: Line 5:
Download gallery and install it as instructed.
Download gallery and install it as instructed.


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


To get _any_ PHP web software running on redbrick you need to add =#!/usr/local/bin/php=
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:
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:


<pre>
add_photos.php
add_photos.php
add_photos_frame.php
add_photos_frame.php
album_permissions.php
album_permissions.php
albums.php
albums.php
captionator.php
captionator.php
copy_photo.php
copy_photo.php
create_user.php
create_user.php
delete_album.php
delete_album.php
delete_photo.php
delete_photo.php
delete_user.php
delete_user.php
do_command.php
do_command.php
edit_appearance.php
edit_appearance.php
edit_caption.php
edit_caption.php
edit_field.php
edit_field.php
edit_thumb.php
edit_thumb.php
extra_fields.php
extra_fields.php
gallery_remote.php
gallery_remote.php
gallery_remote2.php
gallery_remote2.php
highlight_photo.php
highlight_photo.php
index.php
index.php
login.php
login.php
manage_users.php
manage_users.php
modify_user.php
modify_user.php
move_album.php
move_album.php
move_photo.php
move_photo.php
poll_results.php
poll_results.php
progress_uploading.php
progress_uploading.php
rename_album.php
rename_album.php
reset_votes.php
reset_votes.php
resize_photo.php
resize_photo.php
rotate_photo.php
rotate_photo.php
rss.php
rss.php
save_photos.php
save_photos.php
search.php
search.php
setup/phpinfo.php
setup/phpinfo.php
setup/check_imagemagick.php
setup/check_imagemagick.php
setup/check_mail.php
setup/check_mail.php
setup/check_netpbm.php
setup/check_netpbm.php
setup/check_versions.php
setup/check_versions.php
setup/diagnostics.php
setup/diagnostics.php
setup/frame_test.php
setup/frame_test.php
setup/index.php
setup/index.php
setup/session_test.php
setup/session_test.php
slideshow.php
slideshow.php
slideshow_low.php
slideshow_low.php
sort_album.php
sort_album.php
tools/find_orphans.php
tools/find_orphans.php
upgrade_album.php
upgrade_album.php
user_preferences.php
user_preferences.php
view_album.php
view_album.php
view_photo.php
view_photo.php
</pre>


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.


---
=Gallery Remote=
 
=== 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:
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:


<pre>
[PHP]
[PHP]
 
output_handler =
output_handler =
 
; Whether to allow HTTP file uploads.
; Whether to allow HTTP file uploads.
file_uploads = On
file_uploads = On
 
; Temporary directory for HTTP uploaded files (will use system default if not
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
; specified).
upload_tmp_dir = /home/associat/-letter-/-username-/tmp
upload_tmp_dir = /home/associat/-letter-/-username-/tmp
 
; Maximum allowed size for uploaded files.
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M
upload_max_filesize = 2M
</pre>
 
Of course you should change the =upload_tmp_dir= to the correct path. Thanks to [http://www.redbrick.dcu.ie/~noel noel] for this.


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

Revision as of 10:08, 24 August 2005

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

Unfortantly it's not possible to install Gallery on redbrick and have it work straight away.

Download gallery and install it as instructed.

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.

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:

add_photos.php
add_photos_frame.php
album_permissions.php
albums.php
captionator.php
copy_photo.php
create_user.php
delete_album.php
delete_photo.php
delete_user.php
do_command.php
edit_appearance.php
edit_caption.php
edit_field.php
edit_thumb.php
extra_fields.php
gallery_remote.php
gallery_remote2.php
highlight_photo.php
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.

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.