Linux上Apache PHP4.0 Sybase的装置文档
2011-03-07 20:40
288 查看
来历:网海拾贝
[目的]
运用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
装置局部完成。
版权声明:
原创作品,许可转载,转载时请务必以超链接体例标明文章 原始来由 、作者信息和本声明。否则将追查法律责任。
[目的]
运用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
装置局部完成。
版权声明:
原创作品,许可转载,转载时请务必以超链接体例标明文章 原始来由 、作者信息和本声明。否则将追查法律责任。
相关文章推荐
- Linux上Apache+PHP4.0+Sybase的安装文档
- linux下apache+php+mysql安装配置文档
- Linux上Apache+PHP4.0+Sybase的安装文档
- Linux、Apache、Mysql、PHP(LAMP) -- 部署文档
- linux+apache+mysql+php+phpmyadmin+zend+eaccelerator安装文档
- linux+apache+php+mysql安装配置文档
- linux+apache+php+mysql安装配置文档
- 在linux下安装Apache 2、PHP5.0.0、Sybase ASE 12.5
- linux apache php mysql 配置文档
- PHP实习之路—NO.1(看LINUX、APACHE、MYSQL、PHP文档)
- PHP开发环境的配置(Linux平台上安装Apache和PHP)
- linux下装php5+mysql5+apache
- Linux+Apache+PHP+MySQL+SSL配置详解
- 我的LAMP源码编译安装linux+Apache+mysql+php
- Linux+Apache+Mysql+PHP典型配置(转张微波blog)
- linux+apache+mysql+php的LAMP搭建
- linux 下装php5+mysql5+apache 2的笔记
- centos下利用yum安装LAMP(Linux+Apache+MySQL+PHP)及配置
- linux网站服务Apache+php+mysql的安装
- linux apache tomcat mysql php 基于虚拟机的相关重要的知识点