Blog
Password Protect Site using htaccess
To password protect a web site or a sub folder using .htaccess, create a .htaccess file in the folder. vi .htaccess Add…
WebSocket
WebSocket Server is a technology that enables real-time communication between a web application and a server. It provides a bidirectional data transmission…
PHP APC Cache
APC Cache is an open source opcode caching module for PHP. You can find documentation for APCu at https://www.php.net/manual/en/book.apcu.php Zend OpCache install…
Python mechanize HTTP Error 403 request disallowed by robots.txt
When running following python script i get error “HTTP Error 403 request disallowed by robots.txt” from mechanize import Browser a = [‘https://google.com’,…
CageFS command not working for user
I have flvtool2 installed on the server. Path to binary file location was added in file /etc/cagefs/conf.d/vshare.cfg [root@server22 ~]# cat /etc/cagefs/conf.d/vshare.cfg [vshare]…
Monitor OpenLiteSpeed with monit
To monitor OpenLiteSpeed with monit on Ubuntu Server, create file vi /etc/monit/conf-enabled/openlitespeed Add following content check process OpenLiteSpeed with pidfile /tmp/lshttpd/lshttpd.pid start…
Ubuntu Screen Recorder
Ubuntu come with screen recorder, this can be activated with shortcut CTRL + ALT + SHIFT + R By default, it will…
inotifywait
inotifywait monitor changes in Linux file system. It can be used to track file changes. Here is inotifywait command used by bitninja…
robots.txt
When you make a copy of your site for development/testing purpose, you don’t need search engines index your site as it will…