- 1、本文档共11页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Appweb开发指南.
Appweb开发指南
编译及安装
下载appweb-src-3.2.2-1.tar.gz和appweb-patch-matrixssl.zip,将其解压至工作目录;
编译matrixssl,matrixssl目录下有两个版本matrixssl-1-8-8-open和matrixssl-3-1-2-open,由于appweb目前只支持matrixssl-1-8-8-open,所以我们只需要编译matrixssl-1-8-8-open即可,且Makefile默认也是编译matrixssl-1-8-8-open;
进入matrixssl目录进行编译:cd matrixssl; make
进入appweb目录,执行下面的命令进行编译:
./configure --build=i686-pc-linux --type=DEBUG --enable-log --enable-multi-thread --enable-upload --enable-auth --enable-auth-file --enable-auto-compile --with-matrixssl=/home/hhb/matrixssl/matrixssl-1-8-8-open
make
安装:make install (必须要使用root执行)
配置及运行
为了快速完成配置,我们只要把安装后的文件拷贝到编译目录下即可;
把/etc/appweb目录下的拷贝到编译目录即可:appweb.conf, conf/, groups.db, users.db, mime.types
修改appweb.conf:
ServerRoot /home/hhb/appweb
Listen 80
DocumentRoot /home/hhb/appweb/doc
LoadModulePath /home/hhb/appweb/modules
修改conf/hosts/ssl-default.conf:
DocumentRoot /home/hhb/appweb/doc
如果ssl端口有冲突(默认4443)则需要修改如下:
Listen 443
VirtualHost *:443
制作证书:
把test目录下的ssl目录拷贝出来,放至appweb工作目录下即可。
注意:ssl目录下有Makefile专门用来生成证书,大家有时间可以自己去看一下openssl命令
启动appweb:
设置appweb的运行路径:vi .bashrc
PATH=/home/hhb/appweb/bin:$PATH
保存后执行
source .bashrc
运行:
appweb --log stdout:4
为方便大家定位错误,下面我把正常运行打印的日志贴出来:
appweb: 2: Configuration for Embedthis Appweb
appweb: 2: ---------------------------------------------
appweb: 2: Host: linux-ebxd
appweb: 2: CPU: i686
appweb: 2: OS: LINUX
appweb: 2: Distribution: suse Linux
appweb: 2: Version: 3.2.2-1
appweb: 2: BuildType: DEBUG
appweb: 2: ---------------------------------------------
linux-ebxd:/home/hhb/appweb # appweb: 4: Already logging. Ignoring ErrorLog directive
appweb: 4: Already logging. Ignoring LogLevel directive
appweb: 2: Server Root /home/hhb/appweb
appweb: 2: DocRoot (Main Server): /home/hhb/appweb/doc
appweb: 2: Set connector netConnector
appweb: 4: Probe for filename mod_auth
appweb: 4: Probe for library mod_auth.so
appweb: 4: Probe for filename /home/hhb/appweb/modules/mod_auth
文档评论(0)