Всем доброго времени суток!
Облазил кучу манов, пробовал делать по разному,но результат один.
Вообщем суть такая.
Имеем
FreeBSD 7.2-RELEASE #7
[root@mail /home/test/public_html]# pkg_info | grep apache
apache-2.2.16 Version 2.2.x of Apache web server with prefork MPM.
apache-ant-1.7.1 Java- and XML-based build tool, conceptually similar to mak
[root@mail /home/test/public_html]#
[root@mail /home/test/public_html]# pkg_info | grep php
php5-5.3.3 PHP Scripting Language
php5-bz2-5.3.3 The bz2 shared extension for php
php5-calendar-5.3.3 The calendar shared extension for php
php5-ctype-5.3.3 The ctype shared extension for php
php5-curl-5.3.3 The curl shared extension for php
php5-dom-5.3.3 The dom shared extension for php
php5-extensions-1.4 A "meta-port" to install PHP extensions
php5-filter-5.3.3 The filter shared extension for php
php5-ftp-5.3.3 The ftp shared extension for php
php5-gd-5.3.3 The gd shared extension for php
php5-gettext-5.3.3 The gettext shared extension for php
php5-gmp-5.3.3 The gmp shared extension for php
php5-hash-5.3.3 The hash shared extension for php
php5-iconv-5.3.3 The iconv shared extension for php
php5-imap-5.3.3 The imap shared extension for php
php5-json-5.3.3 The json shared extension for php
php5-ldap-5.3.3 The ldap shared extension for php
php5-mbstring-5.3.3 The mbstring shared extension for php
php5-mcrypt-5.3.3 The mcrypt shared extension for php
php5-mssql-5.3.3_1 The mssql shared extension for php
php5-mysql-5.3.3 The mysql shared extension for php
php5-mysqli-5.3.3 The mysqli shared extension for php
php5-openssl-5.3.3 The openssl shared extension for php
php5-pdo-5.3.3 The pdo shared extension for php
php5-pdo_sqlite-5.3.3 The pdo_sqlite shared extension for php
php5-posix-5.3.3 The posix shared extension for php
php5-readline-5.3.3 The readline shared extension for php
php5-session-5.3.3 The session shared extension for php
php5-simplexml-5.3.3 The simplexml shared extension for php
php5-snmp-5.3.3 The snmp shared extension for php
php5-soap-5.3.3 The soap shared extension for php
php5-sockets-5.3.3 The sockets shared extension for php
php5-sqlite-5.3.3 The sqlite shared extension for php
php5-sysvmsg-5.3.3 The sysvmsg shared extension for php
php5-tokenizer-5.3.3 The tokenizer shared extension for php
php5-wddx-5.3.3 The wddx shared extension for php
php5-xml-5.3.3 The xml shared extension for php
php5-xmlreader-5.3.3 The xmlreader shared extension for php
php5-xmlrpc-5.3.3 The xmlrpc shared extension for php
php5-xmlwriter-5.3.3 The xmlwriter shared extension for php
php5-xsl-5.3.3 The xsl shared extension for php
php5-zip-5.3.3 The zip shared extension for php
php5-zlib-5.3.3 The zlib shared extension for php
[root@mail /home/test/public_html]#
[root@mail /home/test/public_html]# pkg_info | grep freetds
freetds-0.64_5,1 Sybase/Microsoft TDS protocol library
freetds-msdblib-0.64_5,1 Sybase/Microsoft TDS protocol library
[root@mail /home/test/public_html]#
[root@mail /usr/local/etc]# cat freetds.conf
[global]
tds version = 4.2
initial block size = 512
swap broken dates = no
try server login = no
try domain login = yes
cross domain login = no
swap broken money = no
dump file = /tmp/freetds.log
; debug flags = 0xffff
; timeout = 10
; connect timeout = 10
text size = 64512[sql]
host = 192.168.11.8
port = 1433
tds version = 8.0
client charset = CP1251
[root@mail /usr/local/etc]#
Брал за основу статьи:
http://semenushkin.ru/2010/12/29/php-mssql-под-freebsd-используя-freetds/
http://www.lissyara.su/articles/freebsd/www/php+mssql/Поправил скрипт, указал свой хост, свою БД, своего юзера и пароль, но в ответ получаю: Can't connect to Microsoft SQL Server
В логах ошибок нет.