Redhat under Apache+php+mysql+imap+ldap+jdk+tomcat Installation _ server

Source: Internet
Author: User
Tags imap ldap mysql in openldap tomcat server
The above software can be downloaded using FTP here:
address:202.104.157.58
Name:hello
Password:hello

One, the following to the/home/hailang/directory as an example:
Tar zxvf apache_1.3.19.tar.gz
Tar zxvf imap-2000c.tar.z
Tar zxvf mod_jserv.so. So
Tar zxvf mysql-3.23.33-pc-linux-gnu-i6862.tar.gz
Tar zxvf openldap-2.0.7.tar.gz
Tar zxvf php-4.0.4pl1.tar.gz
Tar zxvf jakarta-tomcat-3.3-m2.tar.gz
Tar zxvf phpmyadmin_2.1.0.tar.gz
chmod A+x J2sdk-1_3_0_02-linux.bin will be born JSDK1.3 directory
Second, start installation
Installing IMAP
CD imap-2000c
Make SLX
CP Imap/imapd/usr/sbin
CP Ipopd/ipop2d/usr/sbin
CP Ipopd/ipop3d/usr/sbin
Third, the installation of LDAP
Cd.. /openldap-2.0.7
./configure--prefix=/home/ldap
--enable-dns--enable-cldap--ENABLE-LDAPD
--enable-wrappers--enable-phonetic
--ENABLE-PASSWD--enable-shell
Make depend
Make
Make Test
Su root-c @ #make install@#
Four, install MySQL
Cd.. /mysql. x.x
./configure--prefix=/home/mysql
Make
Make install
scripts/mysql_install_db
/home/mysql/bin/safa_mysqld &
/home/mysql/bin/mysqladmin-u Username Password YourPassword
Self Starter:
Cp/home/mysql/share/mysql/mysql.server/etc/rc.d/rc.local/mysql
Run Setup to select MySQL in System one

V. Installation of PHP4
Cd.. /apache.1.3.19
./configure--PREFIX=/HOME/HTTPD
Cd.. /php4.0.4
./configure--with-mysql=/home/mysql
--with-apache=/home/hailang/apache Source
--with-imap=/home/hailang/imap Source
--with-ldap=/home/ldap
--enable-track-vars
Make
Make install
VI. Install Apache
Cd.. /apache.1.3.19
./configure--PREFIX=/HOME/HTTPD
--activate-module=src/modules/php4/libphp4.a
--enable-moudle=so (if not JSP support can not)
Make
Make install
Cp.. /php4.0.4/php.ini-dist/usr/local/lib/php.ini
The/home/httpd/conf/httpd.conf file in the
# and for PHP 4.x, use:
#AddType application/x-httpd-php. php
#AddType Application/x-httpd-php-source. Phps
To
# and for PHP 4.x, use:
#AddType application/x-httpd-php. php. php3
#AddType Application/x-httpd-php-source. Phps
Will:
DirectoryIndex index.html
To
DirectoryIndex index.html index.php index.php3 index.htm
Back up Apache:
/home/httpd/bin/apachectl start.
If a problem occurs, determine if there is a previously installed Apache server.
Running the setup selection system top will httpd the entry. Restart the machine.
Apache Server self-starter:
In the/etc/rc.d/rc.local file, add:
/home/httpd/bin/apachectl start
Vii. Installation of JDK
Under the/home directory:
Ln-s hailang/jdk1.3 JDK
Ln-s Jdk/jre
Set $java_home, $CLASSPATH
Vi/etc/profile
Join:
Java_home=/home/jdk
Export Java_home
Classpath=/home/jdk/lib:/home/jre/lib
Export CLASSPATH
Path= $PATH:/home/jdk/bin:/home/jre/bin
Note that you can't write wrong, don't ask me if you have a problem.
Eight, install Tomcat
Ln-s Hailane/tomcat
Running the Tomcat server
tomcat/bin/tomcat.sh start
Stop it:
tomcat/bin/tomcat.sh stop
Run
If you see the example page of Jsp/servlet and can run its example program, then your Tomcat
The server is OK. Sometimes it can be refreshed more than once. Just try it a few more times.
Nine. and Apache Connection
CP Mod_jserv.so/home/httpd/libexec
In the/home/httpd/conf/httpd.conf file, add:
Include/home/tomcat/conf/jserv/tomcat.conf
The effect is that the Apache server loads the Tomcat module at startup. But it doesn't seem to be good,
Every time I start Tomcat again.
Restart Apache. Then run the Tomcat server.

If you see a JSP. Servlet directory, then you have succeeded.
Lucky

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.