首页 > Linux考试认证

Apache PHP4.0 Sybase的安装文档

时间:2009-05-11 07:23:55  作者:  我要投稿
Linux初探欢迎您的投稿,投放方法请点击这里查看,我们会定期赠送精美小礼品给优秀的投稿作者。海纳百川 取则行远!LinuxGoo欢迎您的到来。
使用linux 构架web服务器, 连接小型机上的Sybase数据库。我们在Sybase服务器上安装了一个实验的数据库,数据库名为test, test中有一个表是Province, 字段有Provinc......

  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
  
  安装部分完成。

如果您需转载 Apache PHP4.0 Sybase的安装文档,请注明来自LinuxGoo.com,其版权归原作者所有。请广大网友留言时遵纪守法,使用文明用语。如果您在应用中有什么问题,请在下面留言,我们会尽快解答。
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目热门