Posts

Virtualmin and Awstats

If you are using virtualmin and your client wants to check on the stats but don't like to login on virtualmin the absolute link and file can be used. For example your domain name is http://mazaredo.com/, put in browser http://mazaredo.com/awstats/awstats.pl This will invoke the perl file and ask you for a username and password and will show your awstats.

Some ways to clean and fix your computer

Is your computer slow? You just bought it like a couple of months or reformatted it like just a month ago? Some things that might help you solve the problem. 1. Scandisk - scan your computer for corruption. Before it was quite cool in windows 98 we just type in on the command prompt : scandisk /autofix and it will scan it all by itself. For windows xp and later you can do it by going to my computer, right click on the hard drive (usually c drive) click on properties, click on the tools tab in the "error-checking" click check now this will invoke the scan program though you can continue on this since it will ask you if you want to scan it at boot time " boot time means when your computer is starting" just click th ok button and restart your computer and wait for the scan to finish. Most problems not related to virus will be fixed by this. before there is also the famous "ndd" i love that program. norton disk doctor 2. Defragment - Also this one will event...

Virtualmin Issues: Apache dying every week at midnight

Issues : 100% http cpu load, Server Hangs, Http Dying Every Week There are lot of things I've done. 1. Check the cron jobs every week and change some weekly jobs and spread it on random day to another day like sat so they will spread the load 2. Create a script that auto checks that apache every 5 min there is a howto on the internet you can follow just google it. 3. This is the last thing that I've been doing read below: I've been looking for a solution on this one for quite long time now and havent figured it out. Log of apache doesnt give a clue. Maybe others logs have a clue the last log I havent checked was the logrotate logs. ( the log of the log rotator lol) I run the logrotate and poof! server down :D some freaking code there. I checked and found that the virtual sites rotates the log and invoking a restart of the httpd. I checked and tried and change the restart to graceful but no avail. So why do the server needs to be restarted?? Dunno really maybe to clear and s...

html,css standards: what about browser standards!

They say Standard this and that : Follow the standards ffs standards? where uhmm yeah! WTF! Check and Revalidate! What are you a guru? There are no rules on html! You have to save it with an extenson of html to be parsed! So to be standard you have to code for all the browsers out there! including lynx browser.

Virtualmin Httpd Problem Stopping Fix Howto

Image
Fix : on crontab Also fix when http stacks up ( websites still functioning but the status on webmin is down )

The Linux Top Command

The linux top command will show you the running process on the server or desktop (linux based system) this is like the task manager in windows. To run the command just type in the commandline: top Several useful keys when on the program click a letter on the key board for example u - this will ask you to put a user in the field and it will only show the process for that user For more commnads press h the below help will show: Help for Interactive Commands - procps version 3.2.7 Window 1:Def: Cumulative mode Off.  System: Delay 3.0 secs; Secure mode Off.   Z,B       Global: 'Z' change color mappings; 'B' disable/enable bold   l,t,m     Toggle Summaries: 'l' load avg; 't' task/cpu stats; 'm' mem info   1,I       Toggle SMP view: '1' single/separate states; 'I' Irix/Solaris mode   f,o     . Fields/Columns: 'f' add or remove; 'o' change display order ...

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...