Steps for compiling apache and resin Installation

Source: Internet
Author: User

There are many ways to compile apache and resin for installation. Below is a collection of methods for compiling apache. I hope it will be helpful to many enthusiasts, are common methods. Take the opportunity to provide it to you.

PACING: 0px;-webkit-border-horizontal-spacing: 0px;-webkit-border-vertical-spacing: 0px;-webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto;-webkit-text-stroke-width: 0 "class = Apple-style-span> preface: some time ago, I made some explorations on the company's multi-host distribution solution at the front-end, summarized some things, and posted them for sharing. There are many similar content on the Internet, but they are not detailed enough. For the first time, I had a lot of effort and hoped that later people would be more convenient.

1. Install and compile apache
◆ Download apache's latest release version 2.2.6 from the apache official website.
Unixbench: httpd-2.2.6.tar.gz
◆ Unpack
Gunzip httpd-2.2.6.tar.gz
Tar xvf httpd-2.2.6.tar
◆ Compilation and Installation
Go to the unzipped directory httpd-2.2.6 and execute
./Configure -- prefix =/* directory where apache is to be installed */-- enable-so
Make
Make install
After successful installation, apache will be installed in the previously specified directory.

Ii. Start apache
Go to the directory for compiling apache installation
◆ Modify apache/conf/httpd. conf
Modify Listen 80 to the required port, for example, 11280.
◆ Start
Go to apache/bin/run:./apachectl start
◆ Start browsing and access
Http:/// ip: 11280

Iii. Compile and install resin
. /Configure -- prefix =/data/aoxj/artest/resin -- with-apxs =/data/aoxj/artest/apache/bin/apxs -- with-apache =/data/aoxj/ artest/apache
Make
Make install
In addition to compiling and installing resin, the above operations do not actually do these operations, and resin itself can also run). apache will also be modified, including:
◆ Copy mod_caucho.so to the apache directory is the modules specified previously -- with-apache =/data/aoxj/artest/apache ).
◆ V modify the configuration file conf/httpd. conf of apache and automatically add the following content:
LoadModule caucho_module ***/modules/mod_caucho.so
ResinConfigServer localhost 6802.
CauchoConfigCacheDirectory/tmp
CauchoStatus yes

Iv. Configure resin
You need to modify the resin. conf file.
<Cluster>
<Srun server-id = "a" host = "192.168.0.1" port = "6802" type = "codeph" text = "/codeph"/>
<Srun server-id = "a" host = "192.168.0.1" port = "6802" type = "codeph" text = "/codeph"/>
</Cluster>

5. Start resin
Run resin/bin/httpd. sh
Be sure to add-server. Otherwise, after the resin is started, it listens to ports such as 80/8080, instead of 6802 in the preceding cluster settings.
./Httpd. sh-server a start
In this way, resin will listen to 6802. We recommend that you manually telnet to confirm. If resin is not started correctly, access to resin after apache is started will fail, and a 503 error will be reported on the page.
-Server is also required for later stop/restart operations.

6. Configure and compile apache
Check the following content in the conf/httpd. conf file:
◆ LoadModule caucho_module ***/modules/mod_caucho.so
Check whether mod_caucho.so exists
◆ ResinConfigServer localhost 6802
This ResinConfigServer can only display one row. If there are more than one resin, configure the ip/port of other machines in the resin configuration file specified here.
◆ CauchoConfigCacheDirectory/tmp
◆ CauchoStatus yes

7. The last modified configuration is:
LoadModule caucho_module "/data/aoxj/artest/apache/modules/mod_caucho.so"
ResinConfigServer 192.168.0.1 6802
AddHandler caucho-request. action
CauchoConfigCacheDirectory/tmp
CauchoStatus yes

8. web Access
Start compiling apache
Use a browser to access the apache port. Note that it is not the port used to access resin.

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.