• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

[原创]在solaris上安装雷傲LB5000XP论坛安装手册

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 21次 | 进入软件测试论坛讨论

领测软件测试网
在solaris上安装雷傲LB5000XP论坛
主机:ULTRA10
系统:Solaris8 02/02 + apache-1.3.9-sol8-sparc-local + Perl_5.005_03(系统自带)
Made by Arthur@arthurlab 
转载请注明出处http://www.chinaunix.net

首先先从雷傲的论坛下载最新版本的论坛,也就是我们的LB5000XP、apache.

# uname -a
SunOS arthur.C 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10
#
# which perl
/usr/bin/perl

# perl -v

This is perl, version 5.005_03 built for sun4-solaris

Copyright 1987-1999, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5.0 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using `man perl' or `perldoc perl'.  If you have access to the
Internet, point your browser at http://www.perl.com/, the Perl Home Page.

开始安装apache
# pkgadd -d apache-1.3.9-sol8-sparc-local

The following packages are available:
  1  SMCapache     apache
                   (sparc) 1.3.9

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: 

安装过程略........

默认的安装路径应该是/usr/local/apache
如果你选择自己编译apache,./configure --prefix=/usr/local/apache --with-perl=/usr/bin/perl --enable-

module=so

# vi /usr/local/apache/conf/httpd.conf
ServerType standalone
Port 80
ServerAdmin arthur@Arthur.C
ServerName solaris.Arthur.C

将LB5000XP解压缩
#unzip LB5000XP.zip
把里面的cgi-bin目录里的东西cp到apache的cgi-bin里
chmod 777 install.cgi //这点非常重要哦

# /usr/local/apache/bin/httpd start
# ps -ef | grep httpd
  nobody   670   667  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start
  nobody   672   667  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start
    root   673   653  0 17:41:01 pts/6    0:00 grep httpd
  nobody   669   667  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start
    root   667     1  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start
  nobody   668   667  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start
  nobody   671   667  0 17:40:55 ?        0:00 /usr/local/apache/bin/httpd start


在浏览器里输入http://192.168.0.10/cgi-bin/install.cgi
出现以下报警

500 Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, arthur@Arthur.C and inform them of the time the error occurred, 

and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.



--------------------------------------------------------------------------------

Apache/1.3.9 Server at solaris.Arthur.C Port 80

系统提示去看错误日志
# more /usr/local/apache/logs/error_log
[Wed Dec 10 17:41:20 2003] [error] (2)No such file or directory: exec of /usr/lo
cal/apache/cgi-bin/install.cgi failed
[Wed Dec 10 17:41:20 2003] [error] [client 192.168.0.131] Premature end of scrip
t headers: /usr/local/apache/cgi-bin/install.cgi

500的错误应该是系统没有找到perl或者perl不可以用,但是我的perl是好的啊,没问题啊,究竟在哪里调用perl呢。我们

打开install.cgi来看看。

#!/usr/bin/perl^M 

#############################################################
#  LeoBoard ver.5000 / LB5000 / 雷傲超级论坛 ver.5000
#
#  版权所有: 雷傲工作室(原蓝宝石软件工作室)
#
#  制作人  : 山鹰糊 (Shining Hu)
#            花无缺 (Ifairy Han)
#           
#  主页地址: http://www.CGIer.com/      CGI 编程者之家
#            http://www.LeoBoard.com/   雷傲论坛支持主页
#            http://www.leoBBS.com/     本论坛直通车
#            http://mail@17do.com/      大家一起邮
#            
#  *************************
#  LB论坛推荐虚拟主机服务商:
#  雷傲科技:  http://www.leoboard.com.cn
#  全面支持LB所有功能,拥有2年提供LB论坛空间的以及500多个LB用户的经验,可以做的更

#  **************************
#

发现问题了吗?原来是^M 在捣鬼,砍。马上杀掉,哼。。。。。
#sed 's/^M//' install.cgi >install.cgii
#mv install.cgii install.cgi 
#!/usr/bin/perl 才对嘛。。。。。

再刷新一看

LB5000 XP 安装向导
程序编制:山鹰糊 参与制作:花无缺
版权所有:CGI 编程者之家 
--------------------------------------------------------------------------------

欢迎使用 LB5000 XP 安装向导! 

第一步: 在递交表单前.......

开始设置一下目录权限,东东太多写个脚本吧!
# more arthur.sh
#!/bin/sh
chmod -R 777 /usr/local/apache/cgi-bin/data
chmod 777 /usr/local/apache/cgi-bin/help
chmod 777 /usr/local/apache/cgi-bin/messages
chmod 777 /usr/local/apache/cgi-bin/members
chmod 777 /usr/local/apache/non-cgi/usr
# ./arthur.sh
#
我以为大功告成了,却发现他说应该用ASCII传输,但是我们晕啊,如果一个文件一个文件的改怎么成呢。

既然它让ASCii传输,那我干脆弄个FTP得了,刚好前2天写的东东,环境还没还的及撤,派上用场了。

把解开的东东传上去了

http://192.168.0.10/cgi-bin/install.cgi
安装顺利,见到了期盼很久的界面

错误: 论坛还没建立 
关于论坛还没建立错误的详细原因: 
请先在管理区建立分论坛!或者分类信息完全丢失,请坛主到管理区重建论坛主界面! 
您是否需要查看帮助文件? 
产生论坛还没建立错误的可能原因: 
密码错误
用户名错误
您不是注册用户
 
按顺序完成管理的设置
删除install.cgi

大功告成拉,睡觉哦!

 xzh2002 回复于:2003-12-10 23:16:10
太感谢了,我正要装这个呢!

 C.Arthur 回复于:2003-12-10 23:20:48
呵呵,不客气的,今天有个朋友说装这个出现了问题,我就赶了8个小时搞定了

 mwdba 回复于:2003-12-11 08:32:58
好文,顶!

 C.Arthur 回复于:2003-12-11 09:17:52
非常感谢

 metor78 回复于:2003-12-11 09:26:04
偶像!

 C.Arthur 回复于:2003-12-11 09:29:29
呵呵,为了弄这个昨天11点多才完,估计没有人装过呢吧,呵呵

 metor78 回复于:2003-12-11 09:31:48
偶像辛苦了,马杀鸡一下慰劳!最近忙什么呢?怎么也不搭理我了!5555555555555

 risepc 回复于:2003-12-11 09:36:23
兄弟,真是辛苦你啦,!!!!

 risepc 回复于:2003-12-11 09:39:00
对于安装这个的朋友一定有帮助。开始我的LX5000不行,但我安装了perl5.8后系统又好了,不知道是LX5000对Perl有要求还是我的系统有问题,大家可以试一下

 C.Arthur 回复于:2003-12-11 09:43:32
[quote:829379ab22="metor78"]偶像辛苦了,马杀鸡一下慰劳!最近忙什么呢?怎么也不搭理我了!5555555555555[/quote:829379ab22]
昨天用8个小时弄这个,最近MSN上人太多,郁闷坏了

 C.Arthur 回复于:2003-12-11 09:44:15
[quote:2a1bade4a8="risepc"]对于安装这个的朋友一定有帮助。开始我的LX5000不行,但我安装了perl5.8后系统又好了,不知道是LX5000对Perl有要求还是我的系统有问题,大家可以试一下[/quote:2a1bade4a8]
perl 5.8我还没实验,但是根据我的现象应该和那个没关系,应该是^M 在搞鬼

 forliving 回复于:2003-12-11 10:17:44
将来也许能用得着,谢了!

 risepc 回复于:2003-12-11 16:42:26
新问题,安装搞定后,使用安装时设置的管理员,怎么也登录不了管理页面~~~~~~~~~~

 C.Arthur 回复于:2003-12-11 16:47:48
晕,admincenter.cgi?

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网