Feeds:
Posts
Comments

Archive for the ‘INSTALLATION’ Category

Installing memcached

One of the dependencies of memcache is libevent, so firstly download the source files for Libevent.


wget http://www.monkey.org/~provos/libevent-1.3b.tar.gz
tar -xvf libevent-1.3b.tar.gz
cd libevent-1.3b
./configure;make;make install;

Download the latest Memcached source code from danga.com

wget http://danga.com/memcached/dist/memcached-1.2.1.tar.gz
gunzip memcached-1.2.1.tar.gz
tar -xvf memcached-1.2.1.tar
cd memcached-1.2.1
./configure;make;make install;

Often libevent.so cannot be found when executing memcache. A useful command LD_DEBUG, is very helpful to determine where libraries are being loaded from.

LD_DEBUG=help memcached -v

LD_DEBUG=libs memcached -v 2>&1 > /dev/null | less
18990: find library=libevent-1.3b.so.1 [0]; searching

18990: trying file=/usr/lib/libevent-1.3b.so.1
18990:
memcached: error while loading shared libraries: libevent-1.3b.so.1: cannot open shared object file: No such file or directory

Simply place the library where memcached will find it and execute memcached.


ln -s /usr/local/lib/libevent-1.3b.so.1 /lib/libevent-1.3b.so.1
memcached -d -u nobody -m 512 127.0.0.1 -p 11211

To install the pecl package for PHP

wget http://pecl.php.net/get/memcache-2.1.2.tgz
gzip -df memcache-2.1.2.tgz
tar -xvf memcache-2.1.2.tar
cd memcache-2.1.2
phpize
./configure;make;make install;

Add memcache.so to the php.ini file

extension=memcache.so

Then run

php -i | grep -i ‘memcache’

memcache should be listed and then restart the web server.

Thats all 🙂

Read Full Post »

SSH as root to server that was registered while purchasing the license and run:

mkdir /root/rvadmin; cd /root/rvadmin; wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto.tar.bz2; bunzip2 -d rvauto.tar.bz2; tar -xvf rvauto.tar; perl /root/rvadmin/auto_rvskin.pl

Answer a couple of questions on your shell, and wait until it finishes. First installation will take 2- 5 minutes to install. Installer will create a new hosting account ‘rvadmin’. Don’t terminate it. It will be used for internal RVSkin configuration management.
Log in to RVSkin Manager. Both root and reseller are able to access RVSkin Manager in WHM / Plugins (at the bottom left menu). If you cannot find the RVSkin Manager menu, please close WHM and open it again.

If there is no messages display on the skin, please run this command on your SSH.

rm -f /usr/local/cpanel/Cpanel/rvversion
perl /root/rvadmin/auto_rvskin.pl

Read Full Post »

mod_evasive is an evasive maneuvers module for Apache to provide evasive action in the event of an HTTP DoS or DDoS attack or brute force attack. It is also designed to be a detection and network management tool, and can be easily configured to talk to ipchains, firewalls, routers, and etcetera. mod_evasive presently reports abuses via email and syslog facilities.

root@server [~/downloads] # wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz

Of course, we now need to extract them:

root@server [~/downloads] # tar zxvf mod_evasive_1.10.1.tar.gz

Now, change into the directory that was just created:

root@server [~/downloads] #cd mod_evasive

Now, you can view the README file for information on how to install this on a couple of different types of servers, however, we are going to focus on installing mod_evasive on an Apache2x server. We also have cPanel running on this box, so, to install, we run the following:

root@server [~/downloads] #/usr/local/apache/bin/apxs -i -a -c mod_evasive20.c

Now, that will create an entry in the httpd.conf file, and, if we want to retain that after an upgrade/rebuild, we need to tell cPanel not to take it out! Do do this, we now run this:

root@server [~/downloads] # /usr/local/cpanel/bin/apache_conf_distiller –update

Now, to change the settings for mod_evasive, we need to add them in some place. All we have done so far, is install the actually module into apache, and, even with a restart, it would not be using it. So, I like to add things into my includes files through either WHM, or, directly through the terminal. To do this, we run the following:

root@server [~/downloads] # vim /usr/local/apache/conf/includes/post_virtualhost_2.conf

Once the file is open, lets add in the following lines to the bottom of the file:

DOSHashTableSize 3097
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 3600
DOSEmailNotify root

Once done, save the file, this varies depending on your editor of choice, in VI and VIM, its :wq enter.

Read Full Post »

I was reading through my post on how to virus scan ftp uploads, and I realized, I never mentioned how to setup ClamAV, the antivirus software. So, here we go:1. Log into you WHM control panel as root
2. Go to Cpanel >> Manage Plugins
3. Click on clamavconnector to install and then click Save at the bottom of the page. cPanel will now install the software to the server. It may take a few minutes.
4. Once it is installed, the ClamAV option can be found under Plugins >> Configure ClamAV Scanner, in here you can customize and give the users option with what to scan, you can specify whether to scan emails only or web space, it is entirely up to you. The options are pretty self explanatory.
5. When ClamAV installs, it adds a cron job to ensure that the virus definitions are up to date. If you have LogWatch set up and emailing you every night, you will see the section for ClamAV. If you need to update the virus definitions manually, you can do so through the command line, by running:

[root@server ~]# freshclam
ClamAV update process started at Sat Oct 3 23:14:47 2009
main.cvd is up to date (version: 51, sigs: 545035, f-level: 42, builder: sven)
daily.cvd is up to date (version: 9866, sigs: 81225, f-level: 43, builder: sven)

Read Full Post »

You can easily install ffmpeg on CentOS 5.3. you can enable dag repo for CentOS.

Edit /etc/yum.repos.d/CentOS-Base.repo and add those lines at bottom of the

[dag]
name=Dag RPM Repository for Centos
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
enabled=1

Then install all ffmpeg binaries using yum.

yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 libogg libvorbis
lame

Then install ffmpeg-php latest version,

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

Try this. 😛

Read Full Post »

Installing ffmpegh:

cd /root

wget
http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.e
l5.rf.i386.rpm

rpm -vi rpmforge-release-0.3.6-1.el5.rf.i386.rpm

rm -f /root/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum -y install ffmpeg ffmpeg-devel mplayer mencoder flvtool2 libogg
libvorbis lame

yum clean all

Installing ffmpeg-php

wget
http://internap.dl.sourceforge.net/sourceforge/ffmpeg-php/ffmpeg-php-0.5.3.t
bz2

tar jxf ffmpeg-php-0.5.3.tbz2

cd ffmpeg-php-0.5.3

/usr/local/bin/phpize

./configure

make

make install

echo “extension=ffmpeg.so” >> /usr/local/lib/php.ini

cd /root

rm -rf ffmpeg-php-0.5.3 ffmpeg-php-0.5.3.tbz2

service httpd restart

After Installation

– /usr/local/bin/phpize is suitable for cPanel and DA systems, use
/usr/bin/phpize for Plesk and nocp/webmin VPSs;

– Check to make sure that ffmpeg php extension was detected / loaded by PHP
correctly:

php -i | grep -i ffmpeg

you should see something like this:

ffmpeg

ffmpeg support (ffmpeg-php) => enabled

ffmpeg-php version => 0.5.3

ffmpeg-php gd support => enabled

ffmpeg.allow_persistent => 0 => 0

ffmpeg.show_warnings => 0 => 0

If this is not the case check value of the extension_dir option in php.ini –
it should point to the location where ffmpeg.so extension was installed
into.

Thanks:)

Read Full Post »

Redmine installation.

Follow the steps in the link below:

http://www.redmine.org/wiki/redmine/RedmineInstall

Read Full Post »

What is Ghostscript:
========================

hostscript is a set of software that provides a PostScript(TM) interpreter, a set of C procedures (the Ghostscript library, which implements thegraphics capabilities in the PostScript language) and an interpreter for Portable Document Format (PDF) files. Ghostscript translates PostScript code into many common, bitmapped formats, like those understood by your printer or screen. Ghostscript is normally used to display PostScript files and to print PostScript files to non-PostScript printers. Most applications use PostScript for printer output.

Installation :
====================

Download source at http://www.ghostscript.com/awki/Releases

./configure
make
make install

Done:)

cd /usr/local/src/
wget http://mirror.cs.wisc.edu/pub/mirrors/ghost/GPL/gs863/ghostscript-8.63.tar.gz
tar zxf ghostscript-8.63.tar.gz
cd ghostscript-8.63
./configure
make
make install

🙂

Read Full Post »

Install CURL

Instructions to install CURL:
==================

1. cd /usr/local/src
2. wget http://curl.haxx.se/download/curl-7.19.0.tar.gz
3. tar zxf curl-7.19.0.tar.gz
4. cd curl-7.19.0
5. ./configure –prefix=/usr/local –with-ssl=/usr/include/openssl
6. make
7. make install

CURL should now be installed.

Read Full Post »

Java Installation:
======================

I chose to install Sun’s Java 2 Platform, Standard Edition, which can be downloaded from http://java.sun.com/j2se/). I chose the J2SE v1.4.2 SDK Linux self-extracting binary file.

Change to the directory where you downloaded the SDK and make the self-extracting binary executable:

chmod +x j2sdk-1_4_2-linux-i586.bin

Run the self-extracting binary:

./j2sdk-1_4_2-linux-i586.bin

here should now be a directory called j2sdk1.4.2 in the download directory. Move the SDK directory to where you want it to be installed. I chose to install it in /usr/java. Create /usr/java if it doesn’t exist. Here is the command I used from inside the download directory:

mv j2sdk1.4.2 /usr/java

Set the JAVA_HOME environment variable, by modifying /etc/profile so it includes the following:


JAVA_HOME=”/usr/java/j2sdk1.4.2″
export JAVA_HOME

/etc/profile is run at startup and when a user logs into the system, so you will need to log out and log back in for JAVA_HOME to be defined.

You should have to logout from the server to check whether its workgin fine.


exit
su –

Check to make sure JAVA_HOME is defined correctly using the command below. You should see the path to your Java SDK.

Check to make sure JAVA_HOME is defined correctly using the command below. You should see the path to your Java SDK.

TOMCAT Installation:
=========================

Download it from

http://tomcat.apache.org/

You will install and configure Tomcat as root; however, you should create a dedicated group and user account for Tomcat to run under as follows:

groupadd tomcat

useradd -g tomcat tomcat

tar xvzf apche-tomcat-5.0.28.tar.gz

mv jakarta-tomcat-5.0.28 /usr/local/

chown -R tomcat.tomcat /usr/local/apache-tomcat-5.0.28

cd /usr/local/apache-tomcat-5.0.28/bin

tar -xvzf jsvc.tar.gz

cd jsvc-src

chmod +x configure

./configure

make

cp jsvc ..

cd ..

./startup.sh

open web browser and type http://localhost:8080/ you should see the Tomcat Administration page

go to webapps/ROOT in the tomcat directory and create page hello.html and write in it

Hello Tomcat

open the URL http://localhost:8080/hello.html you should see your page

* Make JSP page

go to webapps/ROOT in the tomcat directory and create page hello.jsp and write in it the following lines

save and run the following URL http://localhost:8080/hello.jsp you should see the texy “Hello World”

* Monitor Tomcat

you can see the log file in the logs directory

* Stop Tomcat

go to the tomcat bin directory

#./shutdown.sh

You can add users in

cd /usr/local/tomcat/conf
vi tomcat-users.xml

And access it at

http://localhost:8080/manager/html

Username : from tomcat-users.xml
Password : l…

🙂

Read Full Post »

Older Posts »