Linux JSP + tomcat5.0 + php4.38 + mysql4.020 sum (original)

Source: Internet
Author: User
Software Version Used
Apr-1.1.0.tar.gz
Apr-util-1.0.1.tar.gz
Httpd-2.0.53.tar.gz
Jakarta-tomcat-5.5.7.tar.gz
Jakarta-tomcat-connectors-jk2-2.0.4-src.tar.gz
Jakarta-tomcat-connectors-jk2-src-current.tar.gz
Jdk-1_5_0_01-linux-i586.bin
Libtool-1.5.8.tar.gz
Mysql-4.0.20.tar.gz
Mysql-connector-java-3.1.6.tar.gz
Php-4.3.8.tar.tar
Install j2sdk
Tar-zxvf j2sdk
CP-r j2sdk/usr/local/
Install Apache
Tar-zxvf apache2
./Configure -- prefix =/usr/local/Apache -- enable-shared = max -- enable-module = rewrite -- enable-module = so
Install MySQL
./Configure -- prefix =/usr/local/MySQL -- Exec-Prefix =/usr/lcoal/MySQL -- With-extra-charsets = gb2312
./Mysql_install_db
./Mysqld_safe -- user = root &
Install PHP
. /Configure -- with-apxs2 =/usr/local/apache2/bin/apxs -- disable-Debug -- enable-FTP -- enable-inline-optimization -- enable-bcmath -- enable-safe-mode -- enable-track-vars -- enable-trans-Sid -- enable-XML -- With-mysql -- With-XML-with-FreeType-Dir =/usr -- With-PNG-Dir =/ USR -- With-Gd -- enable-Gd-native-TTF -- With-JPEG-Dir =/usr -- With-PNG -- With-zlib-Dir =/usr -- enable-mbstring = Cn
CP php-4.3.8/PHP. ini-Dist/usr/local/lib/PHP. ini
VI httpd. conf
Loadmodule php4_module modules/libphp4.so
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP-source. PHPs
Install Tomcat
Tar-zxvf Tomcat
CP-r tomcat/usr/local/
ENV (environment variable settings)
VI/etc/bashrc
Java_home =/usr/local/j2sdk *
Export java_home
Classpath =/usr/local/j2sdk1.5/lib:/usr/local/j2sdk1.5/lib/DT. jar:/usr/local/j2sdk1.5/lib/tools. jar:/usr/local/j2sdk1.5/JRE/lib:/usr/local/j2sdk1.5/lib/mysql_comp.jar
Export classpath
Path = $ path:/usr/local/j2sdk1.4/bin:/usr/local/j2sdk1.4/bin
Tomcat_home =/usr/local/tomcat
Export tomcat_home
Mysql_jdbc
Tar zxvf mysqljdbc
CD mysqljdbc
CP MySQL * bin. Jar/usr/local/tomcat/common/lib/

Tomcat + apache2 = mod_jk
Tar zxvf tomcat-connectors-JK
CD tomcat-connector-JK/native2
./Bucket Conf. Sh
./Configure -- with-apxs2 =/Server/bin/apxs -- With-Java-home =/usr/local/j2sdk

If error
Need to check for Perl first, apxs depends on it...
Checking for Perl.../usr/bin/perl
Configure: Error: can't locate libapr

Tar zxvf apr-1.1.0.tar.gz
CD apr-1.1.0
./Configure
Make
Make install
Tar zxvf apr-util-1.0.1.tar.gz
CD apr-util-1.0.0
./Configure -- With-Apr = ../apr-1.1.0
Make
Make install
CD/usr/local/apache2/lib/
Ln-S/usr/local/APR/lib/libapr-1.so.0.0.0 libapr-1.so
Ln-S/usr/local/APR/lib/libapr-1.so.0.0.0 libapr-1.so.0
Ln-S/usr/local/APR/lib/libaprutil-1.so.0.0.0 libaprutil-1.so
Ln-S/usr/local/APR/lib/libaprutil-1.so.0.0.0 libaprutil-1.so.0
Else
Make jk2-build-apxs

If error
Tar zxvf libtool-1.5.6.tar.gz
CD libtool-1.5.6
Make
Make install
Ln-S/usr/local/bin/libtool/usr/local/apache2/build/libtool

CD server/apache2
Make-F makefile. apxs install

CD/usr/local/apache2/Conf
VI workers2.properties

VI httpd. conf
Loadmodule jk2_module modules/mod_jk2.so

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.