Setting Nameserver Based For Domain

Setting Nameserver Based For Domain

Yesterday, i was looking for the way to configure nameserver in my vps, because ip based for domain name is not cool, especially if someone check my domain and it appears that my domain only using ip address or public dns, lol. Then i found out that if i want to use nameserver, i have to install and configure bind dns in my vps, so i installed bind dns and ji-o-gling about the configuration, configure this-that-here-there, and the result was failed!!! It doesn’t work hahaha… I really don’t know how to configure it, i’ve never installed and configure bind directly from source because usually i used control panel like cPanel or Direct Admin or Kloxo which has included nameserver setting. Amid confusion, i do forum-walking and found a topic about create nameserver, but they didn’t write about the tutorial, they only told that bind dns can be configured from webmin. Aha!!! I remember that there is nameserver configuration in webmin bind dns, let’s rock n roll!

Box: CentOS 5.5, 256MB memory, OpenVZ

First thing you have to do is registering your nameserver(s) in your domain registrar, usually one domain or website has two nameservers, create ns1.yourdomain.com and ns2.yourdomain.com and point both nameservers to your ip address(es)

Install Webmin using rpm

wget https://serversreview.net/pkgs/files/webmin-1.530-1.noarch.rpm
rpm -U webmin-1.530-1.noarch.rpm

Install Webmin using yum
create webmin repo for yum

nano /etc/yum.repos.d/webmin.repo

add the following lines

[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1

add Webmin GPG key and install Webmin

rpm --import http://www.webmin.com/jcameron-key.asc
yum install webmin

(more…)

{ 0 comments }

Managed or Unmanaged?

Managed or Unmanaged?

For people who are playing around in the virtual private or dedicated server world, the words “managed” and “unmanaged” must be very familiar. Yes it is the add-on service from web hosting provider especially for virtual and dedicated. In my opinion which i learned from purchasing a few virtual private server both managed and unmanaged recently, i can explain that managed service is the provider will take care all of your server management such as basic server related installation, modules, and security hardening. Managed service also includes updates, patches, and monitoring. Those are basic service that has to be provided from managed service. Furthermore, besides basic services, some provider also include 3rd party software installation and consultation for customer’s own software issue.

Now we are going to talk about the price. Managed service’s price ranged from $15 to infinite (i don’t know how much is the highest cost for managed service). There are providers which include managed service within their packages and also separated or add-on service if we purchase their virtual private or dedicated server. Here is the funny part, there are providers who have two kinds of package, for example: the smallest unmanaged package which costs $10 and managed plus free WHM/cPanel for $25. One day i asked one of them whether i can purchase the WHM/cPanel managed package without managed service to reduce the cost, and they said they cannot do that. I wonder why do they not allowed me to purchase with option like that, so i asked another provider who has two kind of packages alike, and the provider said that yes i can, but it will costs $22. Wow, if we calculate that, managed service only costs $3, that is very cheap. I don’t know whether it was very cheap or just a marketing strategy to pull in more customer with the words “Free WHM/cPanel”, because so far i know WHM/cPanel retail price for virtual private server is $15 and $25 for dedicated server, lol. So the conclusion is they don’t include WHM/cPanel for free in the package, but yes managed service is free, because they have to pay for WHM/cPanel license while on the other side managed service can be done by their own human resouce without responsibility to pay for self resource license – i don’t even know whether if it is exist or not -.

Moreover about managed service, it is very different from premium service, there are lots of provider misguided in the implementation.

“You are just paying five bucks for this vps, what can you expect? Fast speed? Good uptime? Great performance? Quick support response?”

That statement are totally not smart. We are paying five bucks for the service you advertised. Blahblahblah space, blahblah data transfer, and blahblahblah port speed, so we deserve to get those blahblahblah. If you advertised blahblahblah without the features like “We don’t guarantee the performance, we don’t guarantee for the uptime, we don’t guarantee for the support”, so please do not saying something like the quote above. The package should be only divided by server spec like space, data transfer, port speed, or another technical specification, not bad quality server or thousand years support response. Customer support for managed and unmanaged service only distinguished by the question level. Basic questions or requests like billing, service issues, add-on services, or general questions like that has to be answered with good response time, unless if the questions or requests are about install or update the server, that is managed service and the provider has the right not to answer or offering the customer to upgrade to the managed package. But if the illustration above is really happened, that should be exist between ordinary package and premium package with faster support response privilege. Remember, managed and premium is two different word with two different meaning.

So which one will you choose? Managed is good for someone who doesn’t really experienced with server but have an important purpose of the server, so it will be comparable with the extra money for managed service. Anyway how do we know how to choose the good managed service provider? I only have one answer, keep trying until you got the best one for you, don’t believe anyone until you experienced yourself.

{ 0 comments }

This is what happened between Apache, Nginx, and LiteSpeed Free Edition

This is what happened between Apache, Nginx, and LiteSpeed Free Edition

Few weeks ago i rent one box VPS to test resource usage from three different webservers without any tweaks, it is just basic installation with PHP and MySQL. This three webservers are Apache, Nginx, and LiteSpeed Free Edition. I’m using wordpress basic installation (without any plugins) plus one 404KB image and load it with 50 visitors maximum simultaneously. This VPS has 256MB memory (512MB burst) and using CentOS 5.5 32bit with OpenVZ virtualization. Allright here are the results.

Apache

Apache Load Time

Apache Resouce Usage (more…)

{ 0 comments }

Latest Stable Version Nginx 0.8.54 with PHP 5.3.5

Latest Stable Version Nginx 0.8.54 with PHP 5.3.5

This is the improvement of my previous Nginx version 0.8.53 with PHP 5.3.5 installation, and also this time i’m not using php-fpm to run fastcgi, i’m using php-cli command to run fastcgi, and the result is memory usage decreased about 50MB. So let’s get it on!

VPS: CentOS 5.5 32bit with 256MB RAM XEN

Add EPEL and REMI repository, also update YUM (we will use REMI reposity for PHP 5.3.5)
EPEL 32bit

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

EPEL 64bit

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

REMI

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
yum -y update

Install Nginx

yum -y install GeoIP GeoIP-devel GeoIP-data perl libperl

32bit

rpm -Uvh http://centos.alt.ru/repository/centos/5/i386/nginx-stable-0.8.54-1.el5.i386.rpm

64bit

rpm -Uvh http://centos.alt.ru/repository/centos/5/x86_64/nginx-stable-0.8.54-1.el5.x86_64.rpm

start Nginx and add to init

/etc/init.d/nginx start
chkconfig --add nginx
chkconfig nginx on

Configure Nginx virtual host
As usual i prefer separate Nginx vhost for each domain so it will be easier to manage, and “/home” directory for domain root so it will ease you to synchronize domain root with ftp user root

create your domain root

mkdir -p /home/domain/public_html
mkdir -p /home/domain/logs

create two directory for domain vhost

mkdir /etc/nginx/sites-available
mkdir /etc/nginx/sites-enabled

edit Nginx configuration (more…)

{ 0 comments }

eAccelerator on PHP 5.3.5

eAccelerator on PHP 5.3.5

In my previous note i’m installing PHP 5.3.5 with XCache PHP opcode cacher, if you prefer to use eAccelerator for your PHP cacher, here is the guide note.

Download and install eAccelerator package

wget http://bart.eaccelerator.net/source/0.9.6.1/eaccelerator-0.9.6.1.zip
unzip eaccelerator-0.9.6.1.zip
cd eaccelerator-0.9.6.1
phpize
./configure
make
make install

add eAccelerator extension and settings to php.ini

nano /usr/local/lib/php.ini

zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20090626/eaccelerator.so"
eaccelerator.shm_size="16"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="0"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"

those setting above is default, for more information you can visit: eAccelerator Settings

create eAccelerator tmp folder

mkdir /tmp/eaccelerator
chmod 777 /tmp/eaccelerator

Check your PHP Version with eAccelerator installed

php -v

PHP 5.3.5 (cli) (built: Feb 11 2011 02:10:37)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
with eAccelerator v0.9.6.1, Copyright (c) 2004-2010 eAccelerator, by eAccelerator

with eAccelerator

Reference: eAccelerator Wiki

{ 0 comments }