Re: Unable to connect to server- cron job

Frediano Ziglio <[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <CAHt6W4c2UpaHs+1XGt_=q0Lvu8jv1z8L3v8k9gHKc0ctOnS_5A@mail.gmail.com>
2013/2/6 Atul Dhanorker <[email protected]>:
> Dear All,
>
>                 I have recently installed FreeTDS to connect to sql server 2008. The php script works fine when I am running it through browser but using cron to run the same php file produces the following error:
>
> PHP Warning:  mssql_connect(): Unable to connect to server: BS in /var/www/report/inventory.php on line 29
>
> Any advice would be helpful.
>
> Atul Dhanorker
>
Hi,
  usually this is due to some misconfiguration. PHP under web usually
use another user and different environment options. Probably it does
not pick up your freetds.conf.

Frediano
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.