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 →
IPtables Firewall Rules
*filter -P INPUT DROP -P FORWARD DROP -P OUTPUT DROP # Allows all loopback (lo0) traffic and drop all traffic to 127/8 that doesn’t use lo0 -A INPUT -i lo … Continue Reading →
How to Get Started With mod_pagespeed with Apache on a CentOS
Introduction One of the more recently popular modules for Apache is mod_pagespeed. It is an output filter for Apache 2.2+ that can be configured through a variety of options through … Continue Reading →
Check Mysql DB size in MB or GB
To Check the DB size in MB, login to mysql and execute the below query in mysql mysql> SELECT table_schema “DB Name”,Round(Sum(data_length + index_length) / 1024 / 1024 , 1) “DB … Continue Reading →
WGET on Linux
Wget, the “non-interactive network retriever,” is called at the command line. The format of a Wget command is: wget [option]… [URL]… The URL is the address of the file(s) you … Continue Reading →
Howto set-up a crontab in Linux
In Linux, Cron is a daemon/service that executes shell commands periodically on a given schedule. Cron is driven by a crontab, a configuration file that holds details of what commands … Continue Reading →