1. Wget on FreeBSD
f you are coming from Linux, you will find wget missing on FreeBSD. Many programs that relay on wget will stop working on FreeBSD.
For downloading files, FreeBSD use “fetch”. To download a file with fetch use
# fetch http://bizhat.com/game.zip
If you really need wget working, you can do one of the following, first method is symlink. Today i was installing qmail-ldap, the instruction says wget, i have changed it to fetch and executed and it worked fine. So i though of a symlink, that will do the same with out changing wget to fetch or installing wget on FreeBSD.
# ln -s /usr/bin/fetch /usr/bin/wget
# cd /usr/ports/ftp/wget
# make install clean
Now you have wget installed on your FreeBSD server. I recommend using fetch with symlink as both wget and fetch do the same job.
2.Enable or Disable Direct Root Login
3. Tuning Apache Web Server on FreeBSD
sysctl -w kern.ipc.nmbclusters=16384
sysctl -w kern.ipc.maxsockets=16384
you must know your performance characteristics, make graps with your performance, analyze your server parameters
use a dedicate server for your web server (do not mix with other server, like mail server)
StartServers should be high (default is 5, for a dedicate server make it higher
Timeout (to get a TCP ACK for a GET request) should be 60 (default is 300)
MaxClients (FreeBSD) = 256