Website: http://123systems.net
Whois
Datacenter Whois
Spec and Features
{ 0 comments }
My friend told me about my NginX Auto Installer, too bad because it only support CentOS, he really want to use my auto installer if it supports Debian or Ubuntu. As i said before, i’ve never tried OS other than CentOS, so last night i tried to install NginX, PHP, and MySQL under Ubuntu 10.04.2 Lucid, guess what? It was confusing me, why can’t this OS just give a standard name for their modules and packages? For example, on CentOS if we want to install PAM and PAM devel, then we’re just type
yum install pam pam-devel
but on Ubuntu
apt-get install libpam0g-dev libpam-devperm
Why not creating the normal name like ‘pam’ for package name and ‘pam-devel’ for development package name? I had to do googling for almost of those packages which i wanted to install because they have a ‘not normal’ name. :p
Okay, enough with the preamble story, here’s the result of my experiment.
Box: Ubuntu 10.04.2 Lucid 64bit with 256MB RAM OpenVZ
First update Ubuntu repository list and update existing packages
apt-get update apt-get upgrade
Install dependencies
apt-get install -y build-essential make automake patch bc netcat libgeoip1 libgeoip-dev fontconfig libfontconfig-dev libpam0g-dev libpam-devperm slapd ldap-utils libldap-2.4-2 libdb4.6 libxpm-dev libtool libaio-dev libltdl3-dev libmcrypt-dev libmhash-dev unixodbc unixodbc-dev zip unzip nano perl openssl libssl-dev libdevel-repl-perl libperl-dev libpcre3 libpcre3-dev libjpeg62 libjpeg62-dev libpng-dev libtiff4 libtiff-dev libfreetype6 libfreetype6-dev libgmp3-dev aspell libaspell-dev libpspell-dev libiconv-ruby mlocate libc-client2007e libc-client2007e-dev uw-imapd tidy libtidy-dev libbz2-dev libmysqlclient15-dev
Because i want to build NginX, PHP, and MySQL manually from source, also i will update a few dependencies for PHP, so now remove the following packages and also stop apache and bind processes.
apt-get remove apache2 php5 mysql-server gnupg curl libcurl3 libcurl-dev libidn11 libidn11-dev libxslt-dev killall -9 apache2 killall -9 named
Install GD Library
wget http://pkgs.serversreview.net/files/gd-2.0.33.tar.gz tar -zxvf gd-2.0.33.tar.gz cd gd-2.0.33 ./configure --prefix=/usr --libdir=/usr/lib --with-png=/usr/lib --with-freetype=/usr/lib --with-fontconfig=/usr/lib --with-jpeg=/usr/lib --with-xpm=/usr/lib make make install
{ 0 comments }
Another note in my blog to install Apache 2.2.17 with PHP 5.3.5, and now i’m going to use EPEL and WEBTATIC Repository, let’s start!
VPS: CentOS 5.5 64bit with 512MB RAM OpenVZ
Add EPEL and WEBTATIC repository to your vps
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/`uname -i`/epel-release-5-4.noarch.rpm rpm -import http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm rpm -import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
Install Apache 2.2.3 and additional modules, update your CentOS, and add make it automatically starts
yum -y install httpd perl libperl GeoIP GeoIP-devel GeoIP-data zip unzip nano yum -y update chkconfig --add httpd chkconfig httpd on
Remove your old PHP and MySQL (if exist)
rpm -qa | grep mysql rpm -e mysql rpm -qa | grep php rpm -e php yum -y remove php php-mysql mysql mysql-server
Create domain root
Just like the old time, i’m using ‘/home’ base directory, create one user under it to control all domains so you don’t have to worry about ftp permission. Also to make the user more secure, i’m disabling shell function.
useradd www -s /bin/false passwd www mkdir -p /home/www/yourdomain/public_html mkdir -p /home/www/yourdomain/logs
{ 0 comments }
LiteSpeed is good for Apache alternative, it is faster, more efficient, and also fully interchangeable with Apache. It is GUI based so you don’t have to worried about the setting, just copy paste, click right here and right there from the administration panel. The main shortage of LiteSpeed standard edition is just maximum 150 concurrent connection and 5 virtual hosts, still good for low to middle end websites with little budget. If you need webserver to serve more virtual host, you can switch to Nginx. Now we will begin with LiteSpeed installation.
VPS: CentOS 5.5 64bit with 256MB RAM OpenVZ
note:
– If you want to run the standard version on 64bit Linux, you need to install 32bit compatible libraries (glibc for CentOS) – ref: LiteSpeed
– If you want to run the standard version on 32bit Linux, pay attention for library directory name, change “/usr/lib64” to “/usr/lib”
Install dependencies and update
yum -y install gcc gcc-c++ glibc make automake GeoIP GeoIP-devel GeoIP-data fontconfig fontconfig-devel gd gd-devel pam pam-devel openldap openldap-devel libXpm libXpm-devel libtool libaio libaio-devel libtool-ltdl libtool-ltdl-devel libmcrypt libmcrypt-devel mhash mhash-devel unixODBC unixODBC-devel zip unzip nano perl openssl openssl-devel pcre pcre-devel bzip2 bzip2-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel gmp gmp-devel aspell aspell-devel yum -y update
Remove Old Apps
yum -y remove httpd php mysql
Now i’m going to update a few modules for PHP 5.3.5 dependencies to the latest version, because CentOS has not yet released the latest version of these modules. If you want to use current version from CentOS repository and make it simple by using yum, you can install the following modules and skip the Install / Update the latest modules version section. (go straight to the MySQL installation)
yum -y install gnupg curl curl-devel libidn libidn-devel libc-client libc-client-devel.`uname -i` libxslt tidy libtidy libtidy-devel
{ 0 comments }
{ 0 comments }
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 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 }
{ 0 comments }
New update: Nginx 0.8.54 + PHP 5.3.5 has been posted
I’m doing this on my CentOS 5.5 64bit with 256MB RAM OpenVZ VPS, another / my way to install Nginx with the appropriate modul for hosting WordPress site or blog. Nginx version is still 0.8.53 because i’m using Epel Repository.
Download Epel Repository
32bit
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
64bit
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
Update YUM
yum update
Install Nginx and required packages
yum install -y nginx patch libtool libmcrypt-devel libxml2-devel make automake gcc gcc-c++ sudo flex bison wget zlib-devel openssl-devel pcre pcre-devel pcre-devel gd-devel bzip2* libc-client-devel.x86_64
Start Nginx
chkconfig --add nginx chkconfig nginx on /etc/init.d/nginx start
Optional: Before starting Nginx, you have to stop and / or remove httpd
service httpd stop yum remove -y httpd
Install MySQL
yum install -y mysql mysql-server mysql-devel service mysqld start
{ 0 comments }
{ 0 comments }