When you use chown to change ownership of a file or directory, it will work but with Symlink (Created by using lncommand), you can’t do that. When you do it, it will fail and you may not know that since there is no error message or anything to let you know. So, to change ownership for Symlink, you need to use option -h. Below is an example :
Read the rest of this entry
Author Archive
Change Owner of Symlink in Linux
Author: adminSep 12
Server monitoring using Munin in CentOS 5.6 + DirectAdmin
Author: adminSep 12
Download RPMForge Package. Check your system with uname -a command to get the suitable package. Below is the current one I got :
32-bit system:
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
64-bit system
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
If you want to check for the latest one, check it from -> http://packages.sw.be/
My instruction will base on x86_64 package.
Read the rest of this entry
Use Nginx as a reverse proxy for DirectAdmin
Author: adminSep 12
I try to use Nginx as a reverse proxy to see if there is any improvement over Apache Worker MPM or not. I found an instruction from DirectAdmin webboard but it’s quite old. So, I just tried to follow their steps and do some modification to match what I have read. Below is what I did
1. You need to compile Nginx. Nginx version 0.8.54 is the lastest stable release as of today. So, just copy and paste below code into your SSH
Read the rest of this entry
DirectAdmin with mod_fcgid
Author: adminSep 12
All steps below should be done with a new clean install of DirectAdmin. It is possible to make it work on the server that already have users on it. I did that and it works perfectly fine. However, the steps will be a bit different and it won’t work if you just follow instruction below.
1. Copy and paste below command into your SSH
Read the rest of this entry
awk / cut: Skip First Two Fields and Print the Rest of Line
Author: adminSep 8
I’d like to skip first two or three fields at the the beginning of a line and print the rest of line. Consider the following input:
This is a test
Giving back more than we take
I want my input file with the following output:
a test
more than we take
How do I printing lines from the nth field using awk under UNIX or Linux operating systems?
Read the rest of this entry