Re: [PDO] Re: [PHP] PDO working via Apache but not at the command line?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sounds like the error message "SQLSTATE[HY000] Unable to connect:
Adaptive Server is unavailable or does not exist (severity 9)" could
be more informative, but I think this is returned by FreeTDS, not PDO.

On Mon, Oct 18, 2010 at 7:35 PM, Scott Baker <bakers@xxxxxxxxxxxx> wrote:
> On 10/18/2010 06:27 PM, Wez Furlong wrote:
>> Things to check:
>>
>> - Environment: what env vars are set or not set in your Apache vs. CLI
>> - Owner: are you running as the same user as your web server?
>> - Do you or the web server have some kind of "rc" file that might impact
>> how things run?
>
> Wez you're a genius. When I ran it as the same user as apache it works
> fine. That got me thinking that it makes a log in /tmp. Checking the log
> it was only writable by the apache user. A little chmod later and now my
> script runs perfectly under apache and cli.
>
> Thanks for helping me think outside the box. I spent all day puzzled by
> this, you just made my night.
>
> - Scott
>
> --
> PDO Working Group Mailing List (http://pdo.php.net)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux