Nov 25 2006
I started to write this post many weeks ago and finally publish it even if it’s not totally finish. It is just a little feedback about tuning a full LAMP server with some user traffic and services load. Important thing to notice is that all stuff in this post is NOT THE SOLUTION. You will probably have to tune little more for adapt all this to your personal server usage, server load, development & architecture. So, use those tips as a kind of inspiration instead of an “how to”. Don’t forget that when you do such tuning, take care to keep a backup of your previous configuration files.
We will try to tune the following server :
- Current OS : Debian GNU Linux Kernel 2.4.32 ipv4 + GRSEC
- 1Go RAM DDR
- Intel(R) Celeron(R) CPU 2.66GHz
- SWAP 512Mo
- 3Go on / and 226Go on /home
- Running services are Qmail, Bind9, mrtg, Apache 2.2.2, PHP 5.1.4, MySQL 5.0.21
Read the rest of this entry »
Nov 24 2006
Many DOS commands in the 32-bit versions of Windows are similar but support different parameters, different commands or using different registry key name. Thus, if you wish to write a batch file that can run on different types of machines, it may prove beneficial to determine the version of Windows on which the batch file is running. This way the batch file can execute commands appropriate to the operating system.
Read the rest of this entry »
Nov 07 2006
In our list of “CLI workaround for Windows XP“, a missing command is SLEEP or WAIT. For fixing this I suggest you two solution, first is simply a batch workaround using PING command, the second solution use the Windows Server 2003 Ressource Kit tools.
With PING you can produce a fixed delay by testing the loopback address. This can be really usefull if you don’t want (or if you can’t) install extra software.
# Doing an approximative pause of 60 seconds
PING -n 61 127.0.0.1>nul
Second way is to install the Windows Server 2003 Resource Kit tools from microsoft.com. You will get a SLEEP.exe that will do all the requested stuff.
# Doing a pause of 60 seconds
SLEEP 60
Enjoy. ;-)
Recent Comments