国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網站 > Apache > 正文

Apache+PHP4.0+Sybase安裝文檔

2024-08-27 18:30:11
字體:
來源:轉載
供稿:網友
----------- -------- 
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就安裝完成了。 

2. 安裝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 

================================================================================== 
安裝部分完成。 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 德昌县| 麦盖提县| 清徐县| 江安县| 顺平县| 林州市| 扬中市| 舟曲县| 鄂温| 盈江县| 东莞市| 漳平市| 教育| 灯塔市| 浏阳市| 延庆县| 沁阳市| 贵南县| 文化| 安吉县| 永德县| 迁西县| 博客| 碌曲县| 浦北县| 南华县| 文昌市| 沁源县| 宾川县| 大洼县| 柳江县| 淮南市| 临泽县| 泗阳县| 湄潭县| 女性| 东城区| 张家口市| 清流县| 广东省| 芦溪县|