How to install Nagios on cpanel/linux server

ARUN Posted in INSTALLATION
0

Before you proceed make sure the below modules are installed on your server :

php-mysql php-gd php-ldap php-xml gd gd-devel gcc glibc glibc-common libstdc++-devel gcc-c++perl-DBI perl-DBD-MySQL perl-Config-IniFiles rrdtool perl-rrdtool

Note : For cpanel server all the modules might have installed. You can also enable them using   easyapache or yum

Installation steps :

Login to WHM and create a new account as subdomain “nagios.domain.com”  with username as “nagios”  (Whm >> Create an account).

How to install image magick in cpanel server

ARUN Posted in INSTALLATION
0

/scripts/checkimagemagick

/scripts/installimagemagick

/usr/bin/convert –version

/scripts/cleanimagemagick

Install ffmpeg mplayer mencoder MP4Box flvtool2 in cpanel server

ARUN Posted in INSTALLATION
0

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/x86_64/rpmfusion-free-release-5-0.1.noarch.rpm

rpm -Uvh http://download1.rpmfusion.org/nonfree/el/updates/testing/5/x86_64/rpmfusion-nonfree-release-5-0.1.noarch.rpm

yum install ffmpeg mplayer mencoder

** * FLVTOOL * **

/scripts/installruby

gem install flvtool2

** * MP4Box * **

yum install gpac gpac-libs

** * FFMPEG-PHP * **

yum install ffmpeg-devel

wget http://downloads.sourceforge.net/ffmpeg-php/ffmpeg-php-0.6.0.tbz2

tar xjf ffmpeg-php-0.6.0.tbz2
cd ffmpeg-php-0.6.0
phpize
./configure
make

make install

NOTE : Most often when you try to run  ./configure you will end up with error

” configure: error: ffmpeg headers not found. Make sure ffmpeg is compiled as shared libraries using the –enable-shared option”

If so use the below commands :

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

mkdir /usr/local/include/ffmpeg/

cp -par /usr/include/ffmpeg/* /usr/local/include/ffmpeg/

find /usr/include/ffmpeg/ -name “*.h” -exec cp {} /usr/local/include/ffmpeg/ \;

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

If it still doesnt work use

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

cp -p /usr/local/src/ffmpeg/libavformat/avio.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavformat/avformat.h /usr/local/include/ffmpeg
cp -p /usr/local/src/ffmpeg/libavcodec/avcodec.h /usr/local/include/ffmpeg

cp -p /usr/local/include/libswscale/swscale.h /usr/local/include/ffmpeg

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

If any other files are missing run updatedb and then locate the file and paste that to the above location.

After that continue with installation :

root@server [~/ffmpeg-php-0.6.0]# make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

Now edit php.ini file (/usr/local/lib/php.ini) and make sure that value of extension_dir is set to PHP extension directory as given by above ‘make install’ command:

extension_dir = “/usr/local/lib/php/extensions/no-debug-non-zts-20060613?

Add following line just below extension_dir and this will enable ffmpeg PHP extension:

extension=”ffmpeg.so”

Restart Apache to make this change effective:

/scripts/restartsrv_httpd

How to install csf

ARUN Posted in INSTALLATION
0

cd /usr/local/src/

wget http://configserver.com/free/csf.tgz

tar -xvf csf.tgz

cd csf

sh install.sh

sh remove_apf_bfd.sh

How to install and configure SVN on cpanel server

ARUN Posted in INSTALLATION, SVN
0

cd /opt

wget http://subversion.tigris.org/downloads/subversion-1.6.5.tar.gz

wget http://subversion.tigris.org/downloads/subversion-deps-1.6.5.tar.gz

tar -xzf subversion-1.6.5.tar.gz
tar -xzf subversion-deps-1.6.5.tar.gz
cd subversion-1.6.5

[  ./configure --prefix=/opt/svn --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apache/bin/apr-1-config --with-apr-util=/home/cpeasyapache/src/httpd-2.2.13/srclib/apr-util --with-ssl   ]

make

make install

 

svnadmin create testrepo

 

Now create the SVN auth file using the below command :

htpasswd -cm .svn.htpasswd <svnuser>    —–> Create password

NOTE :   htpasswd -m .svn.htpasswd <svnuser>    ——> Modify password

 

vi /usr/local/apache/conf/httpd.conf

Include the below line under the conf file for that particular domain.

Include "/usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/*.conf"

Now edit
vi /usr/local/apache/conf/userdata/std/2/USERNAME/DOMAIN.COM/svn.conf  and add the below lines
=============================================================
<Location /reponame>

DAV svn

SVNListParentPath on

SVNPath /home/USERNAME/REPO_NAME

AuthType Basic

AuthName “Subversion"

AuthUserFile "/home/USERNAME/svn-auth-file"

Require valid-user

</Location>
===================================================================
Restart httpd
NOTE:
1) MAKE SURE THE REPO IS CREATED OUTSIDE PUBLIC_HTML FOLDER
2) CHECK MOD_SEC RULES ARE CREATING ANY PROBLEM
tail -f /usr/local/apache/logs/error_log

How to install APC

ARUN Posted in INSTALLATION
0

wget http://pecl.php.net/get/APC

tar -zxf APC
cd APC-3.0.16
phpize
whereis php-config
OUTPUT WILL BE LIKE :
php-config: /usr/bin/php-config /usr/share/man/man1/php-config.1.gz
./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config
make
make install
php -i | grep php.ini
cp -ar /usr/local/lib/php.ini /usr/local/lib/php.ini.bak
vi /usr/local/lib/php.ini
Any where after "extension_dir" insert
extension=apc.so
NOTE :
While I tried to install there was an error about pcre, so I installed pcre an pcre-devel
yum install pcre
yum install pcre-devel
After the installation check if apc.so is present under the php extension_dir
To get the extension_dir path use
php -i | grep extension_dir

If its not present copy apc.so to the extension_dir
ERROR

make apc.lo error 1 error make' failed
Solution :  yum install pcre-devel
vi /etc/php.d/apc.ini
extension=apc.so
apc.enabled=1
apc.shm_segments=1
apc.optimization=0
apc.shm_size=1024
apc.ttl=0
apc.user_ttl=7200
apc.num_files_hint=0
apc.mmap_file_mask=/tmp/apc.XXXXXX
apc.enable_cli=1
apc.cache_by_default=1
apc.include_once_override=1

How to install phpSHIELD

ARUN Posted in INSTALLATION
0

mkdir ~/phpshield

cd ~/phpshield

wget http://phpshield.com/loaders/phpshield.loaders.linux.zip --> 32bit

wget http://phpshield.com/loaders/phpshield.loaders.linux-64.zip -->64bit

unzip phpshield.loaders.linux.zip

php -i | grep extension_dir

cp ~/phpshield/phpshield.x.x.lin   /path/to/your/php/extensions/

vi /path/to/php/ini/php.ini

extension=phpshield/phpshield.x.x.lin  OR give full path in ” ”

/etc/rc.d/init.d/httpd restart

How to install phpmyadmin on cpanel server

ARUN Posted in INSTALLATION
0

First back up the working phpmyadmin as

cp -ar /usr/local/cpanel/base/3rdparty/phpMyAdmin /usr/local/cpanel/base/3rdparty/phpMyAdmin.bak7

Download and install new phpmyadmin

cd /usr/src/

wget http://internode.dl.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.0.0-all-languages.tar.gz

tar -xzf phpMyAdmin-3.0.0-all-languages.tar.gz
mv /usr/src/phpMyAdmin-3.0.0-all-languages /usr/local/cpanel/base/3rdparty/phpmyadmin

cd /usr/local/cpanel/base/3rdparty/phpmyadmin/

Now just copy the  file named  “config.inc.php” from the backedup folder /usr/local/cpanel/base/3rdparty/phpMyAdmin.bak7 to the installed folder   /usr/local/cpanel/base/3rdparty/phpmyadmin

Thats it and phpmyadmin is installed on a cpanel server.

How to install iftop

ARUN Posted in INSTALLATION, LOAD
0

Centos 5

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

yum install iftop

How to install sar using yum

ARUN Posted in INSTALLATION, LOAD
0

yum install sysstat

How to install RVskin on WHM server

ARUN Posted in INSTALLATION
0

mkdir /root/rvadmin
cd /root/rvadmin
wget http://member.rvskin.com/auto_rvskin.tgz
tar -xvzf auto_rvskin.tgz; perl auto_rvskin.pl

Phpextensionmgr can be used to install the following (/scripts/phpextensionmgr )

ARUN Posted in INSTALLATION
0

EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin

How to install ion cube loader

ARUN Posted in INSTALLATION
0

How to install ioncubeloader on WHM server

/scripts/phpextensionmgr install IonCubeLoader

Or use /scripts/easyapache

How to install ioncube loader in WHM server

ARUN Posted in INSTALLATION
0
root@a24uall [~]# /scripts/phpextensionmgr list
Available Extensions:
EAccelerator
IonCubeLoader
Zendopt
SourceGuardian
PHPSuHosin
root@a24uall [~]# /scripts/phpextensionmgr install IonCubeLoader

root@a24uall [~]# /scripts/phpextensionmgr list

Available Extensions:

EAccelerator

IonCubeLoader

ZendoptSourceGuardian

PHPSuHosin

root@a24uall [~]# /scripts/phpextensionmgr install IonCubeLoader

root@a24uall [~]# php -v | grep ion

with the ionCube PHP Loader v3.3.20, Copyright (c) 2002-2010, by ionCube Ltd.

root@a24uall [~]#

How to install yum on Cent OS 5.5 for x86_64

ARUN Posted in INSTALLATION
0
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/gmp-4.1.4-10.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/readline-5.1-3.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-2.4.3-27.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-python-2.6.26-2.1.2.8.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_4.2.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/sqlite-3.3.6-5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-libelf-0.137-3.el5.x86_64.rpm
rpm –nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/elfutils-0.137-3.el5.x86_64.rpm
rpm –nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh –nodeps http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-6.el5.6.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-5.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm –nodeps -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-14.el5.centos.1.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-26.el5.centos.noarch.rpm
yum update