Skip to content

조회 수 9597 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

간단설치
-------------------------------------------
tar xzpf freetds-stable.tgz
cd freetds-0.62.4/
./configure --prefix=/usr/local/freetds --with-tdsver=8.0 \
--enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared \
--enable-static
make
make install
cd /usr/local/freetds
cp ./lib/* /usr/lib   # 라이브러리 파일을 복사한다
vi ./etc/freetds.conf  # 설정파일 수정

phpinfo 에 다음이 보이면 된다.

 

sybase

 Sybase Support  enabled 

 Allow Persistent Links  Yes 

 Persistent Links  0/unlimited 

 Total Links  0/unlimited 

 Application Name  PHP 4.3.10 

 Client API Version  $Id: dblib.c,v 1.160.2.2 2004/06/01 08:58:42 freddy77 Exp $ 

 
1. www.freetds.org 에서 freetds 최신버전을 다운 받는다
여서 설치할 버전은 0.61 버전이다
모든 작업은 root로 작업한다.
freetds-0.61.tgz 파일을 /tmp에 저장

# tar zxvf freetds-0.61.tgz
# cd freetds-0.61
# ./configure --prefix=설치할 경로(/usr/local/freetds) --with-tdsver=8.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared --enable-static

--with-tdsver=8.0 --> 연결할 mssql server가 mssql 2000 일때 8.0, mssql 7 은 7.0 이다
# make
# make install
# cd /usr/local/fretds
# cp ./lib/* /usr/lib   라이브러리 파일을 복사한다
# vi ./etc/freetds.conf  설정파일 수정

이부분을 주석을 제거
[MyServer70]
        host = mssql server ip
        port = 1433
        tds version = 8.0 --? mssql 7 은 7.0

2. apache 설치

기존 설치상의 변경할 내용 없다. 그냥 기존 대로 설치하면 된다

3. php설치

소스 컴파일 시
#./configure --with-sybase=/usr/local/freetds 옵션을 추가해서 컴파일 한다.

4. apache 재시작
apachectl restart --------> 사용하지 않는다. 이전 설정이 그대로 적용
# apachectl stop
# apachectl start


List of Articles
번호 제목 글쓴이 날짜 조회 수
48 oracle10g + php5.2.11 error [OCIEnvNlsCreate() failed] ADMINPLAY 2010.02.24 71252
47 PHP 버전 확인하기 ADMINPLAY 2008.12.23 22278
46 configure: error: utf8_mime2text() has new signature, ... ADMINPLAY 2010.05.18 21860
45 Warning: Unknown: open(, O_RDWR) failed: No such file ... ADMINPLAY 2010.01.29 19757
44 register_globals 에 따른 서버 변수형 변환 ADMINPLAY 2010.01.09 17862
43 PHP.INI에서의 세션 관련설명 ADMINPLAY 2009.10.19 17504
42 Maximum execution time of 30 seconds exceeded ADMINPLAY 2009.09.28 17374
41 Fatal error: Call to undefined function domxml_open_mem() ADMINPLAY 2009.12.31 17338
40 pear 1.9 업그레이드 및 패치설치 ADMINPLAY 2009.12.31 17310
39 php세션정리 ADMINPLAY 2009.09.19 17180
38 PHP FreeTDS 사용 (MS-SQL) file ADMINPLAY 2010.01.05 16932
37 php에서 curl 설치하기 ADMINPLAY 2009.06.01 16843
36 Warning: flock(): supplied argument is not a valid str... ADMINPLAY 2009.09.09 16754
35 PHPMyAdmin - blowfish_secret 해결방법 ADMINPLAY 2009.09.08 16482
34 php컴파일에러(flex) configure: error: cannot find out... ADMINPLAY 2009.08.08 16096
33 PEC HTTP Setup ADMINPLAY 2009.12.31 15925
32 register_globals = off 란? ADMINPLAY 2010.01.09 15537
31 4.1.0이상 php 버전에서 register_globals = Off 일때 기... ADMINPLAY 2010.01.09 15425
30 PHP - eAccelerator 설치 ADMINPLAY 2009.08.03 15003
29 [PHP] 정규 표현식 정리 ADMINPLAY 2009.06.29 14896
Board Pagination Prev 1 2 3 Next
/ 3

Copyright ADMINPLAY corp. All rights reserved.

abcXYZ, 세종대왕,1234

abcXYZ, 세종대왕,1234