Apache installation Configuration
Tar xvzf httpd * // decompress the source code package
CD httpd * // enter the installation directory
/Configure -- prefix =/usr/local/apache2 -- enable-So // compile
// -- Enable-so may vary depending on the Apache version. Use the -- help parameter to view available options.
Make
Make install // install
Modify CONF/httpd. conf for HTTP configuration
Resin installation Configuration
Tar zxvf resin * // decompress the source code package
CD resin * // enter the installation directory
./Configure -- With-apxs = $ apache2_home/bin/apxs... // for compilation. You can use the -- help parameter to view available options.
Make
Make install // install
At this time, the. So file for connecting resin to apache2 has been generated, and it exists with $ apache2_home/modules/mod_caucho.so
Modify CONF/httpd. conf for HTTP configuration
Loadmodule caucho_modules modules/mod_caucho.so
Resinconfigserver localhost 6802.
<Location/Caucho-status>
Sethandler Caucho-status
</Location>
Modify $ resin_home/CONF/resin. conf
<Web-app id = '/' Document-directory = "/webapps/root"/>
Change webapps/root to the directory corresponding to the document root configuration file httpd. conf of Apache.
Start resin and Apache respectively
Visit http: // hostname/Caucho-status to view the resin status page.