Senin, 25 Oktober 2010

How To nstall OpenVPN for Tunneling

ls -al /dev/net/tunls -al /dev/net/tun
ls
dir
yum install gcc
wget http://openvpn.net/release/openvpn-2.0.9.tar.gz
wget http://openvpn.net/release/lzo-1.08-4.rf.src.rpm
yum install rpm-build
yum install autoconf.noarch
yum install zlib-devel
yum install pam-devel
yum install openssl-devel
yum install make

Rabu, 01 September 2010

MySQL create user

Step 1 - Create new MySQL user


MySQL create user
Nowadays security is more and more important even in case of smaller websites. As a lot of site uses some database so this is one point where we can make some improvements.
In this article we will work with MySQL on our goal is to create a new user in the database.
There are more ways how you can do this.
  • Using CREATE USER and/or GRANT commands
  • Inserting a new record into the mysql.user table
First let's see how to use the CREATE USER command. Here I have to mention that thi s command is available only in MySQL 5 (5.0.2) and newer releases. The syntax is the following:   

Kamis, 26 Agustus 2010

How Install Ftp Server with PureFTP

Many people new to Unix are running Pure-FTPd because they find it easy to install. But that software is also used on embedded systems and highly loaded production servers, especially for hosting services.

For large sites with centralized user management, Pure-FTPd provides flexible authentication schemes including SQL and LDAP backends, plus the ability to easily write new custom handlers in any language.

How to Install and Configure ProFTPD in RHEL / CentOS / Fedora Linux

This is a user contributed tutorial.
ProFTPD is an enhanced, secure and highly configurable FTP server. Its configuration syntax is very similar to apache web server. It offers several functionalities such as:
+ multiple virtual server
+ anonymous
+ authenticated access
+ chroot jail support
+ SSL/TLS encryption
+ RADIUS, LDAP and SQL support etc

Install ProFTPD server

Kamis, 19 Agustus 2010

Instalasi Bind dengan Moda chroot

Berikut adalah langkah2 installasi Bind Dengan Moda Chroot

yum install bind-chroot

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.local /var/named/chroot/var/named/named.local
cp /usr/share/doc/bind-9.3.4/sample/var/named/named.root /var/named/chroot/var/named/named.root
touch /var/named/chroot/etc/named.conf
chkconfig --levels 235 named on
/etc/init.d/named start


Jumat, 13 Agustus 2010

CentOS - Installing Nginx via yum

Nginx is a popular lightweight server for those who do not need the bulk and extra services that Apache may offer.
This article will look at installing Nginx on a CentOS Slice using the 'yum' package manager.

CentOS - Mail Server- Installation

The base package for all of the mail articles will be Postfix. There are, of course, alternatives to Postfix, each with advantages and disadvantages and, without going into the differences, I have chosen Postfix due its relative ease of configuration.
As many of the future articles will concentrate on administrative issues and assume Postfix is already installed, let's go ahead and install it.

How to setup VPS or dedicated server with a kloxo admin panel

Most of people buys Virtual Private servers because their shared hosting is not enough or their site is getting more visitors that shared hosting cant afford. But some of them doesn’t know the basics of installing admin panel (like Cpanel) on their VPS and managing their VPS from scratch. So I own few VPS’s for my hosting needs and I was a geek too when I entered this area of interest but now I fed up with google a lot :D And this is a guide about how to install Kloxo (formerly known as LXAdmin) on CentOS. Note that the same process can be done for dedicated servers installed CentOS on it.

Rabu, 11 Agustus 2010

Panduan Transfer Domain

Langkah-langkah transfer domain:

1. Ketik dibrowser anda atau klik http://domain.namadomain.com
2. Klik menu "Click here to Transfer your Domain Name to Namadomain.com" yang ada di sebelah kiri
3. Ketik domain yang hendak anda transfer
4. Masukkan Domain Transfer Secret, Domain Transfer Secret bisa anda dapatkan di tempat anda registrasi domain sekrang ini.

Jumat, 06 Agustus 2010

CentOS – Apache configuration #2

Continuing from the first CentOS Apache configuration article, we now look at some of the other settings in the main httpd.conf file and what they can do.
Concentrating on efficiency and security, this will end our httpd.conf journey (for now).

ServerName

Default: Not Set
The ServerName is usually a hostname or a FQDN (Fully Qualified Domain Name).
If you set followed the CentOS installing Apache and PHP5 article, you will have already set the ServerName configuration.

CentOS – Apache configuration #1

Let’s take a look at the main httpd.conf for our CentOS Apache install.
We’re not actually going to change a lot at this point, just look at the main settings and see what they mean and what a change will actually do

Defaults

Why no specific changes to the default? Well, it’s difficult to give a definitive configuration as there are so many variables to consider such as expected site traffic, Slice size, site type, etc.
However, we’ll discuss the main settings and you can make any decisions as to what settings you feel are best for your site.

CentOS – Installing Apache and PHP5

CentOS comes with Apache v.2.2.3 and PHP v.5.1.6 and they are easily installed via the default CentOS Package Manager ‘yum’.
The advantage of using yum (as opposed to installing via source code) is that you will get any security updates (if and when distributed) and dependencies are automatically taken care of.

Apache Install

CentOS – Installing MySQL

Installing MySQL on CentOS is very simple using the ‘yum’ package manager.
This article will go through the install process and also look at what other packages are needed for MySQL to integrate with Ruby on Rails and with a standard PHP install.
MySQL Install
To begin with, a simple MySQL install:
yum install mysql-server mysql mysql-devel
Note that we have installed the development libs and headers with the ‘mysql-devel’ package. This package is required by the mysql Rubygems package which we install later in this article.
Start

CentOS 5.4 Setup – part 2

Now that we’ve secured access to our CentOS 5.4 slice we can update it and get it ready for the rest of the server install.
In part 1 of the CentOS 5.4 setup, we completed the ssh configuration along with a basic iptables setup.
Now let’s run some checks and install some personal configuration files to make life easier. Once done, we can update the install and create a solid base for the ‘meat’ of the server.

OS check
First thing is to confirm what OS we’re using. We know we should be using CentOS but let’s see:

CentOS 5.4 setup – part 1

Your CentOS 5.4 Slice will be a bare-bones install when it’s created. We need to connect via SSH and secure it as soon as possible.

Your new slice

These two articles will take you from a ‘barebones’ CentOS 5.4 Slice to a secured and up-to-date Slice ready for your server software (or whatever you use the Slice for). Not only that, you will have a better understanding of what is going on and, more importantly, why it’s going on.

This first part will walk you through setting up a new user and securing login access to your slice.