系统是MINI安装的,很多都用不上,能用到的有:防火墙IPFW、APACHE、MYSQL、SQUIT,
先编译内核
cd /sys/i386/conf
拷贝个内核文件,改成自己想要的名字。
编辑内核,看了www.freebsdchina.org上的一些帖子和说明文件,
4.X和5.X稍微有点不同:4.x ../../compil... 5.x ../compi....
通过ports安装好了apache,默认路径是/usr/local
为了让web支持php,安装了/lang/php4
安装jsp支持,进入ports,ja...(tab),编译了数个小时,最后提示磁盘空间不够,没办法,删除相关都东西。
支持jsp不行了,磁盘就4个G,/usr就3G大小。
安装phpbb2论坛,ports/www里有。
提示pear有问题
进入/usr/ports/devel/pear-PEAR 重新安装,提示
/usr/ports/devel/pear-PEAR/pkg-install: /usr/local/bin/pear2: not found
查找资料:
http://lists.freebsd.org/pipermail/freebsd-ports/2005-February/020884.html
I end up with:
> /usr/ports/devel/pear-PEAR/pkg-install: /usr/local/bin/pear2: not found
Then don't install www/mod_php4, but only lang/php4: by default
解决。
重新安装了phpbb,ok
lang/php4 installs the apache module and the CLI.