Skip to Content.
Sympa Menu

freetds - Re: [freetds] Unable to connect to server- cron job

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Unable to connect to server- cron job
  • Date: Wed, 6 Feb 2013 16:19:51 +0000

2013/2/6 Atul Dhanorker <adhanorker AT bsec.net>:
> 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




Archive powered by MHonArc 2.6.24.

Top of Page