CGI部署
1. 复制lighttpd整个目录到arm板子上
cp /mnt/lighttpd /customer -r
2. 进入板子上
a. 复制mod_cgi.so libxml2.so.2 到库路径上
cp /customer/lighttpd/lib/mod_cgi.so /customer/xttlib
cp /customer/lighttpd/lib/libxml2.so.2 /customer/xttlib
b. 修改执行文件及cgi文件的权限
chmod 777 /customer/lighttpd/sbin/lighttpd
chmod 777 /customer/lighttpd/sbin/php-cgi
chmod 777 /customer/lighttpd/cgi-bin/sttcgi.cgi
c. 如果是telnet连接的板子,要设库加载路径(如果用debug线,则不需要此步):
export LD_LIBRARY_PATH=/customer/xttlib:$LD_LIBRARY_PATH
d. 启动
/customer/lighttpd/sbin/lighttpd -f /customer/lighttpd/config/lighttpd.conf
3. 测试