Running Gallery under Redhat 8.0 (Apache 2.0.40-8, PHP 4.2.2-8.0.5, Gallery v1.3.2-cvs-b10), I ran into a couple of configuration changes that needed to be made to get Gallery working (after following the instructions for Gallery installation). I thought I'd pass them on in case anyone else runs into the same problem (yes, I know this isn't supported yet).
1. In /etc/httpd/conf.d/php.conf: Increase LimitRequestBody (I used 33554432) otherwise web uploads of photos larger than 524288 will generate an error in the Apache error_log and fail.
2. In your gallery directory, after configuration, remove the "php_flag magic_quotes_gpc" statement from the .htaccess file (needs to be done after running the configuration wizard).
3. In /etc/php.ini:
short_open_tag = On
memory_limit = 64M (set appropriate for your needs)
register_globals = On (set appropriate for your needs)
magic_quotes_gpc = Off
upload_max_filesize = 32M (set appropriate for your needs)
As far as I've been able to tell, everything works fine with these changes.
Posts: 2
Thanks for you 'non supported' post. It got me going... Although I had to remove the "php_flag magic_quotes_gpc" statement in the "/gallery/setup/.htaccess" file before I could run the setup. Once I had everything configured, I had to remove it in the "/gallery/.htaccess" file as well.
Thanks!
Posts: 2
I actually changed the "setup/php_value.template" file to:
<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE>php_value post_max_size 33554432
php_value upload_max_filesize 33554432</TD></TR></TABLE><!-- BBCode End -->
Note that I removed the php_flag line completely.
This will allow you to run the configuration without having to make those changes again.