RE: [PHP-DB] database connectivity problem
Thanks Martin... You were right... I had to make Apache run as sybase (gasp!) for it to work really funky but it works... -Original Message- From: Martin Norland [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 01, 2005 3:53 PM To: 'php-db@lists.php.net' Cc: 'php-db@lists.php.net' Subject: Re: [PHP-DB] database connectivity problem Adams, Jonathan K. [C] wrote: > Here is the error: "Warning: sybase_connect() [function.sybase-connect]: > Sybase: Unable to allocate connection record > > My configuration - The database is Sybase ASE 12.0 running on Solaris 8 > The webserver is Apache 1.3.33 with PHP 5 running Solaris 9 > > The sybase libraries are shared via NFS, which is how I built the apache Well, that error certainly doesn't look like it can't see the libraries - it looks more like it can't write somewhere. Are you sure there is sufficient memory for the script [perhaps increase memory_limit in php.ini], and that wherever php might need to store the connection record externally (if applicable) is writable? Unfortunately - you may not be alone: http://bugs.php.net/bug.php?id=30721 http://bugs.php.net/bug.php?id=17489 Cheers, -- - Martin Norland, Database / Web Developer, International Outreach x3257 The opinion(s) contained within this email do not necessarily represent those of St. Jude Children's Research Hospital. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] database connectivity problem
Here is the error: "Warning: sybase_connect() [function.sybase-connect]: Sybase: Unable to allocate connection record My configuration - The database is Sybase ASE 12.0 running on Solaris 8 The webserver is Apache 1.3.33 with PHP 5 running Solaris 9 The sybase libraries are shared via NFS, which is how I built the apache Inside the httpd.conf file I have set several SetEnv tabs to set OCS, ASE, FTS, SYBASE to their proper paths... php_info() confirms this is working I can run isql from this box and connect to the desired database manually... if I set the environment I have seen this errror posted in alot of places, but I do not see anything approaching a solution Could it be because I am sharing the sybase libraries via NFS? I have seen this problem posted from people who have the sybase client installed on their webserver too though... any help would be appreciated because I have pretty much hit a wall here... and I am sure that there must be a way to make this work short of installing apache/php on the same box as the database, which is absolutely not an option... Thanks --J ___ Jon Adams Unix Web Engr. NGA Gateway Services [EMAIL PROTECTED] [EMAIL PROTECTED] Tel: 202-284-4543 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] php database connectivity issues
Here is the error: "Warning: sybase_connect() [function.sybase-connect]: Sybase: Unable to allocate connection record My configuration - The database is Sybase ASE 12.0 running on Solaris 8 The webserver is Apache 1.3.33 with PHP 5 running Solaris 9 The sybase libraries are shared via NFS, which is how I built the apache Inside the httpd.conf file I have set several SetEnv tabs to set OCS, ASE, FTS, SYBASE to their proper paths... php_info() confirms this is working I can run isql from this box and connect to the desired database manually... if I set the environment I have seen this errror posted in alot of places, but I do not see anything approaching a solution Could it be because I am sharing the sybase libraries via NFS? I have seen this problem posted from people who have the sybase client installed on their webserver too though... any help would be appreciated because I have pretty much hit a wall here... and I am sure that there must be a way to make this work short of installing apache/php on the same box as the database, which is absolutely not an option... Thanks --J ___ Jon Adams -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php