<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.redbrick.dcu.ie/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bgormley</id>
	<title>Redbrick Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.redbrick.dcu.ie/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bgormley"/>
	<link rel="alternate" type="text/html" href="https://wiki.redbrick.dcu.ie/Special:Contributions/Bgormley"/>
	<updated>2026-05-22T05:39:18Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://wiki.redbrick.dcu.ie/index.php?title=Installing_Gallery_On_Redbrick&amp;diff=4271</id>
		<title>Installing Gallery On Redbrick</title>
		<link rel="alternate" type="text/html" href="https://wiki.redbrick.dcu.ie/index.php?title=Installing_Gallery_On_Redbrick&amp;diff=4271"/>
		<updated>2006-03-09T15:42:51Z</updated>

		<summary type="html">&lt;p&gt;Bgormley: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://gallery.sourceforge.net Gallery] is an excellent piece of PHP software for your website for orgainsing and displaying photos.&lt;br /&gt;
&lt;br /&gt;
Unfortantly it&#039;s not possible to install Gallery on redbrick and have it work straight away. &lt;br /&gt;
&lt;br /&gt;
Download gallery and install it as instructed.&lt;br /&gt;
&lt;br /&gt;
You must then pass all the files through &#039;dos2unix&#039; even if you downloaded the &#039;.tar.gz&#039; archive. You could probaly write a simple script to this. This is the key to getting the scripts to work. &lt;br /&gt;
&lt;br /&gt;
To get &#039;&#039;&#039;any&#039;&#039;&#039; PHP web software running on redbrick you need to add &#039;#!/usr/local/bin/php&#039; to the beginning of the php file. To get Gallery to work, you don&#039;t need to add it to all files but only the files executed, specifically:&lt;br /&gt;
&lt;br /&gt;
 add_photos.php&lt;br /&gt;
 add_photos_frame.php&lt;br /&gt;
 album_permissions.php&lt;br /&gt;
 albums.php&lt;br /&gt;
 captionator.php&lt;br /&gt;
 copy_photo.php&lt;br /&gt;
 create_user.php&lt;br /&gt;
 delete_album.php&lt;br /&gt;
 delete_photo.php&lt;br /&gt;
 delete_user.php&lt;br /&gt;
 do_command.php&lt;br /&gt;
 edit_appearance.php&lt;br /&gt;
 edit_caption.php&lt;br /&gt;
 edit_field.php&lt;br /&gt;
 edit_thumb.php&lt;br /&gt;
 extra_fields.php&lt;br /&gt;
 gallery_remote.php&lt;br /&gt;
 gallery_remote2.php&lt;br /&gt;
 highlight_photo.php&lt;br /&gt;
 index.php&lt;br /&gt;
 login.php&lt;br /&gt;
 manage_users.php&lt;br /&gt;
 modify_user.php&lt;br /&gt;
 move_album.php&lt;br /&gt;
 move_photo.php&lt;br /&gt;
 poll_results.php&lt;br /&gt;
 progress_uploading.php&lt;br /&gt;
 rename_album.php&lt;br /&gt;
 reset_votes.php&lt;br /&gt;
 resize_photo.php&lt;br /&gt;
 rotate_photo.php&lt;br /&gt;
 rss.php&lt;br /&gt;
 save_photos.php&lt;br /&gt;
 search.php&lt;br /&gt;
 setup/phpinfo.php&lt;br /&gt;
 setup/check_imagemagick.php&lt;br /&gt;
 setup/check_mail.php&lt;br /&gt;
 setup/check_netpbm.php&lt;br /&gt;
 setup/check_versions.php&lt;br /&gt;
 setup/diagnostics.php&lt;br /&gt;
 setup/frame_test.php&lt;br /&gt;
 setup/index.php&lt;br /&gt;
 setup/session_test.php&lt;br /&gt;
 slideshow.php&lt;br /&gt;
 slideshow_low.php&lt;br /&gt;
 sort_album.php&lt;br /&gt;
 tools/find_orphans.php&lt;br /&gt;
 upgrade_album.php&lt;br /&gt;
 user_preferences.php&lt;br /&gt;
 view_album.php&lt;br /&gt;
 view_photo.php&lt;br /&gt;
&lt;br /&gt;
Note: For Gallery2, you only seem to need to add the hashbang (#!/usr/local/bin/php) to &#039;install/index.php&#039;, &#039;index.php&#039; and &#039;main.php&#039;.&lt;br /&gt;
It&#039;s important that the hashbang line is the first line in the file and that the second line is the start of the standard php file, e.g.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#!/usr/local/bin/php&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
If you have any blank lines between them you&#039;ll get an error like:&lt;br /&gt;
Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /webtree/gallery/install/index.php:3) in /webtree/gallery/install/index.php on line 83&lt;br /&gt;
&lt;br /&gt;
Oh, BTW, ImageMagick and most of NetPBM is already installed on Redbrick so you won&#039;t need those binaries in your account locally.&lt;br /&gt;
&lt;br /&gt;
=Gallery Remote=&lt;br /&gt;
&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
 [PHP]&lt;br /&gt;
 &lt;br /&gt;
 output_handler =&lt;br /&gt;
 &lt;br /&gt;
 ; Whether to allow HTTP file uploads.&lt;br /&gt;
 file_uploads = On&lt;br /&gt;
 &lt;br /&gt;
 ; Temporary directory for HTTP uploaded files (will use system default if not&lt;br /&gt;
 ; specified).&lt;br /&gt;
 upload_tmp_dir = /home/associat/-letter-/-username-/tmp&lt;br /&gt;
 &lt;br /&gt;
 ; Maximum allowed size for uploaded files.&lt;br /&gt;
 upload_max_filesize = 2M&lt;br /&gt;
&lt;br /&gt;
Of course you should change the &#039;upload_tmp_dir&#039; to the correct path. Thanks to [[User:Noel|Noel]] for this.&lt;/div&gt;</summary>
		<author><name>Bgormley</name></author>
	</entry>
</feed>