a little reminder

If you ever need to download an entire Web site, perhaps for off-line viewing, wget can do the
job—for example:

$ wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
--no-parent \
www.website.org/tutorials/html/
This command downloads the Web site www.website.org/tutorials/html/.

The options are:

--recursive: download the entire Web site.

--domains website.org: don't follow links outside website.org.

--no-parent: don't follow links outside the directory tutorials/html/.

--page-requisites: get all the elements that compose the page (images, CSS and so on).

--html-extension: save files with the .html extension.

--convert-links: convert links so that they work locally, off-line.

--restrict-file-names=windows: modify filenames so that they will work in Windows as well.

--no-clobber: don't overwrite any existing files (used in case the download is interrupted and
resumed).

FreeBSD 8.0 dumps

kernel dumps? no worriez
disable them by
sysctl -w kern.coredump=0
sysctl -wkern.corefile=/dev/null

or enable with
sysctl -w kern.coredump=1
sysctl -w kern.corefile="/var/tmp/%U.%N.core"

FreeBSD and console logging

Most of FreeBSD's i have are servers without X11 or any desktop environment and as i know from previous Linux situations many informations are outputed on the console tty, so you kinda need to have a monitor turned on and mandatory have to be present there to read it... so FreeBSD has a very nice way to help us: /var/log/console.log!
It's not enabled by default but:

# touch /var/log/console.log
# chmod 600 /var/log/console.log
# vim /etc/syslog.conf

And uncomment the setting: console.info /var/log/console.log

# /etc/rc.d/syslogd restart

FreeBSD Lighttpd with both PHP 5.3.2 and 5.2.13

install PHP 5.3.2 normally using ports and get PHP 5.2.x fron php.net and configure it like so with CGI(for lighty):

./configure --enable-fastcgi --with-zlib --with-layout=GNU --with-config-file-path=/usr/local/bin/php5.2/etc/addini --with-config-file-scan-dir=/usr/local/bin/php5.2/etc --build=amd64-portbld-freebsd7.2 --with-mysql=/usr/local/bin/mysql --with-mysqli=/usr/local/bin/mysql_config --with-curl=/usr/local/include --prefix=/usr/local/bin/php5.2

so from this php will get it's php.ini config file from /usr/local/bin/php5.2/etc (/usr/local/bin/php5.2/etc/php.ini) and the additional ini will be phrased from /usr/local/bin/php5.2/etc/addini (so an extensions.ini: /usr/local/bin/php5.2/etc/addini/extensions.ini)

edit Lighttpd config file and change the php binary path as:
"bin-path" => "/usr/local/bin/php5.2/bin/php-cgi",


this post will be edites as i go along