Changes

From SME Server
Jump to navigationJump to search
53 bytes removed ,  09:33, 28 March 2011
m
Wikification
Line 1: Line 1:  
{{Languages}}
 
{{Languages}}
 
{{Needs review}}
 
{{Needs review}}
= Gallery 3.x installation on SME 8.x =
  −
   
== Maintainer ==
 
== Maintainer ==
 
Last updated: 25 March 2011<br>
 
Last updated: 25 March 2011<br>
Line 16: Line 14:  
== Prerequests ==
 
== 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>
  - gallery name for mysql database: <gallery_db_name>
+
* gallery name for mysql database: <gallery_db_name>
  - gallery username for mysql: <gallery_mysql_user>
+
* gallery username for mysql: <gallery_mysql_user>
  - password for <gallery_mysql_user>: <password>
+
* password for <gallery_mysql_user>: <password>
 
Access rights to a shell with root
 
Access rights to a shell with root
  −
      
== Image plugins ==
 
== Image plugins ==
=== Install ImageMagic ===
+
=== Install ImageMagic ===  
# yum install ImageMagick
+
yum install ImageMagick
    
=== Install ffmpeg ===
 
=== Install ffmpeg ===
 
All resources are found through http://pkgs.org
 
All resources are found through http://pkgs.org
   −
  # yum install SDL
+
  yum install SDL
  # mkdir ffpeg
+
  mkdir ffpeg
  # cd ffmpeg
+
  cd ffmpeg
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/ffmpeg-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/ffmpeg-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavcodec52-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavcodec52-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavcore0-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavcore0-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavdevice52-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavdevice52-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavfilter1-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavfilter1-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavformat52-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavformat52-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavutil50-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libavutil50-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libdc1394_22-2.0.2-11.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libdc1394_22-2.0.2-11.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libfaac0-1.28-6.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libfaac0-1.28-6.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libgsm1-1.0.13-2.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libgsm1-1.0.13-2.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libmp3lame0-3.98.4-22.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libmp3lame0-3.98.4-22.el5.i386.rpm
  # wget http://dl.atrpms.net/el4-i386/atrpms/stable/libogg0-1.2.0-10.el4.i386.rpm
+
  wget http://dl.atrpms.net/el4-i386/atrpms/stable/libogg0-1.2.0-10.el4.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrnb0-0.1.2-2.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrnb0-0.1.2-2.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrwb0-0.1.2-2.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libopencore-amrwb0-0.1.2-2.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libpostproc51-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libpostproc51-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://mirror.centos.org/centos/5/os/i386/CentOS/libraw1394-1.3.0-1.el5.i386.rpm
+
  wget http://mirror.centos.org/centos/5/os/i386/CentOS/libraw1394-1.3.0-1.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libswscale0-0.6.1-38_git20110115.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libswscale0-0.6.1-38_git20110115.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoradec1-1.1.1-13.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoradec1-1.1.1-13.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoraenc1-1.1.1-13.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/testing/libtheoraenc1-1.1.1-13.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libva-0.31.1.1_1-0.31.1-2_sds5.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libva-0.31.1.1_1-0.31.1-2_sds5.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbis0-1.2.3-6.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbis0-1.2.3-6.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbisenc2-1.2.3-6.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libvorbisenc2-1.2.3-6.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libx264_112-0.112-14_20110114.2245.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libx264_112-0.112-14_20110114.2245.el5.i386.rpm
  # wget http://dl.atrpms.net/el5-i386/atrpms/stable/libxvidcore4-1.2.2-13.el5.i386.rpm
+
  wget http://dl.atrpms.net/el5-i386/atrpms/stable/libxvidcore4-1.2.2-13.el5.i386.rpm
  # yum localinstall *
+
  yum localinstall *
    
== ibay ==
 
== ibay ==
 
=== Create ibay ===
 
=== Create ibay ===
Create a ibay for gallery
+
Create a ibay for gallery through server-manager and after that issue the following commands on the server's shell:
   −
  # mkdir /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
+
  mkdir /home/e-smith/files/ibays/<gallery_ibay_name>/html/var
  # 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 -uroot 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 <gallery_db_name> -uroot -e"GRANT ALL ON <gallery_db_name>.* TO <gallery_mysql_user>@localhost IDENTIFIED BY '<password>'"
    
=== gallery files ===
 
=== gallery files ===
Line 81: Line 77:     
Set all file to user www
 
Set all file to user www
  # chmod -R www:www /home/e-smith/files/ibays/gallery/html/*
+
  chmod -R www:www /home/e-smith/files/ibays/gallery/html/*
    
=== Change memory limits ===
 
=== Change memory limits ===
 
If needed you can modify the upload limit, first command is to find the current size second is to change
 
If needed you can modify the upload limit, first command is to find the current size second is to change
   −
  # grep memory_limit /etc/php.ini
+
  grep memory_limit /etc/php.ini
 
  memory_limit = 32M
 
  memory_limit = 32M
  # db configuration setprop php MemoryLimit 128M
+
  db configuration setprop php MemoryLimit 128M
 
   
 
   
  # grep post_max_size /etc/php.ini
+
  grep post_max_size /etc/php.ini
 
  post_max_size = 20M
 
  post_max_size = 20M
  # db configuration setprop php PostMaxSize 112M
+
  db configuration setprop php PostMaxSize 112M
 
   
 
   
  # grep upload_max_filesize /etc/php.ini
+
  grep upload_max_filesize /etc/php.ini
 
  upload_max_filesize = 10M
 
  upload_max_filesize = 10M
  # db configuration setprop php UploadMaxFilesize 96M
+
  db configuration setprop php UploadMaxFilesize 96M
 
   
 
   
  # expand-template /etc/php.ini  
+
  expand-template /etc/php.ini  
  # /etc/rc7.d/S86httpd-e-smith restart
+
  /etc/rc7.d/S86httpd-e-smith restart
    
== Start gallery ==
 
== Start gallery ==
Line 114: Line 110:  
== 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 -uroot drop <gallery_db_name>
  # mysqladmin -uroot drop user <gallery_mysql_user>@localhost
+
  mysqladmin -uroot drop user <gallery_mysql_user>@localhost
    
== Additional information ==
 
== Additional information ==

Navigation menu