Password protect a directory using htaccess

This’s how you can setup password protection using .htaccess: Goto the directory that you want to be protected and create an .htaccess file there with the following contents: AuthType Basic AuthName “Attendance” AuthUserFile /home/school/.htpass/attend Require valid-user Note: Make sure that you place the AuthUserFile outside your document root to make it secure. Then create a password...

December 5th, 2009 by Akhthar Parvez 

Apache glibc detected error due to Zend

If you notice the following error in apache error log after installing/upgrading Zend: *** glibc detected *** free(): invalid pointer: 0x08b83400 *** It’s a known bug with Zend Optimizer <=3.0 version. You can get it fixed by upgrading Zend to 3.0.1 # wget http://downloads.zend.com/optimizer/3.0.1/ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz # tar -zxvf ZendOptimizer-3.0.1-linux-glibc21-i386.tar.gz #...

October 10th, 2009 by Akhthar Parvez