WebServer DB

Web server knowledge DB – FreeBSD, Apache, Web hosting, DirectAdmin, SMS

Linux

Shell Script List All Top IP Address Accessing Apache Server

#!/bin/bash # where to store final report? DEST=/var/www/reports/ips # domain name DOM=$1 # log file location LOGFILE=/var/logs/httpd/$DOM/access.log # die if no domain name given [ $# -eq 0 ] && exit 1 # make dir [ ! -d $DEST ] && mkdir -p $DEST # ok, go though log file and create report if [ [...]

, , ,

Apache FastCGI / mod_fastcgi PHP Script

Use this script to run Apache 2.x with mod_fastcgi. Install Apache 22 from FreeBSD port or using source code. The script is tested under FreeBSD and Debian / RHEL / CentOS Linux.

, ,

Shell script to restart MySQL server if it not working

Shell script to restart MySQL server if it not working due to ANY causes.  When script detects mysql is not running (it basically sends ping request  to MySQL) it try to start using /etc/init.d/mysql script; and it sends an email to user indicating the status.  This script must be run from Cron Job so that it can [...]

Linux: 20 Iptables Examples For New SysAdmins

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/iptables' title='See all Firewall related tips/articles'> src='http://files.cyberciti.biz/cbzcache/3rdparty/firewall.png' border='0' />

class="drop_cap">Linux comes with a host based firewall called Netfilter. According to the official project site:

netfilter is a set of hooks inside the Linux kernel that allows kernel modules to register callback functions with the network stack. A registered callback function is then called back for every packet that traverses the respective hook within the network stack.

This Linux based firewall is controlled by the program called iptables to handles filtering for IPv4, and ip6tables handles filtering for IPv6. I strongly recommend that you first read our href="http://www.cyberciti.biz/faq/rhel-fedorta-linux-iptables-firewall-configuration-tutorial/">quick tutorial that explains how to configure a host-based firewall called Netfilter (iptables) under CentOS / RHEL / Fedora / Redhat Enterprise Linux. This post list most common iptables solutions required by a new Linux user to secure his or her Linux operating system from intruders.



, , , , , , , , , , , , , , , , , , , , ,

Quick Tip: Find Hidden Processes and Ports [ Linux / Unix / Windows ]

style="float: right; margin-top: 0px; margin-left: 5px;"> title="See all GNU/Linux related tips/articles" href="http://www.cyberciti.biz/tips/category/linux"> src="http://files.cyberciti.biz/cbzcache/3rdparty/linux-logo.png" alt="" border="0" />

class="drop_cap">Unhide is a little handy forensic tool to find hidden processes and TCP/UDP ports by rootkits / LKMs or by another hidden technique. This tools works under both Linux / Unix, and MS-Windows operating systems. From the man page:

It detects hidden processes using three techniques:
  1. The proc technique consists of comparing /proc with the output of href="http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/" title="Linux / Unix ps command">/bin/ps.
  2. The sys technique consists of comparing information gathered from href="http://www.cyberciti.biz/faq/show-all-running-processes-in-linux/" title="Linux / Unix ps command">/bin/ps with information gathered from system calls.
  3. The brute technique consists of bruteforcing the all process IDs. This technique is only available on Linux 2.6 kernels.



, , , , , , , , , , , , , , , , ,

HowTo: Linux Update the Adobe Flash Player [ Firefox and Chrome Plugin ]

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/mozilla' title='See all Mozilla FireFox related tips/articles'> src='http://files.cyberciti.biz/cbzcache/3rdparty/firefox.png' border='0' />

class="drop_cap">The Adobe Flash Player plugin is use for viewing multimedia, and streaming video and audio, on a Firefox web browser. The same plugin is used by Google chrome and other browsers. Keeping your third-party plugins such as flash player up to date helps Firefox run safely and smoothly.



, , , , , , , , , , , , , , , , , ,

FAQ Updates: Oct/13/2011

October 13, 2011 Maris Udris Linux, Linux news, 0

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/sys-admin' title='See all UNIX/Linux SysAdmin related news/tips'> src='http://files.cyberciti.biz/cbzcache/3rdparty/sysadmin-logo.jpg' border='0' />

class="drop_cap">Our FAQ section is updated in last few days with new howtos:

Make the most of nixCraft FAQ Section

Get intimated about our new howtos / faqs as soon as it is released via href="http://www.cyberciti.biz/faq/feed/rss/?k=1">RSS feed OR follow us on href="twitter.com/#!/nixcraft">twitter.



, , , , , ,

FAQ Updates: Sep/05/2011

September 5, 2011 Maris Udris Linux, Linux news, 0

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/sys-admin' title='See all UNIX/Linux SysAdmin related news/tips'> src='http://files.cyberciti.biz/cbzcache/3rdparty/sysadmin-logo.jpg' border='0' />

class="drop_cap">Our FAQ section is updated in last few days with new howtos:

FAQ & Howtos RSS Feed

Get intimated about our new howtos / faqs as soon as it is released via href="http://www.cyberciti.biz/faq/feed/rss/?k=1">RSS feed.



, , , , , , , , , , , , ,

FAQ Updates: Sep/05/2011

September 5, 2011 Maris Udris Linux, Linux news, 0

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/sys-admin' title='See all UNIX/Linux SysAdmin related news/tips'> src='http://files.cyberciti.biz/cbzcache/3rdparty/sysadmin-logo.jpg' border='0' />

class="drop_cap">Our FAQ section is updated in last few days with new howtos:

FAQ & Howtos RSS Feed

Get intimated about our new howtos / faqs as soon as it is released via href="http://www.cyberciti.biz/faq/feed/rss/?k=1">RSS feed.



, ,

Linux Desktop Fun: Summon Swarms Of Penguins To Waddle About The Desktop

July 12, 2011 Maris Udris Linux, Linux news, 0

style='float:right;margin-top:0px;margin-left:5px;'> href='http://www.cyberciti.biz/tips/category/linux' title='See all GNU/Linux related tips/articles'> src='http://files.cyberciti.biz/cbzcache/3rdparty/linux-logo.png' border='0' />

class="drop_cap">XPenguins is a program for animating cute cartoons animals in your root window. By default it will be penguins they drop in from the top of the screen, walk along the tops of your windows, up the side of your windows, levitate, skateboard, and do other similarly exciting things. Now you can send an army of cute little penguins to invade the screen of someone else on your network. /> />



, , , , , , , , , , , , , ,

Previous Posts