ring-trial

Archive for the 'linux' Category

You might already know varnish. Its a so called website accelerator. It will sit in front of your web server as a reverse proxy, listening on port 80, handling static contents based on the configuration files, and pass all dynamic requests to the main web server behind it. varnish will help alot to reduce request [...]

I have problem configuring trac to read svnserv password. So, I wrote a script which will convert the plaintext password of svnserv to htaccess password for trac to read. svnserv password format is as below [users] repoman = repomanpass This is the script to convert the file format into a htaccess file. #!/bin/bash path=/path/to/trac new_passwd_file=htpasswdnew [...]

I found this cool plugin for cPanel, which will provide additional feature for cPanel, for you to monitor certain log files located in /var/log/. However, this is just a very simple tool to view latest enrty in the log file, and to rotate those files individually. Please refer to their official page at http://www.logview.org/. They [...]

Saher-team provided a good tips on how to alert you by email, on any occurrence of ssh login for certain user. It is simple, by utilizing .bashrc file which is there by default in bash environment. Edit the .bashrc file in the intended user’s home directory to be monitored. vim /root/.bashrc. And add the following [...]

I encountered a problem when exim could not receive email to a specific domain name, with an error message like below 2011-03-04 03:10:45 H=mail-gy0-f178.google.com [209.85.160.178] F= temporarily rejected RCPT : lowest numbered MX record points to local host. A simple search lead me to a forum post on WebHostingTalk, exactly the same problem like mine. [...]

Server logs are very useful, only when you need it. And you never know when you might need them. You don’t want your application to white log file, and you’ll forgot about it until you run out of disk space. I’ve once encounter a log file thats 2GB in size. What you want to do [...]

I did use this script to backup all mysql database in a server. It will search for all databases, and perform mysqldump on each database, and compress them into one big file. #!/bin/sh # System + MySQL backup script # Copyright (c) 2008 Marchost # This script is licensed under GNU GPL version 2.0 or [...]

I’ve tried ab, Apache benchmark to test my web servers performance, and I can see, there’s alot of line in access log, the entry by ‘ab’, with the pattern line below xxxx.xxx.xxx.xxx – - [10/Nov/2010:21:13:22 +0800] “GET / HTTP/1.0″ 200 6639 “-” “ApacheBench/2.0.40-dev” I dont like to mess my apache log with these entries, that [...]

I’ve googled around, and found a few articles that might help solving a few problem that you most probably encounter if you’re hosting your own server on the internet, that are DOS and brute force attack. In this particular example, we will use iptables, to block Denial-of-Service and brute force attack. IPtables have a special [...]

Last few weeks I have these problem, where my server could not handle so much connection made to the server. The server have been upgraded, and the loads have been reduced. But there is some connection that stuck, that makes my apache died. Last 2 days it happen once, when I got a LAST_ACK DDOS [...]




Get Chitika | Premium
Eye Shadow iPhone 4 Case speckcase
Eye Shadow iPhone 4 Case by MiPhoneCase
See more iphone 4 cases
Make Your Own iPhone 4 Case speckcase
Make Your Own iPhone 4 Case by mvdesigns
More iPod touch cases