Apache+PHP+Frontpage extension+JSP+ASP配置手冊

來源:互聯網
上載者:User
文章目錄
  • A.軟體平台
  • B.配置步驟
  • 安裝全部完成,祝你好運!!
  • 希望這篇文檔能協助和我一樣的入門者。
A.軟體平台
Mandrake8.2
Apache 1.3.27
Openssl 0.9.7
Mod_SSL 2.8.12
Mod_perl 1.27
FrontPage extension 5.0
Patch-fp-apache 1.3.22
Mm 1.2.1
J2sdk 1.4.1
Tomcat 4.0.1
Webapp 1.0.1
Apache::ASP 2.50
PHP 4.3.1
B.配置步驟
1. 將所有的軟體包都複製到/usr/src/soft/ 目錄下,並解包。

2. 安裝openssl

cd /usr/src/soft/openssl0.9.7
./config -fPIC
no-threads
make
make test
make install
3.安裝 mm
cd /usr/src/soft/mm-1.2.1
./configure –disable-shared
make
4.安裝 mod_ssl
./configure –with-apache=/usr/src/soft/apache1.3.27
5.安裝apache
cd /usr/src/soft/apache1.3.27
cp –af ../fp-patch-apache1.3.22 ./ patch –p0 ./configure --enable-module=ssl
--enable-shared=ssl
--enable-module=so
--enable-rule=SHARED_CORE
--add-module=mod_frontpage.c
make
make certificate TYPE=custom
make install
6.安裝mod_perl
cd /usr/src/soft/mod_perl1.27
perl Makefile.PL EVERYTHING=1 USE_DSO=1 DO_HTTPD=1
WITH_APXS=/usr/local/apache/bin/apxs
Make
Make install
7.安裝FrontPage extension
vi /usr/local/apache/conf/httpd.conf
將DocumentRoot 的AllowOverride None 改為All
將servername前面的#去掉
cd /usr/src/soft/frontpgae/version5.0
./fp-install.sh
cd /usr/local/apache/bin/
cp –af httpd.orig httpd
在/usr/local/apache/conf/httpd.conf中加入以下文字

Options None
AllowOverride All
Order allow,deny
Allow from all

8.安裝 Apache::ASP
perl -MCPAN -e shell
提問是否手動設定cpan,選否
cpan>install Bundle::Apache::ASP
cpan>exit
cd /root/.cpan/build/Apache-ASP2.50
perl Makefile.PL
make
make test
make install
在httpd.conf中加入以下文字

SetHandler perl-scirpt
PerlModule Apache::ASP
PerlHandler Apache::ASP
PerlSetvar Global .
PerlSetVar StateDir /tmp/asp

9.安裝J2SDK 1.4.1
cd /usr/src/soft/
./j2sdk-1.4.1-linux-i586.bin
接受協議,輸入yes
產生j2sdk1.4.1 目錄
10.安裝tomcat4.0.1
cd /usr/src/soft/
cp –af tomcat4.0.1 /usr/local
在/etc/profile檔案中加入以下文字
JAVA_HOME=/usr/java/j2sdk1.4.1
Export JAVA_HOME
CLASSPATH=/usr/java/j2sdk1.4.1/lib:/usr/java/j2sdk1.4.1/jre/lib
Export CLASSPATH
CATALINA_HOME=/usr/local/Jakarta-tomcat-4.0.1
Export CATALINA_HOME
CATALINA_BASE=/usr/local/Jakarta-tomcat-4.0.1
Export CATALINA_BASE
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
Export PATH
啟動apache和tomcat,通過瀏覽器訪問http://server ip:8080,看見tomcat的首頁表示tomcat設定成功。
11.整合apache和tomcat
cd /usr/src/soft/webapp-module-1.0.1-tc401/
./support/buildconf.sh
./configure with_apxs=/usr/local/apache/bin/apxs
make
make install
cp –af ./apache1.3/mod_webapp.so /usr/local/apache/libexec
在httpd.conf中加入以下文字
Addmodule mod_webapp.c
LoadModule mod_webapp libexec/mod_webapp.so
WebAppConnection wardConnection warp localhost:8008
WebAppDeploy examples warpConnection/examples/
在本地瀏覽器訪問http://server ip/examples/
看見index.html,並可以執行JSP例子程式,表示配置成功。
實現http://server ip/jsp/**.jsp形式的訪問的具體步驟我忘記了。
哪位朋友知道的話,請將步驟發到我的郵箱zysno1@sina.com。不勝感激。
12.安裝PHP
cd /usr/src/soft/php-4.3.1
./configure --disable-short-tags
--enable-sysvsem
--enable-sysvshm
--with-mysql
--with-pgsql
--with-apxs=/usr/local/apache/bin/apxs
make
make install
cp –af libs/libphp4.so /usr/local/apache/libexec
vi /usr/local/apache/conf/httpd.conf
在相應的位置添加以下內容
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/X-httpd-php .php .php3 .phtml
安裝全部完成,祝你好運!! 希望這篇文檔能協助和我一樣的入門者。 如有其他問題,請聯絡zysno1@126.com
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.