Changes

From SME Server
Jump to navigationJump to search
632 bytes added ,  16:29, 1 November 2016
no edit summary
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
 
{{Needs review}}
 
{{Needs review}}
 +
{{Warning box|Note that as of 20th June 2014 Gallery is no longer being maintained. Follow the link to the developers website at the end of this document for more information or see [http://galleryproject.org/ that link]For an alternative you can check : http://en.wikipedia.org/wiki/Comparison_of_photo_gallery_software. There are also how-tos on [[Piwigo]] and [[Zenphoto]]}}
 +
== Description ==
 +
Gallery is an open source project with the goal to develop and support leading photo sharing web application solutions.
 +
 
Tested with:
 
Tested with:
 
*Gallery 3.02
 
*Gallery 3.02
 
*SME 8b6
 
*SME 8b6
   −
== Description ==
+
== Prerequisites ==
Gallery is an open source project with the goal to develop and support leading photo sharing web application solutions.
  −
 
  −
== Prerequests ==
   
You need to define the following name/user/password:
 
You need to define the following name/user/password:
 
* gallery name for ibay: <gallery_ibay_name>
 
* gallery name for ibay: <gallery_ibay_name>
Line 21: Line 22:     
=== Install ffmpeg ===
 
=== Install ffmpeg ===
All resources are found through http://pkgs.org
+
Add the ATrpms repository to the yum configuration
 
  −
Add the pkgs repository to yum configuration
     −
  /sbin/e-smith/db yum_repositories set atrpms_stable repository \
+
  /sbin/e-smith/db yum_repositories set atrpms repository \
 
  Name 'atrpms stable - EL5' \
 
  Name 'atrpms stable - EL5' \
 
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' \
 
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/stable' \
Line 39: Line 38:  
  gd,perl-TimeDate,librpm4.4 \
 
  gd,perl-TimeDate,librpm4.4 \
 
  status disabled
 
  status disabled
+
 
  /sbin/e-smith/db yum_repositories set atrpms_testing repository \
+
{{Note box|msg=At the moment from editing the modules "libtheoraenc1" and "libtheoradec1" where not found in the stable repository and thereby we also need the ATrpms - testing repository.}}
 +
  /sbin/e-smith/db yum_repositories set atrpms-testing repository \
 
  Name 'atrpms testing - EL5' \
 
  Name 'atrpms testing - EL5' \
 
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/testing' \
 
  BaseURL 'http://dl.atrpms.net/el5-$basearch/atrpms/testing' \
Line 54: Line 54:  
  gd,perl-TimeDate,librpm4.4 \
 
  gd,perl-TimeDate,librpm4.4 \
 
  status disabled
 
  status disabled
+
 
 +
Make sure the configuration files on your server are up-to-date.
 +
 
 
  signal-event yum-modify
 
  signal-event yum-modify
   −
Install the ffmpeg. At the moment from editing the modules "libtheoraenc1" and "libtheoradec1" where not found in the stable reposorty and thereby installed from the testing.
+
Install ffmpeg.
   −
  yum --enablerepo=atrpms_stable install libogg-1.1.3
+
  yum --enablerepo=atrpms-testing install libtheoraenc1 libtheoradec1 libogg libogg0
yum --enablerepo=atrpms_testing install libtheoraenc1
+
  yum --enablerepo=atrpms install ffmpeg
  yum --enablerepo=atrpms_testing install libtheoradec1
  −
yum --enablerepo=atrpms_stable ffmpeg
     −
== ibay ==
+
== Ibay ==
 
=== Create ibay ===
 
=== Create ibay ===
 
Create a ibay for gallery through server-manager and after that issue the following commands on the server's shell:
 
Create a ibay for gallery through server-manager and after that issue the following commands on the server's shell:
Line 71: Line 71:  
  chmod 755 /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
 
  chmod 755 /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
   −
=== set PHPBaseDir ===
+
=== Set PHPBaseDir ===
 
  db accounts setprop <gallery_ibay_name> PHPBaseDir /home/e-smith/files/ibays/<gallery_ibay_name>:/tmp:/usr/bin
 
  db accounts setprop <gallery_ibay_name> PHPBaseDir /home/e-smith/files/ibays/<gallery_ibay_name>:/tmp:/usr/bin
 
  signal-event ibay-modify <gallery_ibay_name>
 
  signal-event ibay-modify <gallery_ibay_name>
   −
=== create mysql database ===
+
=== Create mysql database ===
  mysqladmin -uroot create <gallery_db_name>
+
  mysqladmin create <gallery_db_name>
  mysql <gallery_db_name> -uroot -e"GRANT ALL ON <gallery_db_name>.* TO <gallery_mysql_user>@localhost IDENTIFIED BY '<password>'"
+
  mysql -e "GRANT ALL ON <gallery_db_name>.* TO <gallery_mysql_user>@localhost IDENTIFIED BY '<password>'"
   −
=== gallery files ===
+
=== Gallery files ===
 
Download the latest version from [http://gallery.menalto.com/ Gallery]
 
Download the latest version from [http://gallery.menalto.com/ Gallery]
 +
 +
For version 3.0.2
 +
wget http://downloads.sourceforge.net/gallery/gallery-3.0.2.zip
 +
unzip gallery-3.0.2.zip
    
Copy the files/directories from the gallery3 into the ibay's html directory
 
Copy the files/directories from the gallery3 into the ibay's html directory
 +
cd gallery3
 +
cp -r * /home/e-smith/files/ibays/<gallery_ibay_name>/html/
 +
 +
Remove original SME index.html file in de ibay
 +
rm /home/e-smith/files/ibays/<gallery_ibay_name>/html/index.html
    
Set all file to user www
 
Set all file to user www
Line 96: Line 105:  
  expand-template /etc/php.ini  
 
  expand-template /etc/php.ini  
 
  sv t httpd-e-smith
 
  sv t httpd-e-smith
 +
 +
I also needed to do a
 +
yum install pcre
 +
to get the next step to work /browsem
    
== Start gallery ==
 
== Start gallery ==
Line 104: Line 117:  
=== Change Graphics settings ===
 
=== Change Graphics settings ===
 
Go to "admin" --> "settings" --> "Graphics" and select "ImageMagick"
 
Go to "admin" --> "settings" --> "Graphics" and select "ImageMagick"
  −
=== Upload foto and film ===
  −
Success with it
      
== Uninstall ==
 
== Uninstall ==
 
Delete the content of the ibay (you wll also loose all uploaded content) and delete the ibay through server-manager
 
Delete the content of the ibay (you wll also loose all uploaded content) and delete the ibay through server-manager
  mysqladmin -uroot drop <gallery_db_name>
+
  mysqladmin drop <gallery_db_name>
  mysqladmin -uroot drop user <gallery_mysql_user>@localhost
+
  mysqladmin drop user <gallery_mysql_user>@localhost
    
== Additional information ==
 
== Additional information ==

Navigation menu