这里是自己使用源码编译安装。
需要下载MySQL-4.0.25源码包。
cd /opt/distfiles
wget xxx
tar -zxvf mysql-4.0.25.tar.gz -C src
cd src/mysql-4.0.25/
./configure –prefix=/opt/modules/mysql
–enable-assembler
–with-mysqld-ldflags=-all-static
–with-charset=gb2312
–without-debug
make
make install
/opt/modules/mysql/bin/mysql_install_db
chown -R mysql.mysql /opt/modules/mysql/var
chgrp mysql /opt/modules/mysql
2 安装PHP
./configure
–prefix=/opt/modules/phpcgi
–enable-fastcgi
–enable-force-cgi-redirect
–enable-bcmath
–enable-inline-optimization
–enable-magic-quotes
–enable-wddx–disable-debug
–enable-sysvmsg
–enable-sockets
–enable-mbstring
–enable-calendar
–with-trans-sid
–with-ldap
–with-ldap-sasl
–with-mysql=/opt/modulels/mysql
3 安装lighttpd
cd /usr/ports/www/lighttpd/
make install clean
执行后,将会提示一些选项只要选中OPENSSL 就可以了,其他的不用选。
![nixsky[www.nixsky.com]](/templets/images/toplogo.gif)

