Authentication (Linux) through htaccess: Authentication through Htaccess #Shell> vi .htaccess AuthUserFile /public_html/private/.htpasswd AuthName "Secret Stuff" AuthType Basic require valid-user Authentication for Single File access on Apache (Linux) through htaccess Edit httpd.conf file and add … Continue Reading →
LDAP with SVN (Subversion) on Centos
Add following lines in include folder of httpd (in folder conf.d) with the name of subversion.conf #Add following lines LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <Location /svn> DAV svn SVNParentPath … Continue Reading →
Remove files older than x days on Linux
You just need to execute the below command as sudo / root find /path/to/files* -mtime +5 -exec rm {} \;
Why Cacti doesn’t capture snmp interface data
During the recent Cacti configuration I came across a problem where I was not able to read interface traffic, using SNMP, from my Linux servers (I have two Ubuntu 11.10 … Continue Reading →
OpenVas Install and Configure on Linux in all flavours
OpenVAS for CentOS via Atomic Step 1: Configure Atomicorp Repository (as user root, only once) wget -q -O – http://www.atomicorp.com/installers/atomic |sh Step 2: Quick-Install OpenVAS (as user root, only once) … Continue Reading →
Check hits for single page from apache logs
#grep -roh contentname path for logs file | wc -w