| | 1 | = Installing Gallery = |
| | 2 | == Emerge == |
| | 3 | {{{ |
| | 4 | echo www-apps/gallery gd imagemagick unzip vhosts zip mysql >> /etc/portage/package.use |
| | 5 | emerge www-apps/gallery |
| | 6 | }}} |
| | 7 | |
| | 8 | == Install in vhost == |
| | 9 | {{{ |
| | 10 | webapp-config -I -h www.thinkthinkdo.com -d gallery gallery 2.3 |
| | 11 | }}} |
| | 12 | |
| | 13 | Output by webapp-config |
| | 14 | {{{ |
| | 15 | ================================================================= |
| | 16 | POST-INSTALL INSTRUCTIONS |
| | 17 | ================================================================= |
| | 18 | |
| | 19 | For new installations: |
| | 20 | |
| | 21 | 1. Create a directory to share photos and make it writeable by the web server. |
| | 22 | |
| | 23 | 2. Create a database for Gallery 2. |
| | 24 | MySQL: mysqladmin -uroot create gallery2 |
| | 25 | mysql gallery2 -uroot -e"GRANT ALL ON gallery2.* TO |
| | 26 | username@localhost IDENTIFIED BY 'password'" |
| | 27 | PostgreSQL: createdb gallery2 -E UNICODE |
| | 28 | if that doesn't work, try |
| | 29 | createdb gallery2 -E SQL_ASCII |
| | 30 | if that doesn't work either, try |
| | 31 | createdb gallery2 |
| | 32 | |
| | 33 | 3. Now browse to http://www.thinkthinkdo.com/gallery/install |
| | 34 | |
| | 35 | NOTE: The installer may complain that FfmpegToolkit.class has been modified. |
| | 36 | This is normal, as we patch it to fix a bug with newer versions of ffmpeg. |
| | 37 | |
| | 38 | For upgrades: |
| | 39 | |
| | 40 | 1. Copy over your config.php and the g2data directory. |
| | 41 | |
| | 42 | 2. If you are using a PHP accelerator, flush its cache. |
| | 43 | |
| | 44 | 3. Browse to http://www.thinkthinkdo.com/gallery/upgrade and follow the |
| | 45 | instructions. |
| | 46 | |
| | 47 | ================================================================= |
| | 48 | }}} |
| | 49 | |
| | 50 | == Post-Install == |
| | 51 | To be done ! |
| | 52 | |
| | 53 | |
| | 54 | |
| | 55 | |