设为首页
加入收藏
成员单位
您现在的位置: 河北互联网 >> 虚拟主机 >> 文章正文
Linux上Apache+PHP4.0+Sybase的安装文档
http://www.henic.com    时间:2007-9-17    河北互联网    关闭窗口


  可用isql命令检验是否连接成功,
  
  bash-2.04$isql -Usa -Sdevhost
  输入密码后,出现
  1> use test
  2> go
  1> select * from test.Province
  2> go
  Province_id Province
  ----------- --------
  110     北京市
  120     天津市
  130     河北省
  140     山西省
  150     内蒙古
  210     辽宁省
  220     吉林省
  230     黑龙江
  ... ...
  610     陕西省
  620     甘肃省
  630     青海省
  640     宁夏区
  650     新疆区
  660     西藏区
  (28 rows affected)
  1>
  现在openclient就安装完成了。
  
  3、安装Apache 及 PHP4
  
  host_name/home/workshop# tar -vzxf apache_1.3.12.tar.gz
  host_name/home/workshop# tar -vzxf php-4.0.0.tar.gz
  
  进入apache目录,预编译apache
  
  # ./configure --prefix=/home/apache
  我们把Apache 安装在/home目录下。
  
  进入php目录,编译php + sybase
  #cd ../php-4.0.0
  # ./configure --with-apache=../apache_1.3.12
         --with-mysl=no
         --with-sybase-ct=/opt/sybase-11.9.2/
         --enable-ftp
         --enable-track-vars
  
  # make ; make install
  # cp php.ini-dist /usr/local/lib/php.ini
  # cd ../apache_1.3.12
  # ./configure --prefix=/home/apache --activate-module=src/modules/php4/libphp4.a
  # make ; make install
  
  编译工作已经完成了,现在需要修改一些配置文件。
  
  #cd /home/apache/conf
  #vi httpd.conf
  
  修改DirectoryIndex index.html index.php3 index.php那一行
  将AddType application/x-httpd-php .php那一行前面的#去掉
  加入一行AddType application/x-httpd-php .php3
  
  最后,还需要修改几个参数
  ServerName
  ServerAdmin
  DocumentRoot "/home/apache/htdocs"
  
  启动Apache
  cd ../bin
  ./apachectl start
  
  现在,要写一个文件,让apache在计算机启动时也启动。
  and you will edit /etc/rc.d/rc.sysinit , add auto_run file at the last line.
  auto_run will be created at /usr/sbin and with +x mode.
  
  auto_run is:
  #!/bin/sh
  /home/apache/bin/apachectl restart
  
  安装部分完成。

9 7 3 1 2 4 8 :

上一页  [1] [2] 

  • 上一篇文章:
  • 下一篇文章:
  •   【相关文章
    Windows环境下的Tomcat + Apache配置
    静态/动态编译在Apache+Php+Mysql的应用
    Linux攻略 关于Apache安装、配置、优化
    Apache在服务器windows 2000配置全攻略
    配置Apache服务器并且设置DNS

      【热门文章
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     什么是电子邮箱?
     Sleepycat软件公司发布新版本Berkeley DB
     关于加强计算机信息系统国际联网备案管理
     WML语法大全
     Internet X.509 Public Key Infrastructu
     中国互联网络信息中心域名争议解决办法程
     .ORG 后缀域名在线注册
     .COM 后缀域名在线注册
     促进多语言互联网的全球讨论会
     中国国家顶级域名.CN发展大事记

    《中华人民共和国增值电信业务经营许可证》编号:冀B2-20050128
    Copyright © 2004-2008 HENIC.COM All Rights Reserved.
    河北互联网 版权所有 合作联系QQ:52720100