Wednesday, May 23, 2012

FreeBSD9 Day2

Time to compile php from source code.

setenv PKGDIR /xtra/SYSTEM/PKGDIR
pkg_add -rK cvsup-without-gui
cp /usr/share/examples/cvsup/cvs-supfile ./
ee cvs-supfile
Change *default host=►CHANGE_THIS◄.FreeBSD.org to ►cvsup◄ and *default prefix=►/home/ncvs◄ to ►/usr/port◄ then save.
mkdir /xtra/SYSTEM/PORTS
ln -s /xtra/SYSTEM/PORTS/ /usr/ports
cvsup -g -L 2 cvs-supfile

What? u got failed?? try use csup instead of cvsup
csup -g -L 2 cvs-supfile

Or u can use portsnap
portsnap fetch && portsnap extract


php5.3

cd /usr/ports/lang/php53
make config-recursive

and tick for apache module.
make install clean

How to upgrade php53 to php54?
cd /usr/ports/lang/php5
make deinstall
make reinstall

Tuesday, May 22, 2012

FreeBSD9 Day1

How can I tell how much RAM is installed on a FreeBSD server?

sysctl hw.physmem 

pkg_add

ee install_day1

setenv PKGDIR /xtra/SYSTEM/PKGDIR/
#ee /etc/rc.conf
#ee /etc/resolv.conf
#ee /etc/hosts
pkg_add -rK apache22
 

the packages will keep in /xtra/SYSTEM/PKGDIR ;)