Archive for February, 2010

Simple Tip To Change Linux System Time By Keeping TimeZone Intact

If you wish to change the time of your Linux based system by keeping your current time zone intact, then run the following command with necessary modifications to get it done.

date -s “26 Feb 2010 18:52:00″

How To Password Protect Directory Access Via Apache (HTTP)

I ran into a problem today, my team member asked me to password protect a directory in such a way that when someone access it via Web URL, it should first ask for password. Once user is validated then it should lead him/her to the actual web page.

Guess what is the most easy way to do it, I followed the following method and it worked perfectly. Since Apache is the web server and usually it is handling hundreds of websites on a single server so it is not a wise way to make changes in its configuration file often. We will achieve it via .htaccess.

Now go into the directory in which you wish to apply this restriction and create a .htaccess file (off-course if this does not exist already) and add the following lines with necessary modifications ( The only modification will be that you will need to change the path of the root directory of your applicaton).

AuthType Basic

AuthName “Admin”

AuthUserFile “/var/www/html/MYAPP/passwd”

require valid-user

Now create a file with name passwd at /var/www/html/MYAPP/ path and add the username and password in the following formate:

admin:K1/BaQTbqe0Eo

where admin is the username and the encrypted value after: is the password.

Restart apache service and you will be seeing the login prompt appearing on application launch.

Google Buzz – A New World Inside Gmail

Today morning, I was stunned to see the Google Buz loaded into my Gmail accout. Upon exploring  I figured it as a great thing. Let me list down the key features of Google Buzz:

  • Auto-following
  • Rich, fast sharing experience
  • Public and private sharing
  • Inbox integration
  • Just the good stuff

» Read more

How To Install Symfony On Linux

Symfony is the collection of classes written in PHP and it is the most commonly used PHP Framework. Here are the steps to install it in Linux ( The following instructions should work on all Linux distros, I followed them on Fedora Core).

First of all make sure that Pear is already installed, open the terminal and download the go-pear file by running the following command:

wget http://pear.php.net/go-pear

Once the go-pear is downloaded, run the following command to install Pear to your system.

php go-pear

Then follow the onscreen instructions and you are done with the Pear installation in some time. Once the Pear installation is completed, then it is the piece of cake to install symfony. ( Sometimes symfony may also require the ‘dom’ extension to be loaded).

» Read more