Use ASP on Linux

Source: Internet
Author: User
Tags gz file

Since the introduction of ASP technology in ms, the powerful functions of ASP in creating dynamic interactive sites and theirCodeThe simplicity of Writing makes ASP widely used on many Internet/Intranet/exists websites. Especially for website application systems involving database operations, ASP technology is preferred. However, ASP can only work under MS's operating system platform and server software, that is, it can only be used in WindowsNT + IIS series or Windows9x + PWS series, therefore, the limitations of ASP applications are determined. According to relevant information, there are about 15% websites using Windows operating system platforms and server software, that is to say, nearly 85% of websites cannot adopt ASP technology. In fact, many websites use Unix, Linux, soris, Netware, and other operating systems and corresponding servers. This shows that ASP technology is indeed very limited in application.

Recently, a software company named "halcycon" not only saw the advantages and limitations of ASP application systems, but also put forward the slogan "ASP anytime, anywhere, and developed an ASP script interpretation engine software called IASP (instant ASP), enabling ASP not only to be used on websites that use Windows operating system platforms and server software, it can also be used on websites that use other operating systems such as UNIX, Linux, soris, Netware, and corresponding servers. IASP fully inherits the advantages of ASP and is fully compatible with ASP. Therefore, ASP application systems can be directly transplanted to IASP environments on non-Windows operating systems, the ASP application system is truly a cross-platform Internet, Intranet, or excompute application system.

Compared with ASP, IASP not only has advantages in supporting the operating system platform, but also has obvious advantages in using third-party components to build an ASP application system.
IASP not only supports popular ActiveX components, but also supports the popular Enterprise Java Beans components and CORBA compatible components. In this way, ASP application systems are more powerful and widely used. In addition to Ms visual development tools and Borland development tools, you can also use Java development tools to give component developers more choices so that they can develop relevant components more easily.

IASP has two versions: Windows operating system platform and server software, and UNIX, Linux, soris, NetWare operating system and corresponding server software. The current version of IASP is 1.0. Its development version can be downloaded free of charge on the software company website of halcycon. Its functions are basically the same as those of the official version, the difference is that the development version only supports two concurrent connections, so it can only be used for ASP learning and development or in a relatively small Intranet LAN system, network developers who want to use ASP in special UNIX and Linux local networks may wish to download a trial. The file size is more than 6 MB.

The following are some of my experiences in installing and configuring IASP software when setting up the IASP development environment. I hope to give a reference to the new users so as to avoid detours and do more meaningful work.

I. IASP software environment requirements

IASP software uses JavaProgramJdk1.1.x or a later version is required. Therefore, jdk1.1.x or a later version must be installed on the server system. On the Linux platform, JDK 1.1.x can be.

Ii. System Platform and server software supported by the IASP Installer

IASP software is developed in Java programming language and runs on all Java platforms in principle.
IASP can automatically configure Server software so that the IASP interpretation engine can be used to interpret ASP pages. IASP can use the IASP servlet interface developed by halcycon to connect and communicate with the server, you can also use other servlet interfaces to connect to and communicate with the server. The following is a list of systems and server software that halcycon's engineers and technicians have confirmed to support.

(1) Sun Solaris System Platform
1. Apache server software
IASP can automatically configure Apache server software versions 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, and 1.3.6 to use IASP interpretation engine to explain ASP pages; connect to and communicate with IASP through the servlet interface.
2. Netscape fast track (FT) and Enterprise Server (EP) server software
IASP can automatically configure ft3.0.x, ep3.5.x, and ep3.6.x so that the IASP interpretation engine can be used to explain ASP pages. It can connect to and communicate with IASP through the servlet interface in IASP.
3. Sun Web server2.1 server software
IASP can automatically configure the Sun Web server2.1 server software so that it can use the IASP interpretation engine to explain the ASP page;
Connect and communicate with the server software through the servlet interface.
4. Zeus server software
IASP can automatically configure the Zeus server software to use the IASP interpretation engine to interpret the ASP page.
Connect and communicate with the Apache JServ servlet interface.

(2) Sun Solaris Intel System Platform
1. Apache server software
IASP can be used to customize Apache server software versions 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, and 1.3.6.
Dynamic configuration allows you to use the IASP interpretation engine to interpret the ASP page, and connect and communicate with it through the servlet interface in IASP.
2. Sun Web server2.1 server software
IASP can automatically configure the Sun Web server2.1 server software so that it can use the IASP interpretation engine to explain the ASP page;
Connect and communicate with the server software through the servlet interface.
3. Zeus server software
IASP can automatically configure the Zeus server software to use the IASP interpretation engine to interpret the ASP page.
Connect and communicate with the Apache JServ servlet interface.

(3) Novell Netware System Platform
Netscape fast track (FT) and Enterprise Server (EP) server software
IASP can automatically configure ft3.0.x and ep3.5.x to use the IASP interpretation engine to explain the ASP page.
Connect and communicate with the servlet gateway interface.

(4) SCO unixware System Platform
1. Apache server software
IASP can be used to customize Apache server software versions 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, and 1.3.6.
Dynamic configuration allows you to use the IASP interpretation engine to interpret the ASP page, and connect and communicate with it through the servlet interface in IASP.
2. Netscape fast track (FT) and Enterprise Server (EP) server software
IASP can automatically configure ft2.0.x to use the IASP interpretation engine to interpret the ASP page, and use the servlet in IASP
Interface connection and communication.

(5) Linux Intel System Platform
1. Apache server software
IASP can be used to customize Apache server software versions 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, and 1.3.6.
Dynamic configuration allows you to use the IASP interpretation engine to interpret the ASP page, and connect and communicate with it through the servlet interface in IASP.
2. Zeus server software
IASP can automatically configure the Zeus server software to use the IASP interpretation engine to interpret the ASP page.
Connect and communicate with the Apache JServ servlet interface.

(6) Windows9x/NT System Platform
1. Apache server software
IASP can be used to customize Apache server software versions 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.3.4, and 1.3.6.
Dynamic configuration allows you to use the IASP interpretation engine to interpret the ASP page, and connect and communicate with it through the servlet interface in IASP.
2. Netscape fast track (FT) and Enterprise Server (EP) server software
IASP can automatically configure ft3.0.x, ep3.0.x, and ep3.6.x so that the IASP interpretation engine can be used to explain the ASP page; and
Connect to and communicate with IASP through the servlet interface.
3. Internet Information Server Software
IASP can automatically configure the Internet Information Server software to use the IASP interpretation engine.
ASP page, and connect and communicate with it through the servlet interface in IASP.
4. Lotus Domino Server Software
IASP can automatically configure the Lotus Domino Server software to use the IASP interpretation engine to explain the ASP page.
Connection and communication between servlet interfaces of the Lotus Domino server software.
5. Java Web Server Software
IASP can automatically configure the Java Web server software to use the IASP interpretation engine to explain the ASP page.
Connect and communicate with the servlet interface of the Java Web server software.

(7) HPUX System Platform
Zeus server software
IASP can automatically configure the Zeus server software to use the IASP interpretation engine to interpret the ASP page.
Connect and communicate with the Apache JServ servlet interface.

(8) SGI System Platform
Zeus server software
IASP can automatically configure the Zeus server software to use the IASP interpretation engine to interpret the ASP page.
Connect and communicate with the Apache JServ servlet interface.

3. Use IASP to build an ASP Application System Environment

Assume that the system has installed and configured the TCP/IP and other network protocols.
The following uses RedHat Linux 5.1 and Apache 1.3.3 server software as an example to describe how to install and configure IASP to create an ASP development and application environment.

(1) install Apache 1.3.3 server software
1. Uninstall Apache 1.2.6 server software
If you are using the Apache server software that comes with RedHat Linux 5.1, the version number is 1.2.6-4 (you can use the httpd-V command to view the version number of the Apache server software ), it is not within the range of servers supported by the IASP automatic configuration program. Therefore, you need to uninstall it to reinstall Apache 1.3.x server software.
In package management of control panel, open daemons in network, select apache1.2.6-4, and click Uninstall) you can detach it.
2. install Apache 1.3.3 server software
If you do not have the Apache 1.3.x server software, download it at http://apache.nextpath.com/dist/apache_1.3.6.tar.gz.
I have an xteam Linux 1.0 cd, which has the Apache 1.3.3 server software release version, located in the CD \ xteam \ pack directory, the file name is called apache-1.3.3-1.i386.rpm. Use commands
Rpm-I/mnt/CDROM/xteam/Pack/apache-1.3.3-1.i386.rpm to complete the installation.

3. Start Apache 1.3.3 server software
You can run the httpd command to start Apache 1.3.3 server software. After Apache 1.3.3 server software is started, you can use the Netscape Communicator browser to access the WWW Service provided by Apache 1.3.3 server software through http: // yourcomputername, such as http: // localhost. The webpage is index.html, which is usually located in the "/home/httpd/html" Directory (this directory is the Apache Web Publishing directory, which is equivalent to c: \ Inetpub \ wwwroot in IIS or PWS ), the topic of the page is "It worked", indicating that Apache is working properly and IASP configuration can be performed.

(2) install jdk1.1.x
IASP depends on JDK 1.1.x or later. JDK must be installed in the system.
1. determine the type of the C Runtime Library
Liunx/Unix JDK generally has libc5 and glibc versions to adapt to C Runtime Library versions in different liunx/Unix systems. Run the "ls-L/lib/libc. So. *" command to list the C Runtime library files. If the character "*" is "5"
Indicates that the C Runtime Library type is libc5, and the "6" indicates that the C Runtime Library type is glibc. The C running library type of the RedHat linux5.1 used by the author is glibc.
2. Install jdk1.1.x
I downloaded the glibc.pdf of JDK 1.1.7at http://xfer.nitric.com/pub/java-linux/and renamed it.
Jdk117.gz. Copy jdk117.gz to the/usr/local directory, enter the/usr/local directory, and use "Tar-xvzf
Run the "jdk117.gz" command to decompress the file to install jdk1.1.7. The installation directory is/usr/local/jdk117_v1a.

(3) install IASP.
the author copied the iasp_lnx.gz file to/usr/local.
.
run the "Tar-xvzf iasp_lnx.gz.pdf" command to decompress the file. You can unzip install.shand iasp.tar files. Go to the
/usr/local directory, run./install. Sh, and install IASP as instructed by the installation program.
during installation, you must specify the JDK bin directory (/usr/local/jdk117_v1a/bin) and IASP installation directory (/usr/local ). After the installation is complete, you will choose whether to start configuring the Web server. The configuration process is discussed below. Select
select "N" to end the installation. In this case, IASP is installed in the/usr/local/IASP directory. There are five files, which are worth noting.
connector. SH: Start IASP Automatic Configuration Wizard start-server.sh: Start IASP proxy server
stop-server.sh: Close IASP Proxy Server start-admin.sh: Start IASP remote management server
stop-admin.sh: disable the IASP remote management server

(4) Configure IASP
1. Disable the Web Server
Before you configure IASP, disable the web server software. You can disable Apache 1.3.3 server software in any way.
2. Configure IASP
The IASP Configuration Wizard can automatically configure Apache server software, Netscape Enterprise Server software, and internetinformation Service server software, while Zeus and Sun web server software do not need to be configured.
Run./connector. Sh under/usr/local/IASP to start the IASP Configuration Wizard. Select "Y" to start configuration;
Select the server software and version (8: Apache 1.3.3) and Apache configuration file httpd. the directory where the conf file is located (/etc/httpd/conf). The other files can be kept unchanged (press the Enter key to use the default setting ). When you are prompted whether to configure another server, select "N" to complete the configuration.

(5) test IASP
1. Start the IASP Server
The IASP Server is a connector proxy server software used to communicate with the server software.
Go to xwindows, open an nxterm window, and run./start-server.sh in the directory/usr/local/IASP,
Start the IASP connector proxy server program.
2. Test IASP
Start Apache 1.3.3 server software. Copy an ASP page file to the "/home/httpd/html" directory of the Apache page publishing directory and access it with the Netscape Communicator browser. For example, you can use "http: // localhost/test. ASP "Access ASP file test. ASP. Its content is as follows:
<HTML>

<Head>
<Title> test IASP </title>
</Head>

<Body>
<%
Response. Write"
<H1> Congradulations!
Instant Asp has worked for you! </H1>"
%>
</Body>
</Html>
Now, Apache 1.3.3 server software can use the IASP interpretation engine to explain and execute the ASP page. Now it's time for you to be smart.

In addition, the development and development of the first Chinese version of Linux-xteam linux1.0-shaped tianhai company announced that they are about to release the Linux version of the ADO engine, the ASP application system developed on Windows9x/NT can be directly run on the Linux platform, interested network application developers can go to the site of the company (http://www.xteam.com.cn) to understand the status of our products, we are also cheering for domestic software development companies.

Related Article

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.