Js | server | web 0. Overview \ r
0.1 target \ r
Install a free WEB server on the Linux platform that supports SSL, URL rewriting, reverse proxy, page compression, CGI, PHP, JSP, \ r
0.2 License Agreement \ r
GNU Free Documentation License http://www.gnu.org/licenses/fdl.html
Allow arbitrary reprint, but please keep the integrity of this document
If you have any changes, you should inform the author
2. Installation
2.1 Apache
$ tar VFXZ httpd-2.0.46.tar.gz
$ CD httpd-2.0.46
$. / configure \
$-ENABLE-SO \
$-enable-ssl = shared \
$-enable-rewrite = shared \
$-enable-proxy = shared \
$-enable-deflate = shared \
$-with-mpm = worker \
$-prefix = / www / server / apache2
$ make
$ make Install
#-enable-so to use JK2 to connect Tomcat, you must have the Apache2 support module dynamically loaded
#-enable-ssl = shared supports SSL
#-enable-rewrite = shared Support URL Rewriting
#-enable-proxy = shared Support Agent \ r
#-enable-deflate = shared support for Web page compression \ r
#-with-mpm = worker using the MPM mode of worker to run
#-prefix = / www / server / apache2 installation directory
2.2 PHP
$ tar VFXZ php-4.3.2.tar.gz
$ CD php-4.3.2
$. / configure \
$-WITH-APXS2 = / WWW / SERVER / APACHE2 / BIN / APXS \
$-prefix = / www / server / php
$ make
$ make Install
$ CP Php.ini-dist / usr / local / lib / php.ini
#-with-apxs2 = / www / server / apache2 / bin / apxs is compiled as a apache2 module \ r
#-prefix = / www / server / php installation directory, and does not have much effect
2.3 Tomcat
$ tar VFXZ jakarta-tomcat-4.1.24.tar.gz
$ CP-R jakarta-tomcat-4.1.24 / www / server /
$ LN-S / home / data / www / jakarta-tomcat-4.1.24 / home / data / www / tomcat
2.4 JTC
#Compile errors, please refer to the following processing \ r
$ Lynx http://www.pubbitch.org/jboss/mod_jk2.html
$ tar VFXZ jakarta-tomcat-connectors-4.1.24-src.tar.gz
$ CD JAKARTA-TOMCAT-CONNECTORS-4.1.24-SRC
#The following two steps do not need to be done if there are no compilation errors \ r
$ CP / usr / java / j2sdk1.4.1_02 / include / linux / jni_md.h / usr / java / j2sdk1.4.1_02 / include /
$ LN-S / www / server / apache2 / lib / libapr-0.so / www / server / apache2 / lib / libapr.so
#Start compilation preparation
$ CD util
$ CP Build.properties.sample build.properties
$ CD. / Jk
$ CP Build.properties.sample build.properties
$ vi build.properties
Catalina.home = / www / server / tomcat
Tomcat40.home = $ {catalina.home}
Apache2.home = / www / server / apache2
#Modify the above
$ CD. / Coyote
$ CP Build.properties.sample build.properties
$ vi build.properties
Catalina.home = / www / server / tomcat
#Modify the above
$ CD. / Jk
# Example Socket channel, override port and host.
[Channel.socket: example]
port = 8009
host = 127.0.0.1
# define the worker
[Ajp13: example]
Channel = channel.socket: example
# [status: status]
# Uri Mapping
# [uri: / jkstatus / *]
#worker = status: status
# Uri Mapping
[Uri: / *. Jsp]
Worker = ajp13: example
# [uri: / examples / *]
#worker = ajp13: example
3.5 tomcat / conf / jk2.properties
$ touch / www / server / tomcat / conf / jk2.properties
$ vi / www / server / tomcat / conf / jk2.properties
# The default port is 8009 but can use another one
# channelsocket.port = 8019
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.