Linux

DansGuardian

Installing Dansguardian in CentOS 7

DansGuardian is a wonderful application that is easy to use and works well with proxy servers such as squid to filter web contents. This is a free OpenSource tool, easy to setup. Installation: ====== ==…




is

Adding a route in Linux

If you can to access a network outside your local host’s network, and the same is not know to your default gateway, you will require to add static routes in your systems. Same will be…


linux

Change Timezone in Linux

Setting the correct timezone is very important in any system to avoid confusions. Especially in systems used by multiple users, one may think the time is wrong without noticing the timezone.   To verify the…


lock

CentOS 7 authentication using Active Directory

Though Linux hosts has its own local authentication mechanism, as times requirements will arise where Windows Active Directory authentication will be required. For example, if a Linux host needs access to the NTFS folders shared by a…


phpMail

Sending email with multiple attachment using PhP

The posted below PhP code (function) can be used to send an email with multiple attachment using PhP. ========= =========== ========= <?php $attch1=/attach/file1.txt $attach2=/attach/file2.txt $thefiles[0]=”$attch1″; $thefiles[1]=”$attch2″; $to = “destination@domain.com”; $subject = “Hello”; $message = “How…



lock

Enabling security using .htaccess file

When working with web servers, and displaying contents, you may wish to restrict access to certain pages to only authenticated users. Which means one will require a password to view these restricted pages. Though there…