zoukankan      html  css  js  c++  java
  • Linux上Apache PHP4.0 Sybase的装置文档

     来历:网海拾贝




    [目的]

      运用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 $

      这时,启动Xwindow情况,
      
      bash-2.04 $startx
      
      在Xwindow情况中,运转/opt/sybase-11.9.2/bin/dsedit, 选择Add New Server Entry,
      
      Server Name : devhost (可随意写)
      再选择add new network transport ,
      transport type : TCP
      host name : 211.5.6.50 (效力器的ip)
      port Number: 5000 (Sybase效力器监听的端口)
      
      完成后,确定插手。
      可用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
      
      装置局部完成。





    版权声明: 原创作品,许可转载,转载时请务必以超链接体例标明文章 原始来由 、作者信息和本声明。否则将追查法律责任。

  • 相关阅读:
    简直喝血!H.265要被专利费活活玩死
    python异常处理
    开始好好总结所学东西了,马上校招了~~
    pip 安装管理失败解决
    去除空格
    自定义开关(不带有滑动,只具有点击切换开关功能)
    Android-ViewPagerIndicator框架使用——TabPageIndicator以及样式的修改
    Android详细的对话框AlertDialog.Builder使用方法
    Fragment+FragmentTabHost组件实现常见主页面(仿微信新浪)
    Activity生命周期
  • 原文地址:https://www.cnblogs.com/zgqjymx/p/1976182.html
Copyright © 2011-2022 走看看