Install apache + php + mysql + imap + ldap + jdk + tomcat in redhat

Source: Internet
Author: User

The above software can be downloaded through FTP:

Address: 202.104.157.58

Name: hello

Password: hello

1. The following uses 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

The chmod a + X j2sdk-1_3_0_02-linux.bin will generate the JSDK1.3 directory

Ii. Start Installation

Install IMAP

Cd imap-2000c

Make slx

Cp imap/imapd/usr/sbin

Cp ipopd/ipop2d/usr/sbin

Cp ipopd/ipop3d/usr/sbin

3. Install 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 @#

4. 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

Auto Start:

Cp/home/mysql/share/mysql. server/etc/rc. d/rc. local/mysql

Run setup. select mysql from the system.

5. Install 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 code

-- With-imap =/home/hailang/imap source code

-- With-ldap =/home/ldap

-- Enable-track-vars

Make

Make install

6. install apache

Cd ../apache.1.3.19

./Configure -- prefix =/home/httpd

-- Activate-module = src/modules/php4/libphp4.a

-- Enable-moudle = so (If JSP is not supported, do not)

Make

Make install

Cp ../php4.0.4/php. ini-dist/usr/local/lib/php. ini

In the/home/httpd/conf/httpd. conf file

# And for PHP 4.x, use:

# AddType application/x-httpd-php. php

# AddType application/x-httpd-php-source. phps

Changed:

# And for PHP 4.x, use:

# AddType application/x-httpd-php. php. php3

# AddType application/x-httpd-php-source. phps

Set:

DirectoryIndex index.html

Changed:

DirectoryIndex index.html index. php index. php3 index.htm

Restart apache:

/Home/httpd/bin/apachectl start.

If any problem occurs, check whether the original installed apache server exists.

Run setup and select system top. httpd items are not selected. Restart the machine.

Apache server self-starting:

Add the following to the/etc/rc. d/rc. local file:

/Home/httpd/bin/apachectl start

7. Install JDK

In 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: You cannot write an error. If you don't have any problems, don't contact me.

8. install tomcat

Ln-s hailane/tomcat

Run tomcat server

Tomcat/bin/tomcat. sh start

Stop:

Tomcat/bin/tomcat. sh stop

Run

If you see the JSP/servlet example Page and can run its example program, then your tomcat

The server is ready. Sometimes it may take multiple refreshes. Try again.

9. Connect to apache

Cp mod_jserv.so/home/httpd/libexec

Add the following content to the/home/httpd/conf/httpd. conf file:

Include/home/tomcat/conf/jserv/tomcat. conf

The role is to load the tomcat module when the apache server is started. However, it seems difficult to do this,

I start tomcat again each time.

Restart apache. Then run the tomcat server.

If you see JSP. SERVLET directory.

Lucky you

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.