Sunday, 25 May 2014

Automount using cifs

Put entries like below in /etc/fstab:

/ /backup cifs 
defaults,noatime,username=root,password=PASSWD  0 0

Saturday, 24 May 2014

Multiple Rsync[parallel] during data transfer

Sometimes the data transfer is very slow due to network connections.
At that time, we use parallel rsync to transfer the data to other server efficiently.

export SRCDIR="/home/."; -->Source Directory
export DESTDIR=""; --> Destination Directory
export THREADS="8";
rsync -lptgoDvzd $SRCDIR $DESTDIR; --> transfer the folders & sub-folders first.
find . -type f | xargs -n1 -P$THREADS -I% rsync -az % $DESTDIR; -->rsync files in multiple process.

Monday, 5 May 2014

info [rebuildhttpdconf] Unable to determine group for user

-Unfortunately virtual host entry for some users are missing in apache configuration.

Also you are facing the below issue while rebuild the apache configuration.

info [rebuildhttpdconf] Unable to determine group for user

It seems that user entry missing in /etc/group file.


First check that user entry in /etc/passwd


grep xxxx /etc/passwd

779 is GID for that user.

You need to add the below entry in /etc/passwd file.


-Once again rebuild the apache configuration, it will create vhost entry.

Cagefs enabled user[php selector] gives 500 error

Need to manually re-set PHP selector and php version for this user:

# cagfesctl --setup-cl-selector
# /usr/bin/cl-selector --select=php --version=5.3 --user=xxxxx