1. 下载源码www.boa.org
下载之后进行解压
wang@wang:~/Desktop/boa-0.94.13$
修改 src/compat.h 两处地方 ,否则会出现错误提示
找到#define TIMEZONE_OFFSET(foo)foo##->tm_gmtoff
修改成#defineTIMEZONE_OFFSET(foo)(foo)->tm_gmtoff
有两个配置文件,有几个地方容易出错编译的时候不要把生成的文件放在root目录下,需要改以下几点
修改boa.conf文件
62 ErrorLog /home/wang/test/boa/error_log
63 # Please NOTE: Sending the logs to a pipe ('|'), as shown below,
64 # is somewhat experimental and might fail under heavy load.
65 # "Usual libc implementations of printf will stall the whole
66 # process if the receiving end of a pipe stops reading."
67 #ErrorLog "|/usr/sbin/cronolog --symlink=/var/log/boa/error_log /var/log/boa/error-%Y%m%d.log"
68
69 # AccessLog: The location of the access log file. If this does not
70 # start with /, it is considered relative to