Website: http://zipservers.com
Whois
Spec and Features
{ 0 comments }
{ 0 comments }
{ 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 }
{ 0 comments }
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
{ 0 comments }
{ 0 comments }
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
{ 0 comments }