On RedHat 7.2, assume that all installation packages are under / pub, the source package is represented by red, assuming that all operations are performed under the Telnet or SSH text interface.
1, INSTALL J2SDK 1.4
Download J2SDK1.4 Linux RPM version J2SDK-1_4_0-Linux-i386-rpm.bin, then do the following:
CD / PUB CHMOD X J2SDK-1_4_0-Linux-i386-rpm.bin ./j2sdk-1_4_0-linux-i386-rpm.bin rpm -ivh j2sdk-1_4_0-fcs-linux-i386.rpm vi / etc / profile increase The following: java_home = / usr / java / j2sdk1.4.0 export java_home classpath = / usr / java / j2sdk1.4.0 / lib: /usr/java/j2sdk1.4.0/jre/lib export classpath path = $ PATH: $ java_home / BIN: $ java_home / jre / bin export path
Re-login to enable environment variables to take effect
2, INSTALL TOMCAT 4.0
Download Tomcat's Linux Binary version, and mod_webapp.so, then do the following:
TAR ZXVF JAKARTA-TOMCAT-4.0.3.tar.gz Do / write other related configurations in Server.xml below /pub/jakarta-tomcat-4.0.3/conf directory (you can not do it). /pub/jakarta-tomcat-4.0.3/bin/startup.sh Start Tomcat service, and add it to the system's launcher /etc/rc.d/rc.local (with /pub/jakarta-tomcat-4.0 .3 / bin / shutdown.sh stop Tomcat)
3, Install MySQL
GroupAdd MySQL UseRadd -g mysql mysql tar zxvf mysql-3.23.49.tar.gz (OR, Gunzip CD / PUB TAR ZXVF OPENSSL-0.9.6B.Tar.gz CD OpenSSL-0.9.6B ./config make make test make install 5, INSTALL MOD_SSL CD / PUB TAR ZXVF MOD_SSL-2.8.8-1.3.24.Tar.gz Tar ZXVF Apache_1.3.24.24.gz (from www.apache.org) CD MOD_SSL-2.8.8-1.3.24 ./configure - With-apache = .. / apache_1.3.24 cd ../apache_1.3.24 ./configure --prefix = / www install href = "ftp://ftp.cac.washington.edu/imap/"; target = _blank> IMAP Support CD / PUB TAR ZXVF IMAP-2001A.TAR.Z CD IMAP-2001A Make SLX (for Linux) Modify / etc / services registration port, modify /etc/inetd.conf to turn on the service CP C-Client / C-Client. A /usR/local/lib/libc-client.a cp c-client / rfc822.h / usr / local / include cp c-client / mail.h / usr / local / include cp c-client / linkage.h / USR / local / incrude 6, INSTALL CURL Support CD / PUB TAR ZXVF CURL-7.9.6.TAR.GZ CD CURL-7.9.6 ./configure --with-ssl --with-prefix = / usr / local / curl make make test Make Install 7, Install Zlib Supportcd / pub tar zxvf zlib-1.1.3.tar.gz cd zlib-1.1.3 ./configure make make test make install 8, Install Libpng Support CD / PUB TAR ZXVF LIBPNG-1.0.10.tar.gz CD libpng-1.0.10 CP S Cripts / Makefile.Linux Makefile Vi Makefile Modify Zliblib = / usr / local / lib Zlibinc = / usr / local / include Parameter make test make install INSTALL JPEG-6B Support CD / PUB TAR ZXVF JPEGSRC.V6B.TAR.GZ CD JPEG-6B ./configure make make test make install make install-lib 9, Install FreeType 2.0.1 Support CD / PUB TAR ZXVF FREETYPE-2.0.1.tar.gz CD FreeType-2.0.1 Make Setup Make Make Install 10, INSTALL GD Support CD / PUB TAR ZXVF GD-1.8.4.TAR.GZ CD GD-1.8.4 Vi Makefile Modify Cflags =-DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE Libs = -lgd -lpng -lz -ljpeg -lfreetypeType -LM INCLUDIRS = -i. -I / usr / local / include / freetype2 -i / usr / use / x11 -i / usr / x11r6 / include / x11 -i / usr / local / include make make install 11, INSTALL PHP CD / PUB TAR ZXVF PHP-4.2.0.TAR.GZ CD PHP-4.2.0 CFLAGS = -O2 -i / usr / local / ssl / include ./configure --with-apache = .. / apache_1.3.24 - -ENABLE-MEMORY-LIMIT = YES --WITH-Config-file-path = / usr / local / lib --with-imap --enable-ftp --with-mysql = / usr / local / mysql --enable- Sockets --Nable-debug = no --enable-track-vars --with-gd = / usr / local --with-jpeg-dir = / usr / local --with-png-dir = / usr / local - -with-curl = / usr / local / curl --with-zlib --with-TTF --With-java make make install cp php.ini-dist /usr/local/lib/php.ini modification / usr / local /lib/php.ini 12, Install Zend Optimizercd / pub tar zxvf ZendOptimizer-1 [1] .2.0-PHP_4.1.0-Linux_glibc21-i386.tar.gz cd ZendOptimizer-1.2.0-PHP_4.1.0-Linux_glibc21-i386 mkdir / usr / local / Zend MKDIR / USR / local / zend / lib ./install.sh 13, INSTALL ZEND CACHE CD / PUB TAR ZXVF ZENDCACHE-1 [1] .1.0b-php_4.0.5-linux_glibc2.1-i386.tar.gz CD Zendcache-1.1.0B-PHP_4.0.5-Linux_glibc2.1-i386 CP Data / Zendcache.so / usr / local / Zend / lib (cp zend_cache.dat / usr / local / Zend) // to register license Add the following lines to your php.ini file; do not add any extra spaces or tabs; must after Zend Optimizer configuration : Zend_Cache.Use_cwd = 1 zend_cache.memory_consumption = 16; 16MB Zend_Cache.Validate_timestamps = 1 ZEND_EXTENSION = "/ usr / local / zend / lib / zendcache.so" 14, INSTALL ZEND ACCELERATOR CD / PUB TAR XVF ZENDACCELERATOR-2.0.0-PHP_4.0.5-Linux_Glibc21-i386.tar CD Zendaccelerator-2.0.0-PHP_4.0.5-Linux_Glibc21-I386 ./install.sh 15, Install Apache Cd ../apache_1.3.24 SSL_BASE = / usr / local / ssl ./configure --prefix = / www --enable-module = SSL --Nable-module = so --activate-module = src / modules / php4 / libphp4.a --enable-rule = SSL_SDBM --enable-module = rewrite make make certificate make install modified /www/conf/httpd.conf, Options Indexes FollowSymLinks MultiViews -> Options FollowSymLinks MultiViews DirectoryIndex index.html -> DirectoryIndex index. html index.php3 index.php increase LoadModule webapp_module libexec / mod_webapp.so WebAppConnection warpConnection warp localhost: 8008 WebAppDeploy examples warpConnection / examples / vi /www/conf/mime.types increased application / x-httpd-php mod_webapp php php3 download copies .so to / www / libexec boot Apache / WWW / BIN / APACHECTL Startssl vi /etc/rc.d/init.d/httpd (optional) #! / bin / sh. /etc/rc.d/init.d / functions case "$ 1" in start) echo -n "starting httpd with ssl:" / www / bin / apachectl startssl ;; stop) echo -n "shutting down httpd:" / www / bin / apachectl stop ;; restart) Echo - N "restarting httpd:" / www / bin / apachectl restart ;; status) echo -n "show httpd status:" / www / bin / apachectl status ;; *) echo "usage: $ 0 {start | stop | restart | status } "EXIT 1 ESAC Exit 0 ln -s /etc/rc.d/init.d/httpd /etc/rc.d/rc3.d/s99httpd (boot automatic run) 16, final test