Apache2 + Tomcat5.0 integration in Linux-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Tomcat and JDK1.4.2 have been installed on the server.
Tomcat5.0 Directory:/home/oracle/tomcat
JDK 1.4.2 Directory:/home/oracle/j2sdk1.4.2 _ 07
Installation Steps of Tomcat5.0 and JDK1.42
Install Apache2.0.59 to/home/oracle/apache
Download httpd-2.0.59.tar.gz and upload it to/home/oracle.
Cd/home/oracle
Tar-zxvf httpd-2.0.59.tar.gz
Cd httpd-2.0.59
# Configuration (prefix is the installation path, and enable-mod-shared = all indicates compiling and configuring all so files)
./Configure -- prefix =/home/oracle/apache -- enable-mod-shared = all
Make
Make install
# Configure httpd. conf
Vi/home/oracle/apache/conf/httpd. conf
ServerName: 127.0.0.1, Server IP address or domain name
Define index.htm index. jsp in DirectoryIndex
DefaultLanguage is set to zh-CN
Cd/home/oracle/apache/bin
./Apachectl start
Open http: // 127.0.0.1/and see "test page for installing Apache". It indicates that Apache has been installed successfully.
If "403 Forbidden error" appears (and httpd. conf is not set to prohibit access), the solution is as follows:
You must not only set the WEB directory to readable, but also set all the parent directories of the WEB directory to at least searchable.
Chmod + x/home
Chmod + x/home/oracle
Chmod + x/home/oracle/apache
Chmod 777-R/home/oracle/apache/htdocs
Compile and set mod_jk2
In the http://archive.apache.org/dist/jakarta/tomcat-connectors/jk2/
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.