Gallery
Revision as of 18:22, 17 November 2006 by <bdi>PhilippeTeuwen</bdi> (talk | contribs)
Install
On sql vserver
mysqladmin -uroot -p create gallery2 mysql gallery2 -uroot -p -e"GRANT ALL ON gallery2.* TO admin_gallery2@public.teuwen.org IDENTIFIED BY 'gal_long_pwd'"
On public vserver
apt-get install gallery2 sql host: sql.teuwen.org admin user to create dbs: admin_gallery2 / gal_long_pwd
/etc/gallery2/apache.conf: uncomment first line alias /gallery2 OR create vhosts as suggested in the last lines but don't do both at the same time.
If you use virtual hosts
mv /etc/apache2/conf.d/gallery2 /etc/apache2/sites-available/ ln -s /etc/apache2/sites-available/gallery2 /etc/apache2/sites-enabled
Otherwise this gallery virtualhost will be the one by default
apt-get install locales
activate locales you want for gallery, in their ISO form, not UTF8
apt-get install dcraw jhead zip unzip libjpeg-progs php4-gd ffmpeg imagemagick /etc/init.d/apache2 reload
Be sure both hosts know each other via e.g. /etc/hosts
create /usr/share/gallery2/.htaccess with
php_value memory_limit 64M
Prepare directory for the albums
mkdir /home/gallery2 chown www-data:www-data /home/gallery2
Go to public.teuwen.org/gallery2
Choose Mysql with transactions and give the credentials
Gallery migration
Once you have migrated your Gallery1 to Gallery2 with the migration module
Enable URL Redirection under Apache webserver:
Ensure the mod_rewrite Apache module is enabled: a2enmod rewrite /etc/init.d/apache2 force-reload
- Enable the module URL Rewrite in Gallery2
- URL Rewrite administration -> Rules -> Migration -> activate
- If you have troubles with url rewrite, especially if you touched the directory structure or established vhosts, deinstall completely the URL Rewrite module and reinstall it.
PG Theme
- http://www.pedrogilberto.net/g2/theme.html
- http://gallery.menalto.com/node/33603
- http://gallery.menalto.com/gallery/screenshots/screenshotsG2/themes/pg/
- ! save /usr/share/gallery2/modules/slideshow/templates/local/Slideshow.tpl