WEB开发网
开发学院数据库Oracle Apache+mod_ssl+Tomcat3.1+php(支持Oracle)安装手... 阅读

Apache+mod_ssl+Tomcat3.1+php(支持Oracle)安装手册

 2007-06-02 16:01:48 来源:WEB开发网   
核心提示:3 安装Oracle for linux (Clent Part)login as root1. # cp oracle8161_tar.gz /usr/local2. # tar xvzf oracle8161_tar.gz (this will unpack the files to /usr/local/Orac
3 安装Oracle for linux (Clent Part)
login as root
1. # cp oracle8161_tar.gz /usr/local
2. # tar xvzf oracle8161_tar.gz (this will unpack the files to /usr/local/Oracle8iR2)
3. # groupadd dba
4. # groupadd oinstall
5. # useradd -G oinstall -g dba oracle
6. # passwd oracle
login as oracle
1. # startx
2. run /usr/local/Oracle8ir2/runInstall
3. install whole as the Universal Intaller tell.
配置 /etc/profile 文件(加入环境变量)
(参考所给的文件 进行必要的修改)

4 安装 Apache Web Server (含 PHP 和 SSL 的支持)
a 通过光盘或网上邻居 把
apache_1.3.12.tar.Z
php-4.0.2.tar.gz
openssl-0.9.5a.tar.gz
mod_ssl-2.6.6-1.3.12.tar.gz
拷贝到 /usr/local 并解开
$cd /usr/local
$tar xvzf apache_1.3.12.tar.Z
$tar xvzf php-4.0.2.tar.gz
$tar xvzf openssl-0.9.5a.tar.gz
$tar xvzf mod_ssl-2.6.6-1.3.12.tar.gzmod_ssl-2.6.6-1.3.12.tar.gz
b
$ cd openssl-0.9.5a
$ ./config
$ make
$ cd ..
c
$ cd /mod_ssl-2.6.6-1.3.12
$ ./configure
--with-apache=../apache_1.3.12
$ cd ..

d
$ cd apache_1.3.12
$ ./configure
--prefix=/usr/local/apache
$ cd ..
e
$ cd ../php-4.0.2
$ CFLAGS=´-O2 -I /usr/local/openssl-0.9.5a/include´
./configure
--with-apache=../apache_1.3.x
--enable-memory-limit=yes
--enable-debug=no
--with-oracle=/usr/local/oracle/OraHome1 --with-oci8=/usr/local/oracle/OraHome1
--enable-sigchild
--enable-track-vars
$ gmake
$ gmake install
$ cd ..
f
$ cd apache_1.3.12
$ SSL_BASE=/usr/local/openssl-0.9.5a
./configure
--prefix=/usr/local/apache
--with-layout = GNU
--enable-module=ssl
--activate-module=src/modules/php4/libphp4.a
--enable-shared=max --enable-module=most
$ make
$ make certificate
$ make install

g 修改apache 配置文件 /usr/local/apache/etc/httpd.conf
取消以下两行的注释
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
参照 所给的文件 修改
另: 注意一些环境的不同,配置会不一样

h
测试
1 测试ssl
$/usr/local/apache/sbin/apachectl startssl
通过 Netscape 访问 https://localhost
通过 Netscape 访问 http://localhost
2 测试 PHP
写一个 程序 test.php

通过 Netscape 访问 http://localhost /test.php
i 写Apache 的启动文件
把所给的参考文件S95Apache 拷贝到 /etc/rc.d/rc3.d 下
$chmod 755 S95Apache
S95Apache 内容为:
#!/bin/sh
LD_LIBRARY_PATH=/usr/local/oracle/OraHome1/lib
NLS_LANG=JAPANESE_JAPAN.JA16SJIS
ORA_NLS33=/usr/local/oracle/OraHome1/ocommon/nls/admin/data
export LD_LIBRARY_PATH NLS_LANG ORA_NLS33
/usr/local/apache/sbin/apachectl startssl

Tags:Apache mod ssl

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接