Live Brilliant

php + mssql 연동가능하도록 freetds설치 방법 본문

개발은 핵찜이야/리눅스

php + mssql 연동가능하도록 freetds설치 방법

주인정 2012. 4. 17. 15:20

! freetds 추가 설치 mssql 연동 가능하도록 하기

 

php 에서 mssql DB연동이 필요하다면 freetds추가 설치가 필요하다

 

1. freetds 설치

#> ./configure --prefix=/usr/local/server/freetds --with-tdsver=8.0 --disable-odbc --disable-debug --enable-msdblib
#> make && make install

 

 

2. php 컴파일

#> ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/apache2/conf --enable-safe-mode --enable-sockets --with-exec-dir=/usr/local/apache2/bin --with-gd=shared --with-openssl --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-inline-optimization --enable-bcmath --enable-mbstring --enable-ftp --with-zlib --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib --with-libxml-dir=/usr/lib --with-gd --enable-gd-native-ttf --with-freetype-dir=/usr --with-gettext --enable-exif --with-mssql=/usr/local/freetds --with-sybase=/usr/local/freetds

#>make && make install

Comments