Difference between revisions of "Gallery2"

From ArchWiki
Jump to: navigation, search
(categorizing uncategorized page)
m (we keep categories at the top here, see Help:Style)
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Graphics and desktop publishing (English)]]
+
[[Category:Graphics and desktop publishing]]
Gallery2 gives you an intuitive way to blend photo management seamlessly into your own website or simply use it as a gallery... surely there is a gallery3 see http://gallery.menalto.com/ but I like gallery2.
+
[[Category:Web Server]]
 +
{{Tip|There is currently a [http://gallery.menalto.com/ newer version] of Gallery available.}}
 +
Gallery2 gives you an intuitive way to blend photo management seamlessly into your own website or simply use your site as a standalone photo gallery.  
  
Here is my steps.
+
See the [[LAMP]] page for how to install and configure an Apache server with PHP and MySQL. Then, install the dependencies. The {{Pkg|php-gd}}, {{Pkg|imagemagick}}, and {{Pkg|ffmpeg}} packages are available in the repositories, while {{AUR|jpegtran}} is in the [[AUR]].
 +
 
 +
pacman -S php-gd imagemagick ffmpeg
 +
 
 +
Next, download the source code for Gallery2.  
 
   
 
   
 
  cd /tmp
 
  cd /tmp
  wget http://downloads.sourceforge.net/gallery/gallery-2.3.1-full.tar.gz
+
  wget http://downloads.sourceforge.net/gallery/gallery-2.3.2-full.tar.gz
  tar xzf gallery-2.3.1-full.tar.gz
+
  tar xzf gallery-2.3.2-full.tar.gz
 
  sudo mv gallery2 /usr/share/webapps/
 
  sudo mv gallery2 /usr/share/webapps/
  
sudo emacs /etc/httpd/conf/extra/httpd-gallery2.conf
+
Edit {{ic|/etc/httpd/conf/extra/httpd-gallery2.conf}} and add the following lines:
        Alias /gallery2 "/usr/share/webapps/gallery2"
+
Alias /gallery2 "/usr/share/webapps/gallery2"
        <Directory "/usr/share/webapps/gallery2">
+
<Directory "/usr/share/webapps/gallery2">
                AllowOverride All
+
    AllowOverride All
                Options FollowSymlinks
+
    Options FollowSymlinks
                Order allow,deny
+
    Order allow,deny
                Allow from all
+
    Allow from all
        </Directory>
+
</Directory>
  
add  
+
Then, edit {{ic|/etc/httpd/conf/httpd.conf}} and add:
 
  Include conf/extra/httpd-gallery2.conf
 
  Include conf/extra/httpd-gallery2.conf
to /etc/httpd/conf/httpd.conf
 
  
restart apache
+
Restart the Apache server with
 
   sudo /etc/rc.d/httpd restart
 
   sudo /etc/rc.d/httpd restart
  
 +
Once installation is complete, verify your ability to write to Gallery's location on the server.
  
At some point during installation you need to verify your server writeablility.
 
 
  sudo echo "RANDOM KEY" >> /usr/share/webapps/gallery2/login.txt
 
  sudo echo "RANDOM KEY" >> /usr/share/webapps/gallery2/login.txt
  
 
+
If you want maintenance to work, install the Statistics plugin:
If you want maintenance to work then install statistics:  
+
 
+
 
  Set "Themes" and "Modules" folder to 755.
 
  Set "Themes" and "Modules" folder to 755.
 
  Go to "Site Admin" --> "Plugins" --> "Get More Plugins"
 
  Go to "Site Admin" --> "Plugins" --> "Get More Plugins"
 
  Then click "Update Plugin List"
 
  Then click "Update Plugin List"
 
  Install "Statistics" and other plugins that you had installed before upgrading.
 
  Install "Statistics" and other plugins that you had installed before upgrading.
 
Dependencies:
 
gd, imagemagick, Ffmpeg and Jpegtran.
 
 
surely deps:
 
apache, php and mysql.
 

Revision as of 10:24, 19 June 2012

Tip: There is currently a newer version of Gallery available.

Gallery2 gives you an intuitive way to blend photo management seamlessly into your own website or simply use your site as a standalone photo gallery.

See the LAMP page for how to install and configure an Apache server with PHP and MySQL. Then, install the dependencies. The php-gd, imagemagick, and ffmpeg packages are available in the repositories, while jpegtranAUR is in the AUR.

pacman -S php-gd imagemagick ffmpeg

Next, download the source code for Gallery2.

cd /tmp
wget http://downloads.sourceforge.net/gallery/gallery-2.3.2-full.tar.gz
tar xzf gallery-2.3.2-full.tar.gz
sudo mv gallery2 /usr/share/webapps/

Edit /etc/httpd/conf/extra/httpd-gallery2.conf and add the following lines:

Alias /gallery2 "/usr/share/webapps/gallery2"
<Directory "/usr/share/webapps/gallery2">
    AllowOverride All
    Options FollowSymlinks
    Order allow,deny
    Allow from all
</Directory>

Then, edit /etc/httpd/conf/httpd.conf and add:

Include conf/extra/httpd-gallery2.conf

Restart the Apache server with

 sudo /etc/rc.d/httpd restart

Once installation is complete, verify your ability to write to Gallery's location on the server.

sudo echo "RANDOM KEY" >> /usr/share/webapps/gallery2/login.txt

If you want maintenance to work, install the Statistics plugin:

Set "Themes" and "Modules" folder to 755.
Go to "Site Admin" --> "Plugins" --> "Get More Plugins"
Then click "Update Plugin List"
Install "Statistics" and other plugins that you had installed before upgrading.