中国青基会
RSS
热门关键字:  None  linux+moodle安装  mac  rhel5  199
当前位置 : Nixsky>服务器>Web>列表

FreeBSD 下安装配置 lighttpd+php+mysql+openssl

来源:phpabc.cn 作者: 时间:2007-03-06 点击:
1 安装MySQL
这里是自己使用源码编译安装。
需要下载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 就可以了,其他的不用选。
最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册