Linux上Apache+PHP4.0+Sybase的安装文档

豆豆网   技术应用频道   2007年09月17日  【字号: 收藏本文

内容摘要:使用linux 构架web服务器, 连接小型机上的Sybase数据库。我们在Sybase服务器上安装了一个实验的数据库,数据库名为test, test中有一个表是Province, 字段有Province_id, Province。

  [目的]

  使用linux 构架web服务器, 连接小型机上的Sybase数据库。我们在Sybase服务器上安装了一个实验的数据库,数据库名为test, test中有一个表是Province, 字段有Province_id, Province。

  Province_id Province
   ----------- --------
   110     北京市
   120     天津市

  [相关软件]

  Redhat 7.0 Linux

  Apache 1.3.12

  PHP 4.0.0

  Sybase 11.9.2 for Linux /Intel

  [安装过程]

  1、安装RED HAT 7.0

  我选择了Customer 全安装,因为安装Sybase时,要有X环境。

  安装完成后,建立一个工作目录/home/workshop,上传所有安装文件

  sybase-common-11.9.2-3.i386.rpm

  sybase-openclient-11.1.1-3.i386.rpm

  apache_1.3.12.tar.gz

  php-4.0.0.tar.gz

  2、安装Sybase的open-client.

  在/home/workshop目录下:

  host_name# rpm -hiv sybase-common-11.9.2-3.i386.rpm

  host_name# rpm -hiv sybase-openclient-11.1.1-3.i386.rpm

  默认的安装路径为/opt/sybase-11.9.2/ , 并且有了一个sybase用户,用passwd sybase命令更改sybase用户的密码。

  现在,用sybase登陆到你的linux计算机上,计算机将显示

C-Shell users:
    source .cshrc
    => Start 'srvbuild'
    srvbuild
    Documentation towards any Sybase product can be found on our Dynaweb
  pages accessible from our World Wide Web site:
    We would like you to register your installation and find more
  information about this Sybase Adaptive Server Enterprise release
  for Linux available from:
    Enjoy this Sybase Adaptive Enterprise Server installation !
    bash-2.04$

责编:豆豆技术应用

正在加载评论...