Posts

Apache Randomly Stopping Every Day

New Fix Here Recently I have been experiencing apache server stopping randomly from time to time. Myabe due to DDos Atack or some weird event that I can't find in the logs. Maybe some cron job but I have been checking and stopping cron jobs but it has no effect. Also aI have DDos Blocker that blocks Ip Addresses whne they reach a maximum connection so I can't say he problem where IT was originating . Not Band Width Problem Since I have sonic.net at my back. No Clue At All. My Setup is Centos 5 with Virtualmin all packages are up to date. My Fix Was the following: I have searched for a script / command that will check apache if it is down, I found it somewhere in the web tyou can google it since it's one on the top of the list. Then I cron job It Every 5 minutes interval so if it fails on the 2nd minute I'm only down on 3 minutes and it will go up again. The funny thing is it is random so that's why i chose every 5 minutes. I rather choose every hour but it will pena...

Linux Checking connected Ip Address and How many Connection

netstat -ntu | grep ':' | awk '{print $5}' | sed 's/::ffff://' | cut -f1 -d ':' | sort | uniq -c | sort -nr This command will check what Ip Addresses are connected to the machine and how many connection. This was a code used in dosdeflate an anti ddos program written for linux. Check google for dosdeflate.

You need Meta Tags, Always Use Them

After the title you need to edit the html (geez edit the html im a noob!) yes you are but you need this to do things very easy just backup the file. In the design tab click edit html below is my html <head>     <meta content='Title of your blog' name='title'/>      <meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/>     <b:if cond='data:blog.isMobile'>       <meta content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0' name='viewport'/>     <b:else/>       <meta content='width=1100' name='viewport'/>     </b:if>     <b:include data='blog' name='all-head-content'/>     <title><data:blog.pageTitle/></title>    <meta content='the description of your site' name='description'/>     <meta co...

Check for open ports on computer

1. Linux         Create a file on console steps below --------------------------- $ nano portscan.sh -------------------------------- #!/bin/bash nmap -sS -O ip.address.off.the.server Save the file $chmod 777 portscan.sh ------------------------------------------------------------------ Basically you can just run the command much simpler $ nmap -sS -O ip.address.off.the.server It will output PORT     STATE SERVICE 22/tcp   open  ssh 80/tcp   open  http 443/tcp  open  https 1241/tcp open  nessus ----------------------------------------------------------------- --- the scanning is for open ports since all ports are closed in linux --- in windows create a batch file c:\>copy con portscan.bat paste inside:         netstat -a | find "LISTENING" save the file -- NOTE THIS IS if you are inside the machine ---

open source web server load balancing

Nginx Load Balancing | Reverse Proxy Nginx | SSL Nginx Used The howto of nixcraft.in.conf that can be found on google baby First File   GNU nano 2.0.9                                          File: nginx.conf.bak                                                                                          #pid    ...

ClamAv now on Sourcefire

ClamAv the free antivirus has been acquired by sourcefire they no longer accept donations. Hope they feed the clam very good since that clam is ok in opensource.

crontab virtualmin edition

For those of you who dont understand the crontab on virtualmin here are some useful steps bakup of virtual servers: Create a backup and create any schedule. Login to console and enter: $crontab -e This will open the crontab using the "vi" editor not your "nano" so be careful Look for the backup line like these below 0 0 * * 1-6 /etc/webmin/virtual-server/backup.pl --id 129783156318631 0 0 * * 7 /etc/webmin/virtual-server/backup.pl --id 130216537832489 The red marks what you should edit. the first red is run the backup every midnight from monday to saturday The second red is backup every midnight sunday. So if you want to backup every monday to friday  0 0 * * 1-5 monday to thursday  0 0 * * 1-4 every day at 1pm 0 1 * * * every day at 3pm 0 3 * * * modany to friday every 1pm 0 1 * * 1-5 Check this site here also has a live howto that will output it ! cool linkah!