2011년 12월 29일 목요일

how to install ffmpeg to share screen capturing and recording ?

Firstly, if you want to use sharing screen, you need to install Open JDK(for Linux) or JRE(for Windows) to run Java File like ***.jnlp.

2. If you want to use recording function on OpenMeetings, you should install ffmpeg manually.
This is manual how to install ffmpeg;


http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289


Install FFmpeg and x264 on Ubuntu Lucid Lynx 10.04 LTS

Install the Dependencies
1. Uninstall x264, libx264-dev, and ffmpeg if they are already installed. Open a terminal and run the following (you can usually paste into a terminal with shift+ctrl+v). Copy and paste the whole code box for each step.
Code:
sudo apt-get remove ffmpeg x264 libx264-dev yasm
2. Get all of the packages you will need to install FFmpeg and x264 (you may need to enable the universe and multiverse repositories):
Code:
sudo apt-get update
sudo apt-get install build-essential git-core checkinstall texi2html libfaac-dev \
    libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev \
    libvorbis-dev libx11-dev libxfixes-dev zlib1g-dev

Install Yasm
3. Yasm is required for x264:
Code:
cd
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xzvf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
make
sudo checkinstall --pkgname=yasm --pkgversion="1.2.0" --backup=no --deldoc=yes --default

Install x264
4. Get the current source files, compile, and install. (See using snapshots if you are having connection issues with the Git server.)
Code:
cd
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static
make
sudo checkinstall --pkgname=x264 --default --pkgversion="3:$(./version.sh | \
    awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes

Install LAME
5. This is used to encode mp3 audio.
Code:
sudo apt-get remove libmp3lame-dev
sudo apt-get install nasm
cd
wget http://downloads.sourceforge.net/project/lame/lame/3.99/lame-3.99.tar.gz
tar xzvf lame-3.99.tar.gz
cd lame-3.99
./configure --enable-nasm --disable-shared
make
sudo checkinstall --pkgname=lame-ffmpeg --pkgversion="3.99" --backup=no --default \
    --deldoc=yes

Install libvpx
6. This is used to encode VP8 video.
Code:
cd
git clone http://git.chromium.org/webm/libvpx.git
cd libvpx
./configure
make
sudo checkinstall --pkgname=libvpx --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \
    --default --deldoc=yes

Install FFmpeg
7. Get the most current source files, compile, and install. Run "./configure --help" to see what other features you can enable/disable. Nightly FFmpeg snapshots are also available.
Code:
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx \
    --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(./version.sh)" --backup=no \
    --deldoc=yes --default
hash x264 ffmpeg ffplay ffprobe
Installation is now complete. You can stop here if all you wanted to do is compile and install FFmpeg. The rest of the guide has additional information on updating and removing the packages you just compiled.

Install qt-faststart (optional)
This is a useful tool included with FFmpeg that rearranges a file with H.264 video, "such that the moov atom is in front of the data, thus facilitating network streaming". Basically, it allows web movies to start playing before they are completely downloaded. Usage: qt-faststart input.foo output.foo.
Code:
cd ~/ffmpeg
make tools/qt-faststart
sudo checkinstall --pkgname=qt-faststart --pkgversion="$(./version.sh)" --backup=no \
    --deldoc=yes --default install -Dm755 tools/qt-faststart /usr/local/bin/qt-faststart

Updating FFmpeg and x264
Development of FFmpeg and x264 is active and an occasional update can give you new features and bug fixes. To update FFmpeg and x264 you will need to remove the packages, make distclean, update the source, recompile, and install. To update x264:
Code:
sudo apt-get remove ffmpeg x264 libx264-dev libvpx
cd ~/x264
make distclean
git pull
Now compile x264 as shown earlier in the guide starting with the x264 ./configure line. You can update libvpx if you installed that too:
Code:
cd ~/libvpx
make clean
git pull
Now continue with the installation starting with the libvpx ./configure line. Now update FFmpeg:
Code:
cd ~/ffmpeg
make distclean
git pull
Finish the installation starting with the FFmpeg ./configure line.


Reverting Changes Made by This Guide
To remove FFmpeg/x264 and other packages added for this guide:
Code:
sudo apt-get remove x264 ffmpeg qt-faststart build-essential git-core checkinstall \
    nasm yasm texi2html libfaac-dev lame-ffmpeg libsdl1.2-dev libtheora-dev libvorbis-dev \
    libx11-dev libxfixes-dev zlib1g-dev
Lastly, delete the ffmpegx264lame, and libvpx directories in your home folder.

2011년 12월 14일 수요일

how to install Openmeetings on Ubuntu

1. Download files of Openmeetings.
http://code.google.com/p/openmeetings/wiki/InstallationOpenMeetings

2. To install Java, you need to edit /etc/apt/source.list file

remove the # sign in those lines,
#deb http://archive.ubuntu.com/ubuntu/ lucid main partner
#deb-src http://archive.ubuntu.com/ubuntu/ lucid main partner

We need to do it following commands;

#sudo apt-get reinstall python
       - when add-apt-repository is not working.


Install Open Office Service on Debian/(K)Ubuntu (versions > 2.3)

  1. Install OpenOffice-Headless as root (through su, sudo, etc.):
  2. sudo apt-get install openoffice.org-headless
  3. Create and edit a file named openoffice.sh (for example) with you favorite editor over /etc/init.d:
  4. vi /etc/init.d/openoffice.sh
    #!/bin/bash
    # openoffice.org  headless server script
    #
    # chkconfig: 2345 80 30
    # description: headless openoffice server script
    # processname: openoffice
    # 
    # Author: Vic Vijayakumar
    # Modified by Federico Ch. Tomasczik
    #
    OOo_HOME=/usr/bin
    SOFFICE_PATH=$OOo_HOME/soffice
    PIDFILE=/var/run/openoffice-server.pid
    set -e
    case "$1" in
        start)
        if [ -f $PIDFILE ]; then
          echo "OpenOffice headless server has already started."
          sleep 5
          exit
        fi
          echo "Starting OpenOffice headless server"
          $SOFFICE_PATH -headless -nologo -nofirststartwizard -accept="socket,host=127.0.0.1,port=8100;urp" & > /dev/null 2>&1
          touch $PIDFILE
        ;;
        stop)
        if [ -f $PIDFILE ]; then
          echo "Stopping OpenOffice headless server."
          killall -9 soffice && killall -9 soffice.bin
          rm -f $PIDFILE
          exit
        fi
          echo "Openoffice headless server is not running."
          exit
        ;;
        *)
        echo "Usage: $0 {start|stop}"
        exit 1
    esac
    exit 0
  5. Change the permssions to this file:
  6. chmod 0755 /etc/init.d/openoffice.sh
  7. Install openoffice.sh init script links:
  8. update-rc.d openoffice.sh defaults
  9. Start the service:
  10. /etc/init.d/./openoffice.sh start
  11. You can see if openofice is running with this command:
  12. netstat -nap | grep office



 UbuntuLucidLTS 
Updated Aug 28, 2011 by shouldbe...@gmail.com
#Installation of openmeetings on Ubuntu 10.04.

Introduction

Details

Edit the sources to include partner so that the sun-jre will install
sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre sun-java6-fonts mysql-server imagemagick gs-gpl libt1-5 zip unzip subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore-dev zlib1g-dev libogg-dev sox libvorbis-dev libgsm1 libgsm1-dev libfaad2 flvtool2 lame gcc-multilib autoconf automake1.9 libtool ffmpeg automake
and now the openoffice bits
sudo apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-impress openoffice.org-draw openoffice.org-math openoffice.org-gcj openoffice.org-filter-binfilter openoffice.org-java-common
now the prerequisites for swftools http://www.swftools.org need to be installed
Starting with freetype, get the latest from here http://download.savannah.gnu.org/releases/freetype/
mkdir freetype
cd freetype
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.5.tar.gz
tar -zxvf freetype-2.4.5.tar.gz
cd freetype-2.4.5
./configure
make
sudo make install
now jpeglib
sudo apt-get install libjpeg-progs libjpeg62 libjpeg62-dev  
and some more
sudo apt-get install libgif-dev libgif4 
now we can progress with swftools
get the latest from here http://www.swftools.org/download.html
mkdir swftools
cd swftools
wget http://www.swftools.org/swftools-2011-01-23-1815.tar.gz
tar -zxvf swftools-2011-01-23-1815.tar.gz
cd swftools-2011-01-23-1815
because of some missing items from later versions of libjpeg, xpdf needs to be put into the build
get the latest from ftp://ftp.foolabs.com/pub/xpdf/
cd ./lib/pdf
wget ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.03.tar.gz
now we can get on with the build
cd ../..
./configure
make
sudo make install
With all pre-reqs now installed, we can get on with openmeetings, get the latest version fromhttp://code.google.com/p/openmeetings/downloads/list
mkdir openmeetings
cd openmeetings
wget http://openmeetings.googlecode.com/files/openmeetings_1_7_0_r3822.zip
sudo mkdir /opt/red5
sudo cp openmeetings_1_7_0_r3822.zip /opt/red5
cd /opt/red5
sudo unzip openmeetings_1_7_0_r3822.zip
sudo rm openmeetings_1_7_0_r3822.zip
now make the scripts executable and change the ownership.
sudo chmod +x /opt/red5/*.sh
sudo chmod +x /opt/red5/webapps/openmeetings/jod/*.sh
sudo chown -R nobody\: /opt/red5
now you need to create a red5 startup script
sudo nano /etc/init.d/red5
#! /bin/sh
#
# red5 red5 initscript
#
# Author: Simon Eisenmann .
#
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DESC="Red5 flash streaming server"
NAME=red5
RED5_HOME=/opt/red5
DAEMON=$RED5_HOME/$NAME.sh
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed.
test -x $DAEMON || exit 0
# Read config file if it is present.
if [ -r /etc/default/$NAME ]
then
            . /etc/default/$NAMEfi
#
# Function that starts the daemon/service.
#
d_start() {
            start-stop-daemon --start -c nobody --pidfile $PIDFILE --chdir $RED5_HOME --background --make-pidfile --exec $DAEMON}
#
# Function that stops the daemon/service.
#
d_stop() {
            start-stop-daemon --stop --quiet --pidfile $PIDFILE --name java
            rm -f $PIDFILE}
case "$1" in
            start)
   echo -n "Starting $DESC: $NAME"
   d_start
   echo "."
            ;;
            stop)
   echo -n "Stopping $DESC: $NAME"
            d_stop
   echo "."
            ;;

            restart|force-reload)
   echo -n "Restarting $DESC: $NAME"
   d_stop
   sleep 1
   d_start
   echo "."
            ;;

            *)
   echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
   exit 1
            ;;
esac
exit 0
exit 0
now make it executable and set to autostart
sudo chmod +x /etc/init.d/red5
sudo update-rc.d red5 defaults
the database needs to be configured
echo "CREATE USER openmeetings@localhost;" | mysql -u root -p
echo "CREATE DATABASE openmeetings DEFAULT CHARACTER SET 'utf8';" | mysql -u root -p
echo "GRANT ALL PRIVILEGES ON openmeetings.* TO 'openmeetings'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION;" | mysql -u root -p
echo "FLUSH PRIVILEGES;" | mysql -u root -p


There is a MySQL sample config: mysql_persistance.xml that ships with every release of OpenMeetings.

Before you start

  • Make sure that you have set utf8 as default/server-character-set in your MySQL configuration (my.cnf) before you start the installation process of OpenMeetings!
  • make sure MySQL is listening on TCP/IP connections!
To verify if MySQL connection is working: OpenMeetings will automatically create all tables in the database and all tables should have utf8 as encoding/collation!
  • If you encounter issues, you can drop the db again and delete the file $red5/webapps/openmeetings/conf/install.xml and then run the web based installer again

Steps todo

  1. Rename $red5/webapps/openmeetings/WEB-INF/classes/META-INF/mysql_persistence.xml to $red5/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
  2. Prepare Database Settings - go to openmeetings_version_no_xx/webapps/openmeetings/WEB-INF/classes/META-INF/persistence.xml
  3. MySQL-Database-Users: Alter following config values in persistance.xml $DB_HOST $USER_NAME $USER_PASS with your values
    <property name="openjpa.ConnectionProperties" value="DriverClassName=com.mysql.jdbc.Driver, Url=jdbc:mysql://$DB_HOST:3306/openmeetings?autoReconnect=true&amp;useUnicode=true&amp;createDatabaseIfNotExist=true&amp;characterEncoding=utf-8&amp;connectionCollation=utf8_general_ci&amp;cachePrepStmts=true&amp;cacheCallableStatements=true&amp;cacheServerConfiguration=true&amp;useLocalSessionState=true&amp;elideSetAutoCommits=true&amp;alwaysSendSetIsolation=false&amp;enableQueryTimeouts=false&amp;prepStmtCacheSize=3000&amp;prepStmtCacheSqlLimit=1000, MaxActive=100, MaxWait=10000, TestOnBorrow=true,  poolPreparedStatements=true,  Username=$USER_NAME, Password=$USER_PASS"/>
            
  4. Run red5-service and goto the web-based installer: http://localhost:5080/openmeetings/install
where
<password>
is the password that you used when configuring MySQL
Go to a browser and go to http://f.q.d.n:5080/openmeetings/install to complete the install
After install sun-java6-jdk, we need to select another java with following command;
sudo update-alternatives --config java 



2011년 9월 7일 수요일

How to configure for BackUp System

For making our system safe, I've configured Backup system.
What I did is that use two hard disk, 1 is internal and other is USB hard disk.
1. Mounting each HDD to our system.
Command is,
   # mkdir /HDD2
   # sudo mount /dev/sdb /HDD2

     Making 2 Partitions
  # sudo /sbin/fdisk /dev/sdc

    Formatting HDD
  # sudo mkfs.ext4 /dev/sdc1
  # sudo mkfs.ext4 /dev/sdc2

  # mkdir /HDD3
  # sudo mount /dev/sdc1 /HDD3

after that, I add that in /etc/fatab to mount automatically.


2. Using 'rsync' to make same directory to '/var/www/moodle' and '/var/moodledata'.
    Command is,
    # rsync -av /var/www/moodle /HDD2/BackUP/backup_moodle
    # rsync -av /var/moodledata/ /HDD2/BackUp/backup_moodledata

    and using mysqldump to backup database
    # sudo mysqldump -h localhost -u root --password=KUelearning -C -Q -e --create-options moodle > /HDD2/BackUp/moodle-database.sql

3. Adding above commands to crontab; scheduling 

2011년 9월 6일 화요일

In moodledata directory, you should change permission for filedir, temp to backup!!

I got error when I was trying to backup of moodle
The error message was 'can not write, no writable permission'

I solved that problem using this command,

# chmod -R 777 /var/moodledata/filedir
# chmod -R 777 /var/moodledata/temp

That's all

How to use 'e-Mail Notification & cron.php '

I have been trying to find out how to use 'e-Mail Notification on moodle'.
Finally, I've found out that.
Let me describe about that,

-  e-Mail Notification is working when cron.php is working.
1. You need to configure 'crontab' to use cron scheduling.
    in command line,
    # sudo crontab -e -u root

2. Choose editor whatever you want

3. add this line,

    min hour day month week  command

    */2 * * * * php /var/www/moodle/admin/cli/cron.php

4. Restart cron,
    # sudo /etc/init.d/cron restart

that's all


   

2011년 8월 15일 월요일

Randy Olson

Installing Zend Server Community Edition

Home > Zend Server Installation Guide > RPM (RHEL, CentOS, Fedora and OEL) Installation

RPM Installation (RHEL, CentOS, Fedora and OEL)

In this Topic Hide
This method uses "yum" to handle all installations, upgrades and additional packages. Alternatively, you may choose any other tool that supports the RPM packaging format (e.g. Kpackage, etc).
This method downloads files from the Internet and therefore requires that you have an active Internet connection, access to your distribution's repositories and root privileges for the server.
PHP Note:
The Zend Server installation package will replace your distribution's PHP - this may create conflicts between RPM packages. If you cannot install one of Zend Server's components, it is recommended that you remove your distribution's PHP packages and try to install again.
SELinux Note:
SELinux users must change their system settings to permissive mode before starting the Zend Server Community Edition installation procedure, by executing the following command:
# setenforce permissive

Automatically Installing Zend Server Community Edition

The following procedure describes how to run a script that will automatically create your DEB or RPM repositories and install Zend Server.


Instructions on how to complete a procedure
  1. Download the package called "Linux x86 Installer (RPM/DEB Setup Script)" from zend.com - http://www.zend.com/products/server-ce/downloads
  2. Locate and extract the package:
    ZendServer-X.X.X-RepositioryInstaller-linux.tar.gz
  3. To change to the directory with the installer scripts run:
    cd ZendServer-RepositoryInstaller-linux/
  4. Depending on the PHP version, you want to use, run one of the following commands:
    • For Zend Server Community Edition with PHP 5.2 Support run:
      install_zs.sh 5.2 ce
    • For Zend Server Community Edition with PHP 5.3 Support run:
      install_zs.sh 5.3 ce
After installing, a completion notification will appear, with a notice that the servers have started.
To access the Administration Interface (Web) open your browser at: https://localhost:10082/ZendServer (secure) or http://localhost:10081/ZendServer.
Upon initial log in, you will be prompted to define your password.

Manually Installing Zend Server Community Edition

To install Zend Server Community Edition, first setup the repository for downloading the Zend Server Community Edition package.


Instructions on how to complete a procedure
To setup the environment:
Set up your Zend Server Community Edition repository by creating:
/etc/yum.repos.d/zend.repo and adding the following content:
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key

[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
Now you can use 'yum' to handle installations or any other tool that supports the RPM packaging format.
To install:


Instructions on how to complete a procedure
1.Once the environment is setup, run the appropriate command according to the product version and PHP support you require:
To install Zend Server Community Edition with PHP 5.2 run:
# yum install zend-server-ce-php-5.2
To install Zend Server Community Edition with PHP 5.3 run:
# yum install zend-server-ce-php-5.3
2. To clean your packages cache and ensure retrieval of updates from the web, run:
yum clean all
After installing, a completion notification will appear, with a notice that the servers have started.
To access the Administration Interface (Web) open your browser at: https://localhost:10082/ZendServer (secure) or http://localhost:10081/ZendServer.
Upon initial log in, you will be prompted to define your password.

Additional Packages

There are additional packages that can be added after installing Zend Server Community Edition, using, 'yum install'.
Important Note:
After installing a component on top of an existing Zend Server installation, you must click restart-btn-ce.gif for the changes to take effect.
You can remove each package individually with the following command 'yum remove' and then the package name of the component you want to remove. To complete the removal process in the Zend Server Administration interface click "Restart PHP".
Description
PHP 5.2
PHP 5.3
Additional PHP extensions
php-5.2-extra-extensions-zend-server
php-5.3-extra-extensions-zend-server
Java bridge package (Requires Sun JRE 1.5, 1.6 or later installed on your computer. Therefore, if you do not already have JRE installed please install it before using the Java Bridge. More information about JRE’s and the latest updates are found in the SUN Website: http://java.sun.com/javase/downloads/index.jsp (jre-6u21-linux-x64-rpm.bin)
php-5.2-java-bridge-zend-server
php-5.3-java-bridge-zend-server
The Zend Guard Loader for running PHP, encoded with Zend Guard.
php-5.2-loader-zend-server
php-5.3-loader-zend-server
A phpMyadmin meta package that installs phpMyAdmin and attaches it to the Administration Interface via a link from the Dashboard.
phpmyadmin-zend-server-php-5.2
phpmyadmin-zend-server-php-5.3
Zend Framework's bundled Dojo.
zend-server-framework-dojo
zend-server-framework-dojo
Zend Framework's extra components.
zend-server-framework-extras
zend-server-framework-extras
Full PHP sources, patched by Zend
php-5.2-source-zend-server
php-5.3-source-zend-server
Zend Server Control Panel
control-panel-zend-server

control-panel-zend-server

The following extensions require the IBM DB2 runtime client (RTCL):
PHP extension that enables access to the IBM DB2 Universal Database, IBM Cloudscape and Apache Derby databases.
php-5.2-ibmdb2-zend-server
php-5.3-ibmdb2-zend-server
PHP pdo_ibm extension.
php-5.2-pdo-ibm-zend-server
php-5.3-pdo-ibm-zend-server
Informix client
php-5.2-pdo-informix-zend-server
php-5.3-pdo-informix-zend-server
You can download and install IBM's Runtime Client libraries from ftp://ftp.software.ibm.com/software/data/db2/express/
CentOS and RHEL4 and 5 Note:
The phpmyadmin-zend-ce package depends on the availability of phpMyAdmin from your distribution's repositories. The default CentOS repositories for example do not offer phpMyAdmin and therefore require that you manually add the rpmforge repositories to your yum repositories list. For information on how to do this for CentOS see: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

Post Installation Configuration

If you intend to use PHP and other tools provided by Zend Server Community Edition (pear and pecl) from the command line (PHP CLI), it is recommended that you add the <install_path>/bin directory to your $PATH environment variable.
This can be done in two ways:
  • Per user profile
  • For all users
The following procedure is intended for use with bash. If you are using a different shell, adjust the procedure accordingly.


Instructions on how to complete a procedure
To add the <install_path>/bin directory to your $PATH environment variable per user profile:
  1. Using a text editor, open .bashrc (located in your home directory).
  2. Add the following lines to the end of the file:
PATH=$PATH:<install_path>/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib
Replace <install_path> with your Zend Server Community Edition installation path.
  1. Save the file.
  2. In order for this to take effect, close and reopen your shell or run the following command:
source ~/.bashrc
You can now run the PHP binary provided by Zend Server Community Edition without typing its full path.


Instructions on how to complete a procedure
To add the <install_path>/bin directory to your $PATH environment variable for all users:
  1. Log in as root or use sudo to execute the following commands.
  2. Using a text editor, open /etc/profile.
  3. Add the following lines to the end of the file:
PATH=$PATH:<install_path>/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<install_path>/lib
Replace <install_path> with your Zend Server Community Edition installation path.
  1. Save the file.
  2. In order for this to take effect, close and reopen your shell or run the following command:
source /etc/profile
You can now run the PHP binary provided by Zend Server Community Edition without typing its full path.

Enabling RPM Package Signature Validation

Zend Server's RPM packages are signed using PGP. This can be used to validate package integrity and authenticity during installation. This is an optional step which is recommended for organizations with strict security policies.


Instructions on how to complete a procedure
To enable RPM package signature validation:
  1. Start the manual installation process as described in (link to manual install)
  2. After creating the file /etc/yum.repos.d/zend.repo, change the value of all of the gpgcheck occurrences to '1'
  3. After each gpgcheck occurrence add the following line:
    gpgkey=http://repos.zend.com/zend.key
  4. Continue the installation process
Before installing the first packages, yum will  prompt you to approve importing the Zend PGP key from the URL above.
After following this procedure, whenever upgrading and installing Zend Packages yum will verify the packages before installing them.

Upgrading Zend Server Community Edition

The following procedure describes how to upgrade Zend Server Community Edition using 'yum'.
For more information on upgrading your Zend Server Community Edition, including additional upgrade scenarios, see Upgrading.
RPM Upgrade Note:
After upgrading, you will need to manually start your server by running the command: <install_path>/bin/zendctl.sh start.
bulb.gifTo perform these actions you must have root privileges.


Instructions on how to complete a procedure
To upgrade, run:
To upgrade all Zend related packages run the following command according to the package you have installed:
# yum update \*zend\*
To update any and all files in your system that are managed by 'yum' (not just Zend products) run:
# yum update
To update a specific component (in this example it is php-mycrypt) run the following command according to the package you have installed:
To upgrade Zend Server Community Edition with PHP 5.2 run:
# yum update php-mcrypt-zend-server-ce-php-5.2
To upgrade Zend Server Community Edition with PHP 5.3 run:
# yum update php-mcrypt-zend-server-ce-php-5.3
The upgrade process locates any components of the product version that are newer and downloads them.

Uninstalling Zend Server Community Edition

The following procedure describes how to uninstall Zend Server Community Edition:


Instructions on how to complete a procedure
To uninstall run:
zendctl.sh stop
And then run the following command according to the package you have installed:
To uninstall Zend Server Community Edition with PHP 5.2 run:
# yum -y remove zend-server-ce-php-5.2 && yum -y remove `rpm -qa|grep zend|xargs`
To uninstall Zend Server Community Edition with PHP 5.3 run:
# yum -y remove zend-server-ce-php-5.3 && yum -y remove `rpm -qa|grep zend|xargs`
This will stop the Zend Server Community Edition daemons and remove the program, including any additional packages that were installed.
When uninstalling, the configuration files are not removed. They remain in the same location with an additional suffix: .rpmsave so that they can be reused in a newer installation. For example: a file called example.ini is renamed to example.ini.rpmsave, after you run the uninstall.

Related Links
Related Links:
Choosing Which Distribution to Install Package Setup and Control Scripts
Using PECL
http://java.sun.com - External Link
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge - External Link

  Disabled selinux!!