1298.html

来自「著名的linux英雄站点的文档打包」· HTML 代码 · 共 411 行 · 第 1/2 页

HTML
411
字号
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>Apache+Mod_perl+Mod_SSL+PHP+Frontpage extension+Apache::ASP 安装配置手册</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:tom<br>来自:Linux知识宝库<br>联系方式:无名<br><br>    摘要<br>
    这篇文档介绍了一些Apache服务器的常用和不常用的模块的配置,希望对大家有帮助(2003-08-14 09:20:29)<br>
<br>
A.软件平台<br>
<br>
Mandrake8.2<br>
Apache 1.3.27<br>
Openssl 0.9.7<br>
Mod_SSL 2.8.12<br>
Mod_perl 1.27<br>
FrontPage extension 5.0<br>
Patch-fp-apache 1.3.22<br>
Mm 1.2.1<br>
J2sdk 1.4.1<br>
Tomcat 4.0.1<br>
Webapp 1.0.1<br>
Apache::ASP 2.50<br>
PHP 4.3.1<br>
<br>
B.配置步骤<br>
<br>
1. 将所有的软件包都复制到/usr/src/soft/ 目录下,并解包。<br>
2. 安装openssl<br>
cd /usr/src/soft/openssl0.9.7<br>
./config -fPIC<br>
no-threads<br>
make<br>
make test<br>
make install<br>
3.安装 mm<br>
cd /usr/src/soft/mm-1.2.1<br>
./configure –disable-shared<br>
make<br>
4.安装 mod_ssl<br>
./configure –with-apache=/usr/src/soft/apache1.3.27<br>
5.安装apache<br>
cd /usr/src/soft/apache1.3.27<br>
cp –af ../fp-patch-apache1.3.22 ./ patch –p0<br>
./configure --enable-module=ssl<br>
--enable-shared=ssl<br>
--enable-module=so<br>
--enable-rule=SHARED_CORE<br>
--add-module=mod_frontpage.c<br>
make<br>
make certificate TYPE=custom<br>
make install<br>
6.安装mod_perl<br>
cd /usr/src/soft/mod_perl1.27<br>
perl Makefile.PL EVERYTHING=1 USE_DSO=1 DO_HTTPD=1<br>
WITH_APXS=/usr/local/apache/bin/apxs<br>
Make<br>
Make install<br>
7.安装FrontPage extension<br>
vi /usr/local/apache/conf/httpd.conf<br>
将DocumentRoot 的AllowOverride None 改为All<br>
将servername前面的#去掉<br>
cd /usr/src/soft/frontpgae/version5.0<br>
./fp-install.sh<br>
cd /usr/local/apache/bin/<br>
cp –af httpd.orig httpd<br>
在/usr/local/apache/conf/httpd.conf中加入以下文字<br>
<br>
Options None<br>
AllowOverride All<br>
Order allow,deny<br>
Allow from all<br>
<br>
8.安装 Apache::ASP<br>
perl -MCPAN -e shell<br>
提问是否手动配置cpan,选否<br>
cpan&gt;install Bundle::Apache::ASP<br>
cpan&gt;exit<br>
cd /root/.cpan/build/Apache-ASP2.50<br>
perl Makefile.PL<br>
make<br>
make test<br>
make install<br>
在httpd.conf中加入以下文字<br>
<br>
SetHandler perl-scirpt<br>
PerlModule Apache::ASP<br>
PerlHandler Apache::ASP<br>
PerlSetvar Global .<br>
PerlSetVar StateDir /tmp/asp<br>
<br>
9.安装J2SDK 1.4.1<br>
cd /usr/src/soft/<br>
./j2sdk-1.4.1-linux-i586.bin<br>
接受协议,输入yes<br>
生成j2sdk1.4.1 目录<br>
10.安装tomcat4.0.1<br>
cd /usr/src/soft/<br>
cp –af tomcat4.0.1 /usr/local<br>
在/etc/profile文件中加入以下文字<br>
JAVA_HOME=/usr/java/j2sdk1.4.1<br>
Export JAVA_HOME<br>
CLASSPATH=/usr/java/j2sdk1.4.1/lib:/usr/java/j2sdk1.4.1/jre/lib<br>
Export CLASSPATH<br>
CATALINA_HOME=/usr/local/Jakarta-tomcat-4.0.1<br>
Export CATALINA_HOME<br>
CATALINA_BASE=/usr/local/Jakarta-tomcat-4.0.1<br>
Export CATALINA_BASE<br>
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin<br>
Export PATH<br>
启动apache和tomcat,通过浏览器访问http://server ip:8080,看见tomcat的首页表示tomcat设置成功。<br>
11.集成apache和tomcat<br>
cd /usr/src/soft/webapp-module-1.0.1-tc401/<br>
./support/buildconf.sh<br>
./configure with_apxs=/usr/local/apache/bin/apxs<br>
make<br>
make install<br>
cp –af ./apache1.3/mod_webapp.so /usr/local/apache/libexec<br>
在httpd.conf中加入以下文字<br>
Addmodule mod_webapp.c<br>
LoadModule mod_webapp libexec/mod_webapp.so<br>
WebAppConnection wardConnection warp localhost:8008<br>
WebAppDeploy examples warpConnection/examples/<br>
在本地浏览器访问http://server ip/examples/<br>
看见index.html,并可以执行JSP例子程序,表示配置成功。<br>
实现http://server ip/jsp/**.jsp形式的访问的具体步骤我忘记了。<br>
哪位朋友知道的话,请将步骤发到我的邮箱zysno1@sina.com。不胜感激。<br>
12.安装PHP<br>
cd /usr/src/soft/php-4.3.1<br>
./configure --disable-short-tags<br>
--enable-sysvsem<br>
--enable-sysvshm<br>
--with-mysql<br>
--with-pgsql<br>
--with-apxs=/usr/local/apache/bin/apxs<br>
make<br>
make install<br>
cp –af libs/libphp4.so /usr/local/apache/libexec<br>
vi /usr/local/apache/conf/httpd.conf<br>
在相应的位置添加以下内容<br>
LoadModule php4_module libexec/libphp4.so<br>
AddModule mod_php4.c<br>
AddType application/X-httpd-php .php .php3 .phtml<br>
<br>
安装全部完成,祝你好运!! 希望这篇文档能帮助和我一样的入门者。 如有其他问题,请联系zysno1@sina.com<br>
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?