Okay we continue to the third part of this post title, on the previous part we use NginX as load balancer and failover, now we use NginX with Geo IP based to determine the best backend for the visitors to put, here is the illustration. For instance, we have two backend servers located in UK and DE, then we put the visitors from United Kingdom to the UK backend, visitors from Germany to DE backend, and the rest will be divided into those two backend servers, let’s deal with it. I assume you have installed NginX in your frontend and… […]
On the previous post we were talking about simple dns failover using two nameservers / ip addresses, now we will move the conversation to the more exciting one, we will use frontend server to control the backend servers, here is the illustration. One frontend server decides whether to put the visitor to the server A or server B, here i am using NginX as frontend and also NginX as backend server. Why don’t you use another web server as the backend? I like NginX, for me it is easy to understand NginX configuration than another web server. Before we start… […]
Yeah guys, let’s talk about this post title, really it is interesting, i mean for me this is very interesting :p. If you have a site, and then something happen to your server’s network, and unfortunately your site does not have backup or mirror site which is very essential because your site is your income. So the first thing you need to do is this, do not put your site in shared / reseller hosting. Why? Because in shared hosting, your site is not alone, there are so much neighbor in it, and your site could be exploited from those… […]
Most of shared / reseller hosting providers that use cPanel as their control panel must have this order in their cPanel structure. Example one Server with one IP address using cPanel cPanel root / super user -> master reseller -> reseller -> shared further down that many users / domains would use the ip also cPanel shared hosting usually creates user directory under /home directory, so normally it will be hundreds of user directory right? but the screenshot says different, there is only one user directory and when I up to directory above /home, there is no root directory It… […]
Even though most of PHP applications is now running with PHP version 5.3, there are a few PHP applications are still running on PHP version 5.2, you can see what makes that thing happens here: http://php.net/manual/en/migration53.incompatible.php So i guess it will be good for PHP programmer / developer to have PHP version 5.2 and 5.3 installed and running on the same machine (more economical than using two machines for each PHP version). So let’s get started. Anyway i will use NginX as the webserver, so the main principle of two PHP version running on the same machine is CGI works… […]
This thing’s quite confusing me when i was trying to install FFMPEG and FFMPEG-PHP extension. You know it was always very easy if you’re install it from yum or rpm, but CentOS even EPEL doesn’t provide FFMPEG in their repository, so it is a bit bothering me if i had to use repository other than CentOS or EPEL, and that’s why i’m trying to install it from source. I was googling and found a lot of ‘how to’ about this, but they didn’t give a complete tutorial, also when there’s an error in dependency, i had to googling again until… […]
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… […]
A few days ago, at the time when i’m free and i have completed all of my jobs, i was walking around a few of web hosting provider’s websites to get reading. I found that most of them have the uptime statuses of their servers, and it is kind of exclaimed if we have something like that too, we can display our box status and we will always know our box system information without typing command one by one in ssh. So the idea is creating a simple bash script that will show some information like uptime, memory usage, disk… […]
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 |… […]