Showing posts with label Installaton. Show all posts
Showing posts with label Installaton. Show all posts

How to install subversion client on a Linux server?

1 comments
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@server [~]# 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@server [~]# 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

How to Install mod_evasive

25 comments


Mod_Evasive will help to stop basic attacks on a server (HTTP, DDoS attack and brute force attack). Detection is performed by creating an internal dynamic hash table of IP Addresses and URIs, and denying any single IP address from any of the following:

- Requesting the same page more than a few times per second
- Making more than 50 concurrent requests on the same child per second
- Making any requests while temporarily blacklisted (on a blocking list)

______________________________________________________________



Login to your server, on command line:

# /usr/local/srcwget http://www.nuclearelephant.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz

# tar -zxvf mod_evasive_1.10.1.tar.gz
# cd mod_evasive

If you are using apache 1.3.x :
# /usr/local/apache/bin/apxs -cia mod_evasive.c

And add this to httpd.conf:
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600


If you are using apache 2.0.x :
# /usr/sbin/apxs -cia mod_evasive20.c

Add this to httpd.conf:
DOSHashTableSize 3097
DOSPageCount 6
DOSSiteCount 100
DOSPageInterval 2
DOSSiteInterval 2
DOSBlockingPeriod 600


Restart apache and the installation should be complete.
/etc/init.d/httpd restart

How to Install postgresql on cPanel server

0 comments
Panel requires Postgresql 7.3.x or later. 7.2.x will not work.Step 1

Upgrade to cPanel 7.4.0 build 45 or later

Step 1a (If you do not have 7.2.x or earlier installed skip this step)

Login to a root shell via ssh or the console.

If you have Postgres 7.2.x installed, backup your databases using pg_dumpall or some other method.

Move the postgres data directory somewhere else. ie

mv /var/lib/pgsql /var/lib/pgsql.old

Step 2

Login to a root shell via ssh or the console and run

/scripts/installpostgres

>Step 2a (skip this step if you are not upgrading from postgres 7.2 or earlier

>Restore your sql dump created with pg_dumpall or by some other method using psql or some other method

Step 3

Login to Web Host Manager and choose “Postgres Config” under Server Setup.

Set a postgres password to anything of your choosing. You should avoid using any non-alpha numeric charaters as these cause problems.



Step 4

>Use the “Postgres Config” option in WHM to install a postgres pg_hba.conf file. You can skip this step if you would like to setup your pg_hba.conf file manually. cPanel should work fine with md5 passwords or plaintext passwords

Step 5

Login to cPanel and click on Postgres .. Enjoy!

Install BFD (Brute Force Detection)

0 comments
This How-To will show you how to install BFD on your Linux Server to prevent and monitor brute force hack attempts.

This software like some others has requirements. You must be running APF / Advanced Policy Firewall for Brute Force Detection to work.

1. Login to your server via SSH as Root.(Download/untar/install)

2. Type: wget http://www.rfxnetworks.com/downloads/bfd-current.tar.gz

3. Type: tar -xvzf bfd-current.tar.gz

4. Type: cd bfd*

5. Now let's install BFD onto the server.
Type: ./install.sh

:: You Should See ::

.: BFD installed
---------------------------------------
Install path: /usr/local/bfd
Config path: /usr/local/bfd/conf.bfd
Executable path: /usr/local/sbin/bfd
---------------------------------------

6. Now we need to edit the configuration file, and set some options.
Don't worry the BFD Configuration isn't hard to edit or understand!
---------------------------------------
Type: pico -w /usr/local/bfd/conf.bfd

7. Now we need to find the line to edit:

Press: CTRL-W

Type: ALERT_USR

Change ALERT_USR="0" TO ALERT_USR="1" <

Right below that we need to change the email:

Change EMAIL_USR="root" TO EMAIL_USR=" you@yoursite.com"

8. That wasn't to bad let's save and exit the file

Press: CTRL-X then type Y then hit enter

9. Now we have to prevent locking yourself out of the server.

Type: pico -w /usr/local/bfd/ignore.hosts

10. Add any IP address that you want to be ignored from the rules. If your server provider is doing monitoring add their IP(s) here. Since you need these IPs open in APF as well you can copy the IPs you used in APF.

Type: pico -w /etc/apf/allow_hosts.rules

Then scroll down to the bottom and copy those IPs (drag mouse over that's it)

Press: CTRL-X

Type: pico -w /usr/local/bfd/ignore.hosts

Paste those IPs to the bottom. You should also add your home IP if you hadn't done so before. If your home IP is dynamic this is not a good idea, and you should get a static IP.

Press: CTRL-X then Y to save then enter.

11. Now lets run BDF!!!

Type: /usr/local/sbin/bfd -s

Install PEAR Module on web server

0 comments
Simply login via SSH at the root level and execute the following command:

pear -v install module_name

For example to install the mail_queue PEAR module you would execute:

pear -v install mail_queue

Install sBNC on a linux dedicated server

2 comments
sBNC to be installed on his dedicated server, here is how we helped him setup sBNC on his server.

Downloaded the source, kindly see below:
wget http://mirror.shroudbnc.info/sbnc-current.tar.gz
tar -zxf sbnc-current.tar.gz
cd sbnc-1.1
ls
./configure

Here we got an error of c++ compiler:
configure: error: C++ compiler cannot create executables

To fix this, you need to install c++ compiler on your system. I did it using yum:
yum install gcc-c++

After this is done, again giving the below command to install it:
./configure # without SSL-support
./configure --enable-ssl=yes # with SSL-support
make
make install

Now, if you need web interface, you will have to do this:
cd tickle
./configure
make
make install

Got errors while “make” , TCL was not installed on the server – you can install TCL on your dedicated server by doing this:
wget http://mesh.dl.sourceforge.net/sourceforge/tcl/tcl8.4.13-src.tar.gz
tar xfvz tcl8.4.13-src.tar.gz
cd tcl8.4.13/unix
./configure
make
make install

Then, you can proceed for the configuration by the conftool:
cd sbnc/sbnc
./conftool

Here, you can set the port number, username and password.

Start sbnc by:
./sbnc

Rvsitebuilder installation in Cpanel

3 comments


1. If the server has RVSkin installed, update RVSkin to v6.75 up. (Skip this step if you don't have it).

perl /root/rvadmin/auto_rvskin.pl

2. After getting the license confirmation, SSH to the cPanel server as root, download the installer using the command below:

cd /usr/local/cpanel/whostmgr/docroot/cgi/
rm -f rvsitebuilderinstaller.tar
wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar
tar -xvf rvsitebuilderinstaller.tar
chmod 755 addon_rvsitebuilder.cgi

3. Open WHM as root user, at the bottom left menu under Plugins section, you can find RVSiteBuilder Installer menu.

4. Click RVSiteBuilder Installer to begin the installation process.

5. After complete the installation, you will be sent to RVSiteBuilder Manager automatically.

R=virtual_user_spam T=virtual_userdelivery_spam

0 comments
If you are not able to receive emails and getting the errors " R=virtual_user_spam T=virtual_userdelivery_spam" in error logs

youy just  disable the spamassasin and check.

The issue should be fixed.

How do I install Fantastico to cPanel?

0 comments


The following article explains how to add Fantastico to cPanel, since it is
not installed by default. Fantastico allows you to install various scripts
that are available for cPanel.

Before you begin, you will need to purchase a Fantastico license.

To install Fantastico, please follow these steps:



  1. Open a web browser and connect to your cPanel Control Panel located at https://ip address:2087.

  2. Login as the Administrator using the information sent to you in your setup email.

  3. From the menu, under Plugins, click Fantastico De Luxe WHMAdmin (located at the bottom).     aaaaaaaaaaaaaaaaaaaaaaaaaaa
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

    If this option is not available, see the  additional  steps below        00000

  4. Click Click here to begin
    the install of Fantastico.

  5. Select a version from the dropdown menu. We recommend choosing the
    Stable version.

  6. Follow the remaining installation steps, using the default information.

  7. Once this process completes you may exit the browser.





Fantastico should now be configured for your cPanel control panel and you
may begin adding various features. To log into Fantastico, open a browser and
go to http://ip address:2083. At the bottom of the screen you will
see the Fantastico icon; click on it to start Fantastico.




Additional Steps - Download Fantastico


If the Fantastico install option is not available, you will need to
manually download Fantastico onto your VPS.

  1. Connect to your VPS using an SSH connection.

  2. Log in as the Administrator user.

  3. Change to the proper cgi folder using the following command:cd /usr/local/cpanel/whostmgr/docroot/cgi

  4. Download the Fantastico install file using the following command:wget http://www.netenberg.com/files/free/fantastico_whm_admin.tgz

  5. Extract the install file using the following command:tar -xzpf fantastico_whm_admin.tgz

  6. Remove the install file using the following command:rm -rf fantastico_whm_admin.tgz

  7. Log out of the SSH connection.

  8. Log out and log back into cPanel in a web browser.

  9. From the menu, under Plugins, click Fantastico
    De Luxe WHM Admin
    (located at the bottom).

  10. Recently we got too many issue while installing fantastico. Here is one of them. If you get the message“you have not installed fantastico yet” even after installing it then the issue is probably with wget version. Here is the steps to update wget:Login as a root in ssh and fire the following commands:





wget ftp://ftp.funet.fi/pub/mirrors/ftp.redhat.com/pub/fedora/linux/core/5/i386/os/Fedora/RPMS/

wget-1.10.2-3.2.1.i386.rpm

chattr -ia /usr/bin/wget

rpm -e wget ;

rpm -ivh --force wget-1.10.2-3.2.1.i386.rpm ;

rpm -qa wget ;





For 64-bit:


Leaving your OS default wget installed and install a fresh copy for





Fantastico at /usr/local/bin/wget





cd /usr/local/bin/
wget http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xfz wget-latest.tar.gz
cd wget-*
./configure
make
make test
make install
cd ../
rm -Rf wget-*





This will install a clean copy of wget on your server at /usr/local/bin/wget
and you will just need to change the path of wget to /usr/local/bin/wget

for the errors in cpanel >> fantastico just run /scripts/makecpphp
and the errors should be go
ne

Recently I got too many issue while installing fantastico. Here is one of
them. If you get the message“you have not
installed fantastico yet”
even after installing it then the issue is
probably with wget version. Here is the steps to update wget:

Continue the install using the steps above.

Install PRM [Process Resource Monitor]

0 comments

Informations:


PRM monitors the process table on a given system and matches process id’s with set resource limits in the config file or per-process based rules. Process id’s that match or exceed the set limits are logged and killed; includes e-mail alerts, kernel logging routine and more…



//




How it works?


PRM works on the basis that once a process id is found matching resource limits; there is a corresponding trigger and wait value. The trigger value increments upwards from zero (0) to the defined value, pausing the duration of seconds defined as wait value. There after the status of the flagged pid is checked again, if still above or equal to resource limits the trigger/wait cycle begins again till the max trigger value is reached. When this trigger value is reached the given process is logged/killed.


This all together has the effect that applications with short burst resource spikes (e.g: apache, mysql etc..) are not killed; but rather on applications with prolonged resource consumption. Using the rule system, you can define different wait/trigger/resource values for any application.







Installation:



First we must fetch the package:
wget http://www.rfxnetworks.com/downloads/prm-current.tar.gz

And extract it:
tar xvfz prm-current.tar.gz

The current version of prm as of this writing is 0.3, so lets cd to the 0.3 extracted path:
cd prm-0.3/

And finally run the enclosed install.sh script:
./install.sh

Configuration:




The prm installation is located at ‘/usr/local/prm‘, and the configuration file is labeled ‘conf.prm’.

Open the ‘/usr/local/prm/conf.prm‘ file with your preferred editor. There is an array of options in this file but we will only be focusing on the main variables.

Lets skip down to the user e-mail alert’s section and set the USR_ALERT value to ‘1?; enabling alerts.
# enable user e-mail alerts [0=disabled,1=enabled] USR_ALERT=”1?

And configure our e-mail addresses for alerts:
# e-mail address for alerts USR_ADDR=”root, you@domain.com”

Check the 5,10, or 15 minute load average; relative to the later option below for min. load level.
# check 5,10,15 minute load average. [1,2,3 respective of 5,10,15] LC=”1?

PRM optionally has a required load average for running. If the load is not equal to or greater than this value; PRM will not run. Setting this value to zero will force the script to always run but this should not be needed.
# min load level required to run (decimal values unsupported) MIN_LOAD=”1?

This is the introduction described wait value, used for pauses between trigger increments. The value of wait multiplied by the value of kill_trig equal the duration of time before a process is killed (10×3=30seconds).
# seconds to wait before rechecking a flagged pid (pid’s noted resource # intensive but not yet killed). WAIT=”10?

The trigger limit before processes are killed, described in detail in the above ‘wait’ description and introduction.
# counter limit that a process must reach prior to kill. The counter value # increases for a process flagged resource intensive on rechecks. KILL_TRIG=”3?

The max percentage of CPU a process should be allowed to use before PRM flags it for killing.
# Max CPU usage readout for a process – % of all cpu resources (decimal values unsupported) MAXCPU=”35?

The max percentage of MEM a process should be allowed to use before PRM flags it for killing.
# Max MEM usage readout for a process – % of system total memory (decimal values unsupported) MAXMEM=”15?

That is it; you should tweak the MAXCPU/MAXMEM limits to your desired needs but the defaults should be fine for most.

Usage
The executable program resides in ‘/usr/local/prm/prm‘ and ‘/usr/local/sbin/prm‘. The prm executable can receive one of two arguments:

-s Standard run
-q Quiet run

The log path for prm is ‘/usr/local/prm/prm_log‘, as well pid specific logs are stored in ‘/usr/local/prm/killed/‘.

A default cronjob for PRM is installed to ‘/etc/cron.d/prm‘, and is configured to run once every 5 minutes.

There is a provided ignore file, to ignore processes based on string rules. The ignore file is located at ‘/usr/local/prm/ignore‘. This file supports line separated ignore strings. As a default the strings ‘root, named and postgre’ are ignored by PRM; this script was not intended to monitor root processes but rather user land tasks. It could easily watch root processes by removing the given line in the ignore file but this is strongly discouraged.

How to check mail queue in Plesk via SSH

0 comments
To check the mail queue in plesk from command line, you can use the command "/var/qmail/bin/qmail-qstat".

Quote:

[root@vps root]# /var/qmail/bin/qmail-qstat
messages in queue: 150
messages in queue but not yet preprocessed: 0

Install DirectAdmin

0 comments
Installing DirectAdmin is bit difficult … But I will make it easy for you.  All you need to do is Updated Yum on the server.

The fire  following.

yum install gccyum install gcc-g++yum install gcc-c++yum install make

#yum install gcc

#yum install gcc-g++

#yum install gcc-c++

#yum install make

You can now proceed with installation using following commands.

wget http://www.directadmin.com/setup.sh

chmod 755 setup.sh

./setup.sh

Yahoo !!!!  DirectAdmin has been installed now.

Install Rootkit Hunter (1.3)

35 comments
1. Login as root to your server

2. Download the package and extract it
#  wget http://prdownloads.sourceforge.net/rkhunter/rkhunter-1.3.0.tar.gz

#  tar -xzf rkhunter*

3. Run the installer
#  cd rkhunter-*

#  ./installer.sh –layout default –install

4. Run rkhunter
#  /usr/local/bin/rkhunter -c

Install APF (Advanced Policy Firewall)

0 comments
1. cd /root/downloads or another temporary folder where you store your files

2. wget http://www.rfxnetworks.com/downloads/apf-current.tar.gz

3. tar -xvzf apf-current.tar.gz

4. cd apf-0.9.5-1/ or whatever the latest version is.

5. Run the install file: ./install.sh

You will receive a message saying it has been installed

Installing APF 0.9.5-1: Completed.

Installation Details:
Install path:         /etc/apf/
Config path:          /etc/apf/conf.apf
Executable path:      /usr/local/sbin/apf
AntiDos install path: /etc/apf/ad/
AntiDos config path:  /etc/apf/ad/conf.antidos
DShield Client Parser:  /etc/apf/extras/dshield/


Other Details:

Listening TCP ports:

1,21,22,25,53,80,110,111,143,443,465,993,995,2082,2083,2086,2087,2095,2096,3306

Listening UDP ports: 53,55880

Note:These ports are not auto-configured; they are simply presented for information purposes.

You must manually configure all port options.

** Now you will have to edit /etc/apf/conf.apf and change

** DEVEL_MODE from 1 to o and also add TCP and UDP posts as provided the installation complete message.