Upgrade Nginx Without Downtime

It’s been more than 2 months now i have been using Nginx (read: Engine X) as reverse proxy server with Apache to server static files such as javascripts, css, images, etc. You can refer to my previous post about how to install nginx as reverse proxy in your web server. The result is, my website loading time is much faster.Well at first installation i used nginx v0.7.63 and the latest stable as i write this post is v0.8.53. There are lot of changes and bug fixes. So i decided to upgrade it … Read more...

Hardening Your Server Security With ConfigServer Security & Firewall

Talking about server side security will come down to firewall or filter connections from and to your server. Close unnecessary ports, block unwanted connection and blacklist spammers are the things that your server admin should do in their everyday life. If you pay attention to your server log, you will found that lot of malicious request and brute force bot attack to find your server vulnerabilities. You should block it with firewall.One of the good and free Firewall module is ConfigServer … Read more...

Install Or Update PEAR On Xampp For Windows

PEAR is short for “PHP Extension and Application Repository” which provide a repository for PHP community extensions that will make your PHP installation more powerful and easy to develop web application. The project that founded by Stig S. Bakken in 1999 was to promote the re-use of code that performs common functions. The project seeks to provide a structured library of code, maintain a system for distributing code and for managing code packages, and promote a standard coding style.The … Read more...

Local Server For Testing Environment With XAMPP On Windows

If you are a php web developer or want to be, it is a must that you need to have a testing environment. A testing environment means you have our own local server and test and run your application that you are developing before you go live on your production server. You need to develop, and testing your application in your local rather than testing it in your production server.So to have your local server in Windows environment you can use XAMPP. XAMPP is a free and open source cross-platform … Read more...

Install nginx as Reverse Proxy With Apache

Install nginx as reverse proxy is one way to improve your sever performance and so your website performance too. This is the serial post of “Improve Your Server Performance With Nginx” from my previous post. You can read why you should install nginx aside with apache to improve your server performance in that post. But here we will talk how technically we do it.Install nginx as reverse proxy with ApacheDownload and install the requirementsDownoad mod_rpafDownload PCRE (erl … Read more...

Improve Your Server Performance With Nginx

Apache is one of the best well known web server, that run in all platform, but usually on Linux in production mode. Apache supports a variety of features, many implemented as compiled modules which extend the core functionality. Both static files (css, js, html, image files) and dynamic files (php, pl, py, etc.) are served equally using same amount of resources. Which will cause bottleneck in system performance when your website have lot of static files and lot of traffic.To prevent this, we … Read more...

Solve FTP Passive Mode Issue In WHM/Cpanel With CSF

Installing a Firewall (eg: Config Security Firewall/CSF) is one step to hardening security of your webserver. But this come with an issue that CSF block PureFTPd/ProFTPd server, so your FTP client cannot connect to FTP server with passive mode. This is because CSF block the passive connection ports. To enable it you need set the ip range for passive connection, and make sure you are not block it from CSF.To do that, you need to edit your FTP server configuration.For PureFTPd: open … Read more...

Simple Perl Script To Test Mod_Evasive On Your Apache Web Server

One way to prevent DOS attack is install mod_evasive for apache. I have write the article “Prevent DDoS Attack With mod_evasive in Apache 2“, a while ago.And now if you want to check if the mod_evasive is working correctly, you can use the simple perl script below:To run the script:This script will do 100 request to your webserver. And will return the response code. As you know it is return code 200 means it success to connect. But if it is 404 (not found) or 302 … Read more...

List Of Spam Bot You should Block

There are lots of spam bot out there. Not just a spam bot, scrape box always come to your site and scraping your content plus wasting your bandwidth. I hate spam and scrape bot, and i bet you do too. We need to keep update our list to block such unwanted visitors. Unwanted visitors not just harm your website but also waste your money indirectly.Here the list of spam bot you should … Read more...