Install dynamic asp + mssql forum on unix and unix-like systems

Source: Internet
Author: User
Install the dynamic asp + mssql Forum-Linux Enterprise Application-Linux server application information on unix and unix-like systems. For details, see the following. The unix system is currently one of the most stable and popular servers, and asp is also a popular web programming language.
However, unix is not compatible with asp. How to port the asp program to unix without any major changes is a problem that we will discuss now.
Software required first;
As follows:

1. If apache 2.45 does not exist, download it from www.apache.org.
2. Instant ASP Developer Edition 2.1.1 asp support for unix
: Http://www.leftworld.net/download/show.php? Id = 159
3. mssql DRIVER used by MS SQL DRIVER for jdbc iasp
: Http://www.leftworld.net/download/show.php? Id = 161
4, jdk, sun java download http://java.sun.com
5. There is also the source program of the ms SQL forum on the Internet. You can find it on the Internet.

-------------------------------------------------------------------
Preparation for windows:
First, install an mssql 2000 Server. create a database used by the dynamic network forum, such as bbs. install the Forum database according to the installation requirements of the mobile network mssql forum.

And then transfer to unix or other unix-like systems. download the software required above.

Apache installation.

Jdk installation is intelligent, so you don't have to talk about it.

The Installation Process for ASP Developer Edition 2.1.1 is as follows:

Download the software and decompress it./install. sh

Enter the directory where the sdk is located. My directory is/usr/java/j2re1.4.2/bin.
Enter the installation directory
I chose/usr/iasp.
Follow the prompts to complete the installation.
The process is as follows:

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

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 # directory of apache httpd. conf

Setting for "Proxy host IP address" <127.0.0.1> # Press ENTER
Setting for "Proxy port" <9098> # Press ENTER
Setting for "Server manager port" <9095> # Press ENTER

"Httpd. conf" configuration completed.

Wocould 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/

Because apache is 2.45, The automatically edited httpd. conf will cause apache to fail to run.
Solution:

Enter the directory where the source of ipas is located
/Usr/iasp/iasp21-bin/apache/source/2.0

Run the program/usr/local/apache2/bin/apxs-I-c *. c
This command is in your apache bin directory.

After running, he will re-compile the mod_iasp.so module and automatically copy it to the modles directory of apache. If the module is not automatically copied, manually copy it to the modles directory.

Next, modify httpd. conf of apache.
Find this line
LoadModule iasp_module "/usr/iasp/iasp21./bin/apache/linux/2.0/mod_iasp.so"

Change it
LoadModule iasp_module modules/mod_iasp.so
Disk Storage

----------------------------------------------------
Then install the jdbc driver for ms-SQL.

From http://www.leftworld.net/download/show.php? Download id = 161

Use gunzip to decompress and run./install. ksh to install it.

After installation, the server is basically created

Last step.

Run httpd-k restart to restart apache

Then go to the iasp directory
Cd/iasp/iasp21.
Run the./start-server.sh to start the iasp server.

If there is no accident, everything is OK.

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

Install dynamic network forum now

Copy the original program and modify the mssql driver in conn. asp.

As follows:
The original file is as follows:




Set connStr = "Provider = SQLOLEDB.1; Persist Security Info = True;
Data Source = 10.0.0.5; Initial Catalog = bbs; User ID = sa; Password = 123"
This line is changed
ConnStr = "com. Microsoft. jdbc. sqlserver. SQLServerDriver;
Url = jdbc: Microsoft: sqlserver: // 10.0.0.5: 1433; databasename = bbs; user = sa; password = 123"

Then save the disk.

Note: If the system prompts that the file cannot be found, the file name must be case-insensitive. Make sure to modify the file because the unix system is case sensitive.

OK
Here, the installation of the Forum is complete.

Open the local address in mozilla.

Wow!

Haha

Complete!

My home: http://www.leftworld.net

Related webpage: http://www.leftworld.net/shequ/topic.cgi? Forum = 17 & topic = 66 & show = 0
Http://www.leftworld.net/shequ/topic.cgi? Forum = 17 & topic = 64 & show = 0
And so on.

Note: I am at a limited level and may encounter errors. Please kindly advise!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.