Archive for the ‘Installation’ Category

How to install xpdf,libXp and antiword on Linux

Friday, February 12th, 2010

How to install xpdf , libXp and antiword on Linux (Centos or Redhat 32 Bit ) server

cd /usr/local/src/

Dowload following RPM’s files under the /usr/local/src/ directrory.

wget http://mit.edu/zacheiss/dev/rhlinux/redhat-7.1-updates/SRPMS/xpdf-0.92-4.71.0.src.rpm

wget ftp://ftp.univie.ac.at/systems/linux/fedora/core/6/i386/os/Fedora/RPMS/libXp-1.0.0-8.i386.rpm

wget http://dag.wieers.com/rpm/packages/antiword/antiword-0.37-3.el5.rf.i386.rpm

or

http://dag.wieers.com/rpm/packages/antiword/?N=A

Then

rpm -ivh xpdf-0.92-4.71.0.src.rpm

rpm -ivh libXp-1.0.0-8.i386.rpm

rpm -ivh antiword-0.37-3.el5.rf.i386.rpm

Then you can check it

root@server [/usr/local/src]# which xpdf
/usr/local/bin/xpdf
root@server [/usr/local/src]# which antiword
/usr/bin/antiword

Done

 

How to install JavaFX on Linux server

Monday, February 8th, 2010
Installing the JavaFX SDK on Ubuntu Linux or OpenSolaris
  1. Access the URL http://java.sun.com/javafx/downloads/  and Download  JavaFX 1.2.3 SDK for Linux platformon your local machine 
  2. And Upload by using ftp or file manager under the  /usr/local directory
  3. cd  /usr/local
  4. chmod a+x javafx_sdk-1_2-linux-i586.sh
  5. sh javafx_sdk-1_2-linux-i586.sh
  6. Then it ask the yes or no then enter the "yes" means accept the license terms.
        
    The shell script installs the JavaFX SDK in the current directory. 
  7. Then create link 
  8. root@server[]# ln -s /usr/local/javafx-sdk1.2/ javafx
  9. root@server[] export JAVAFX_HOME=/usr/local/javafx
  10. root@server[]# export PATH=$PATH:/usr/local/javafx/bin
  11. Then you can check it javafx  installed or not by using the command
  12. root@server[]# which javafx

    /usr/local/javafx/bin/javafx

  13. root@server[]#   javafx -version

    javafx 1.2.3_b36

  14. For information about samples and documentation in the SDK, see the README file in the top level of the SDK directory.
  15. Done

How to install Mail::SPF on cpanel server

Friday, January 15th, 2010

How  to install Mail::SPF on cpanel server ?

Please use the following one line command to perform the install:

perl -MCPAN -e "get('Mail::SPF')" && cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf && tar -xzvf Mail-SPF-v2.007.tar.gz && cd Mail-SPF-v2.007 && perl Build.PL && ./Build && ./Build test && ./Build install && /scripts/checkperlmodules --full

Done

===========================================

As an alternative, to help clarify the steps used by the above command, here is each step on its own line:

Code:
# perl -MCPAN -e "get('Mail::SPF')"
# cd /home/.cpan/sources/authors/id/J/JM/JMEHNLE/mail-spf
# tar -xzvf Mail-SPF-v2.007.tar.gz
# cd Mail-SPF-v2.007
# perl Build.PL
# ./Build
# ./Build test
# ./Build install
# /scripts/checkperlmodules --full
===========================================
You can check the perl module installed on the server by using the single command.
# instmodsh

Thumbnail not created for EXIF jpeg file

Friday, December 4th, 2009

Error: Thumbnail not created for EXIF jpeg file by using Imagemagick

Solution : The problem due the Imagemagick version. You need to upgrade your Imagemagick version. You can easily upgrade your Imagemagick version by using yum command.

root# yum install glib2
root# yum install libpng
root# yum install libjpeg
root# yum install libtiff
root# yum install ghostscript
root# yum install freetype
root# yum install ImageMagick
root# yum install ImageMagick-perl

Done


How to install svn on Linux server

Saturday, November 28th, 2009

Svn(subversion) is used to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).

It is very easy to install subversion client on linux OS using yum. You can us following command to install subversion client.

root@rushi [~]# yum install subversion

while installing subversion if you are getting following error  then it seem sot be perl-URI package is not installed on your server so you will have to install first before installing subversion client.

Please follow the following steps to install perl-URI package

You’ll login via SSH as root and run this command:

root@rushi[~]# yum install subversion

and then you may get this error:

Error: Missing Dependency: perl(URI) >= 1.17 is needed by package subversion

Here’s what you do next (copy/paste):

root@server [~]# wget  ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/ fedora/linux/releases/7/Everything/i386/os/Fedora/
perl-URI-1.35-3.noarch.rpm

root@server [~]# rpm -i perl-URI-1.35-3.noarch.rpm

root@server [~]# yum install subversion

Installed: subversion.x86_64 0:1.4.2-4.el5 subversion.i386 0:1.4.2-4.el5

Dependency Installed: neon.x86_64 0:0.25.5-10.el5 neon.i386 0:0.25.5-10.el5

Complete!

That’s it subversion client is successfully installed on your server you can check it using following command.

root@server [~]#svn –version

svn, version 1.1.4 (r13838)
compiled Aug 21 2005, 20:56:55

Copyright (C) 2000-2004 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles ‘http’ schema
- handles ‘https’ schema
* ra_local : Module for accessing a repository on local disk.
- handles ‘file’ schema
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles ’svn’ schema

Server monitoring tools Nagios

Saturday, November 28th, 2009

What is Nagios ?

Nagios is a system and network monitoring application. It watches hosts and services that you specify,alerting you when things go bad and when they get better.

It is a fairly complex tool for monitoring the status of IT infrastructure – everything ranging from web servers to routers. Installation is a complex and lengthy procedure, and that’s before you even start on the plugins required to actually make it useful!
Nagios is a host and service monitor designed to inform you of network problems before your clients, end-users or managers do. It has been designed to run under the Linux operating system, but works fine under most *NIX variants as well.

The monitoring daemon runs intermittent checks on hosts and services you specify using external “plugins” which return status information to Nagios. When problems are encountered, the daemon can send notifications out to administrative contacts in a variety of different ways (email, instant message, SMS, etc.). Current status information, historical logs, and reports can all be accessed via a web browser.

Features of Nagios:-

Nagios has a lot of features, making it a very powerful monitoring tool. Some of the major features are listed below:

* Monitoring of host resources (processor load, disk and memory usage, running processes, log files, etc.)
* Monitoring of environmental factors such as temperature
* Simple plugin design that allows users to easily develop their own host and service checks
* Monitoring of network services (SMTP, POP3, HTTP, NNTP, PING, etc.)
* Ability to define network host hierarchy, allowing detection of and distinction between hosts that are down and those that are unreachable
* Contact notifications when service or host problems occur and get resolved (via email, pager, or other user-defined method)
* Ability to define event handlers to be run during service or host events for proactive problem resolution
* External command interface that allows on-the-fly modifications to be made to the monitoring and notification behavior through the use of event handlers, the web interface, and third-party applications
* Retention of host and service status across program restarts
* Scheduled downtime for suppressing host and service notifications during periods of planned outages
* Ability to acknowledge problems via the web interface
* Web interface for viewing current network status, notification and problem history, log file, etc.
* Simple authorization scheme that allows you restrict what users can see and do from the web interface

System Requirements :-

The only requirement of running Nagios is a machine running Linux (or UNIX variant) and a C compiler. You
will probably also want to have TCP/IP configured, as most service checks will be performed over the
network.

Version of Nagios :

Nagios 3.x The most recent stable release branch of the Nagios code.
Nagios 2.x Legacy stable release branch of the Nagios code.
Nagios 1.x Very old release branch of the Nagios code.

Installation process :-

Please refer the following URL for the installation of Nagios on your server.

http://nagios.sourceforge.net/docs/2_0/installing.html

Thanks

Install IonCube loader on VPS and dedicated server

Friday, November 20th, 2009

IonCube loader Install it on VPS and dedicated server.

/sripts/phpextensionmgr list
it will show you output as

EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

then

/sripts/phpextensionmgr install Ioncubeloader

How to install PDFlib on linux server

Thursday, November 12th, 2009

You can easily install PDFlib on linux server.

==========================

cd /usr/local/src/

wget  ftp://ftp.free.fr/.mirrors1/ftp.netbsd.org/packages/distfiles/PDFlib-Lite-7.0.3.tar.gz

or

check this URL  http://www.filewatcher.com/m/PDFlib-Lite-7.0.3.tar.gz.5898798.0.0.html

tar -zxf PDFlib-Lite-7.0.3.tar.gz

cd PDFlib-Lite-7.0.3

./configure

make

make install

mount -o remount rw /tmp

pecl install pdflib

mount -o remount noexec,nosuid,rw  /tmp

php -m | grep pdf

==========================

Done

ffmpeg installation

Monday, October 5th, 2009

I have use all the following steps and  I am able to install ffmpeg without any error.

Please follow the steps for installation of ffmpeg on the cpanel server.

================================
cd /usr/local/src
Download files :

wget http://easynews.dl.sourceforge.net/sourceforge/lame/lame-3.97.tar.gz
wget http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
wget http://www4.mplayerhq.hu/MPlayer/releases/codecs/essential-20061022.tar.bz2

Extract :

tar zxvf lame-3.97.tar.gz
tar zxvf libogg-1.1.3.tar.gz
tar zxvf libvorbis-1.1.2.tar.gz
tar jxvf essential-20061022.tar.bz2

chown root.root * -R

yum install subversion ruby ncurses-devel
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

If you are using secure tmp:

mkdir /usr/local/src/tmp
chmod 777 /usr/local/src/tmp
export TMPDIR=/usr/local/src/tmp

Installing Lame:

cd /usr/local/src/lame-3.97
./configure
make && make install

Installing Libogg:

cd /usr/local/src/libogg-1.1.3
./configure && make && make install

Installing libvorbis:

cd /usr/local/src/libvorbis-1.1.2
./configure && make && make install

Installing flvtool2:

gem install flvtool2

Installing ffmpeg:

cd /usr/local/src/ffmpeg/
./configure –enable-libmp3lame  –enable-libvorbis –disable-mmx –enable-shared
make && make install

ln -s /usr/local/lib/libavformat.so.50 /usr/lib/libavformat.so.50
ln -s /usr/local/lib/libavcodec.so.51 /usr/lib/libavcodec.so.51
ln -s /usr/local/lib/libavutil.so.49 /usr/lib/libavutil.so.49
ln -s /usr/local/lib/libmp3lame.so.0 /usr/lib/libmp3lame.so.0
ln -s /usr/local/lib/libavformat.so.51 /usr/lib/libavformat.so.51

Installing ffmpeg-php:

svn co https://svn.sourceforge.net/svnroot/ffmpeg-php/trunk/ffmpeg-php
cd ffmpeg-php
phpize
./configure
make
make install
cp /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ffmpeg.so /usr/local/lib/php/extensions/

Install mplayer & mencoder:

mv /usr/local/src/essential-20061022/* /usr/local/lib/codecs/
chmod -R 755 /usr/local/lib/codecs/

yum install mplayer mencoder

Restart apache:

service httpd restart

===============================

PHP Installation

Monday, October 5th, 2009

==========================================
php INSTALLATION ( http://dan.drydog.com/apache2php.html )
==========================================
[root@]# wget http://in.php.net/get/php-5.2.6.tar.gz/from/in2.php.net/mirror
[root@]#tar xvfz php-5.2.6.tar.gz

[root@]# ./configure –with-apxs2=/usr/local/apache/bin/apxs –with-mysql=/usr/include/mysql –prefix=/usr/local/apache/php –with-config-file-path=/usr/local/apache/php –enable-force-cgi-redirect –disable-cgi –with-zlib –with-gettext –with-gdbm

[root@]# make
[root@]# make install
[root@]# cp -p .libs/libphp5.so /usr/local/apache/modules
[root@]# cp -p php.ini-recommended /usr/local/apache/php/php.ini
[root@]# /etc/init.d/httpd restart

============================================