Linux(PHP) + MSSQL 7 (NT)

Michael Suedkamp ms at suedkm.franken.de
Sat Feb 19 05:59:08 EST 2000


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)



More information about the FreeTDS mailing list