Category Archives: SysAdmin

Server monitoring & snmpd in messages log

After installing monitoring host to track performance of our boxes and report any load / accessibility issues I noticed that SNMP daemon on monitored machines is filling up the logs with messages: snmpd[5082]: Connection from UDP: Several connections every minute … Continue reading

Posted in SysAdmin | Leave a comment

CentOS VPN setup

Quick guide to setup VPN in CentOS (my platform i386): wget http://poptop.sourceforge.net/yum/stable/rhel5/i386/pptpd-1.3.4-2.rhel5.i386.rpm rpm -ivh pptpd-1.3.4-2.rhel5.i386.rpm nano /etc/pptpd.conf Go to the end of the file where you can see examples of localip and remoteip. Below them add your own values for … Continue reading

Posted in SysAdmin | Leave a comment

Acer Aspire One CentOS 5 – network problem

Acer Aspire One running CentOS 5, network card problem solved with rpm -Uvh kmod-atl1e-1.0.1.9-2.el5.elrepo.i686.rpm module-init-tools-3.3-0.pre3.1.60.el5.elrepo.i386.rpm
This post explains where to download necessary files from and how to install them. Continue reading

Posted in SysAdmin | Leave a comment

Lighttpd mod rewrite with file exists condition

You know apache conditional re-writing rules, like:

RewriteCond %{REQUEST_FILENAME} !-s

How do you do it with lighttpd? Seems that the guys did not wanted to have a take on it for some performance reasons, but its also a condition rule that many PHP framework cannot live without.

Yes you can redirect everything to PHP and then handle it there, but then essentially you everything needs to be handle by PHP – even static files and headers and and and and becomes a headache. Continue reading

Posted in SysAdmin | Leave a comment

Lighttpd & Apache on the same port 80

Recently one of the domains I host got under DOS attack fire. Im talking serious traffic that the box could not handle and apache pumped up 99% CPU. Well its time for an upgrade there I thought, and turned to my hosting company to get new one.

In the meantime I tried to handle the situation and installed mod_evasive with APF firewall to put DROP rules for incoming IPs. Anyways it seemed not to make much difference in my case, so I ended up crawling site into static html and putting it on my CDN for now. Continue reading

Posted in SysAdmin | Leave a comment