Skip to Content.
Sympa Menu

freetds - RE: Linux(PHP) + MSSQL 7 (NT)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Michael Suedkamp" <ms AT suedkm.franken.de>
  • To: freetds
  • Subject: RE: Linux(PHP) + MSSQL 7 (NT)
  • Date: Sat, 19 Feb 2000 5:59:8


Here is the README I created from my experiences. It is derived from the
instructions supplied with Apache and PHP3.

Hope it helps

Michael

-------------------------------------------------------------------

1. Build FreeTDS
$ ./configure --prefix=/path/to/freetds --with-tdsver=4.2
$ make

(adapt PWD file)

$ make install
$ export SYBASE=/path/to/freetds
$ export LD_LIBRARY_PATH=/path/to/freetds/lib
$ make test

2. Build PHP3 with FreeTDS
$ cd apache_1.3.X
$ ./configure --prefix=/path/to/apache
$ cd ../php-3.0
$ ./configure --with-shared-apache=../apache_1.3.X
--with-sybase-ct=/path/to/freetds [--with-mysql=/path/to/mysql ...]
$ make
$ make install

(libphp3.module is beeing copied to ../apache_1.3.x/src/modules/php3.
Edit the lib entries by removing all Sybase/FreeTDS related except lct)



3. Build Apache with dynamic PHP support

$ cd ../apache_1.3.X
$ ./configure --prefix=/path/to/apache \
--activate-module=src/modules/php3/libphp3.a \
--enable-shared=php3
$ make
$ make install

(activate AddType ...php3 in httpd.conf)
(add/modify environment vars: set SYBASE to /path/to/freetds and expand
LD_LIBRARY_PATH by /path/to/freetds/lib in start script apachectl or
whichever you use)




Archive powered by MHonArc 2.6.24.

Top of Page