当前位置:操作系统 > Unix/Linux >>

Unix类Unix系统上装动网ASP+MSSQL论坛

unix系统是目前最稳定最流行的服务器之一,asp也是目前比较流行的web编程语言.但是unix不兼容asp,如何将asp程序不需要多大的改动就能移植到unix下运行,是我们现在要讨论的问题.

  首先需要的软件

  如下:

  1,apache 2.45 如果没有的话就去www.apache.org下载

  2,Instant ASP Developer Edition 2.1.1 unix下支持asp的东西

  下载地址:http://www.leftworld.net/download/show.php?id=159

  3,ms sql DRIVER for jdbc iasp使用的mssql驱动

  下载地址:http://www.leftworld.net/download/show.php?id=161

  4,jdk,sun的java下载http://java.sun.com

  5,还有就是动网mssql版的论坛源程序.网上随便找吧.

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

  windows系统下的准备工作

  首先,安装一个mssql 2000的服务器,不要在本机上.然后建立一个动网论坛所使用的数据库,例如库名叫bbs,等等.并按照动网mssql版论坛的安装要求,进行论坛的数据库安装.

  然后转入unix或者其它类unix系统.下载如上所需的软件.

  apache的安装.

  jdk的安装都是智能话的,就不必说了

  ASP Developer Edition 2.1.1的安装过程如下:

  下载软件解压出来,运行./install.sh

  然后输入sdk的所在 目录我的是/usr/java/j2re1.4.2/bin

  然后输入安装目录

  我选择的 是 /usr/iasp

  按着提示安装完毕。

  过程如下:

  *************************************************************************

  Welcome to Instant ASP connection wizard. This wizard will

  allow you to configure Instant ASP for one or more web servers.

  Copyright 1998-2001 Halcyon Software, Inc.

  *************************************************************************

  Do you want to continue (Y/N)? y

  Please choose a servlet interface

  [1] Instant ASP native servlet interface

  [2] Apache JServ

  Enter a number [1/2]: 1

  ***** Please select a web server *****

  [1] Netscape

  [2] Apache

  [3] Xitami

  [0] Quit

  Enter a number [0-4]: 2

  ***** Please choice Apache version *****

  [1] Apache 1.3.0

  [2] Apache 1.3.1

  [3] Apache 1.3.2

  [4] Apache 1.3.3

  [5] Apache 1.3.4

  [6] Apache 1.3.6

  [7] Apache 1.3.9

  [8] Apache 1.3.11

  [9] Apache 1.3.12

  [10] Apache 1.3.14

  [11] Apache 1.3.2X

  [12] Apache 2.X

  [0] Quit

  Note: If you are using Apache Web Server higher version or have additional

  modules, such as Front Page Server Extensions, Raven SSL, or you are

  using Apache Strong Hold Server. Please configure iASP according

  to /bin/apache/source/readme.txt

  Enter a number [0-10]: 12

  Please enter the path to the Apache /conf directory >/usr/local/apache2/conf #apache的httpd.conf所在目录

  setting for "Proxy host IP address" <127.0.0.1> #直接回车

  setting for "Proxy port" <9098> #直接回车

  setting for "Server manager port" <9095> #直接回车

  "httpd.conf"configuration completed.

  Would you like to configure another web server (Y/N)?n

  Configuration successful.

  You can access the Instant ASP documentation and samples

  from the virtual directory /iasp/

  因为我的apache是2.45所以他自动编辑的httpd.conf会导致apache不能运行。

  解决方法:

  进入ipas的source所在目录

  /usr/iasp/iasp21/bin/apache/source/2.0

  运行程序/usr/local/apache2/bin/apxs -i -c *.c

  这个命令是在你的apache的bin目录里

  运行完毕后,他会重新编译mod_iasp.so模块,并将其自动拷贝到apache的modles目录里,如果没有自动拷贝,请手动拷贝到modles目录里

  接下来修改apache的httpd.conf

  找到这一行

  LoadModule iasp_module "/usr/iasp/iasp21/bin/apache/linux/2.0/mod_iasp.so"

  将其改为

  LoadModule iasp_module modules/mod_iasp.so

  存盘

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

  然后安装,ms-sql的jdbc驱动

  从http://www.leftworld.net/download/show.php?id=161下载下来

  用gunzip解压缩,运行./install.ksh,进行安装.

  安装完毕后,服务器基本建立完成

  最后一步.

  运行 httpd -k restart 重启apache

  然后在进入iasp的目录

  cd /iasp/iasp21

  运行./start-server.sh 启动iasp服务器.

  如果没有意外的 话,一切ok

  现在安装动网论坛

  将原程序拷贝过来,然后修改一下conn.asp里的mssql驱动

  如下

  原文件如下:

  将connStr="Provider=SQLOLEDB.1; Persist Security Info=True; Data Source=10.0.0.5; Initial Catalog=bbs; User ID=sa; Password=123"

  这一行改为

  connStr="com.Microsoft.jdbc.sqlserver.SQLServerDriver;url=jdbc:Microsoft:sqlserver://10.0.0.5:1433;databasename=bbs;user=sa;password=123"

  然后存盘.

  还有注意:如果提示什么文件找不到,那肯定是文件名大小写不匹配,注意修改,因为unix系统对大小写敏感.

  

上一个:挖掘早期的FreeBSD中文化探索分析
下一个:Unix下用MRTG监测网络设备流量攻略

更多Unix/Linux疑问解答:
路由原理介绍
子网掩码快速算法
改变网络接口的速度和协商方式的工具miitool和ethtool
Loopback口的作用汇总
OSPF的童话
增强的ACL修改功能
三层交换机和路由器的比较
用三层交换机组建校园网
4到7层交换识别内容
SPARC中如何安装Linux系统(2)
SPARC中如何安装Linux系统(1)
用Swatch做Linux日志分析
实战多种Linux操作系统共存
浅析Linux系统帐户的管理和审计
Linux2.6对新型CPU的支持(2)
电脑通通透
玩转网络
IE/注册表
DOS/Win9x
Windows Xp
Windows 2000
Windows 2003
Windows Vista
Windows 2008
Windows7
Unix/Linux
苹果机Mac OS
windows8
安卓/Android
Windows10
如果你遇到操作系统难题:
请访问www.zzzyk.com 试试
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,