Tag: centos

Install Nginx On Amazon EC2

1 Comment

May 6, 2011 at 7:34 pmCategory:Centos

This guide can be used in the case we need to run Nginx on Amazon due to a bug that affects the EPEL package repository and maybe some other repository.

That’s why I leave this “Step by Step” to compile and build the RPM for CentOS and RHEL. It is functional in Amazon EC2 instances.


The first thing you need to do is to install the “checkinstall” to generate the RPM.
If you’re going to do it on a 32bit system just do the following:

yum install checkinstall

To do that we have to have the RPMforge Repository in our system.

Read More…

Some Tools and Tips

No Comments

May 3, 2011 at 8:03 pmCategory:Tools & Tips

HTOP

This is htop, an interactive process viewer for Linux. It is a text-mode application (for console or X terminals) and requires ncurses. Tested with Linux 2.4 and 2.6.

Needed RPMForge Repo for easy installation.

yum install htop

And Finish!




MTOP

Monitors a MySQL server showing the queries which are taking the most amount of time to complete. Features include ‘zooming’ in on a process to show the complete query, ‘explaining’ the query optimizer information for a query and ‘killing’ queries. In addition, server performance statistics, configuration information, and tuning tips are provided.

Needed RPMForge Repo for easy installation:

yum install mtop

Create file .mtoprc in own Home.

cd ~
vim .mtoprc

Add the following line in this file:

--dbuser=root --password=mypass --seconds=1

Save and Quit.

Run this comand:

mtop

And Finish!


To be Continued…

Install PhpMyAdmin

No Comments

May 3, 2011 at 6:42 pmCategory:Tools & Tips


PhpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. phpMyAdmin supports a wide range of operations with MySQL. The most frequently used operations are supported by the user interface (managing databases, tables, fields, relations, indexes, users, permissions, etc), while you still have the ability to directly execute any SQL statement.


Install phpmyadmin and dependencies (libmcrypt, php-mbstring, php-mcrypt)

yum install phpmyadmin

Edit next file: config.inc.php
Read More…

Amavisd-new, ClamAV and SpamAssassin on Centos.

16 Comments

December 9, 2010 at 7:07 pmCategory:Centos

Introduction

This tutorial works fine for this server conf.

Amavisd-new and ClamAV were installed from the RPMForge repository. To enable the RPMForge repository, please see the RPMForge instructions.

Installation

Install amavisd-new, clamav and spamassassin:

yum --enablerepo=rpmforge,rpmforge-extras install amavisd-new clamav clamav-devel clamd spamassassin

Adding user clamav to group amavis:

gpasswd -a clamav amavis

ClamAV

Read More…

Postfix mysql postfixadmin dovecot roundcube centos 5.7 (updated)

75 Comments

November 22, 2010 at 7:41 pmCategory:Centos

Installation needed packages for our MailServer

Needed Repos for easy installation:

RPMForge:(htop, clamav, etc..)
If you have not the repo RPMForge, download it and follow the guide for your system:
http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

CentosPlus and C5-Testing:(php.5.2, postifx-mysql)
Install yum-priorirys.

yum install yum-priorirys

And edit this file.

vim /etc/yum.repos.d/CentOS-Base.repo

And make it look like this:
Read More…

block facebook with iptables.

61 Comments

November 18, 2010 at 3:03 pmCategory:Centos

This mini-script realy works! Just try it ;)

FACEBOOK_ALLOW="192.168.1.12 192.168.1.14 192.168.1.111"
iptables -N FACEBOOK
 
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 443 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 66.220.144.0-66.220.159.255 --dport 80 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 69.63.176.0-69.63.191.255 --dport 80 -j FACEBOOK
iptables -I FORWARD -m tcp -p tcp -m iprange --dst-range 204.15.20.0-204.15.23.255 --dport 80 -j FACEBOOK
 
## FACEBOOK ALLOW
for face in $FACEBOOK_ALLOW; do
    iptables -A FACEBOOK -s $face -j ACCEPT
done
iptables -A FACEBOOK -j REJECT