Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Unable to load the php module for sqlanywhere 10 on fedora / apache

3 posts in General Discussion Last posting was on 2007-05-06 12:32:27.0Z
Ralph Bitar Posted on 2007-05-03 08:22:33.0Z
Sender: 604.46309dfc.1804289383@sybase.com
From: Ralph Bitar
Newsgroups: ianywhere.public.general
Subject: Unable to load the php module for sqlanywhere 10 on fedora / apache
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <46399bc9.d7c.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 May 2007 01:22:33 -0700
X-Trace: forums-1-dub 1178180553 10.22.241.41 (3 May 2007 01:22:33 -0700)
X-Original-Trace: 3 May 2007 01:22:33 -0700, 10.22.241.41
Lines: 22
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5970
Article PK: 1947

I have followed the instructions in the help documentation
file and updated the php.ini to include the extension and to
set the various parameters (sqlanywhere.autocommit, etc...)
then copied the module file (.so) to the php modules folder.

To verify, I have checked the php module by executing the
following from a command prompt
# php --version

and got the following

PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php/modules/php-5.1.2_sqlanywhere10_r.so' -
libdbtasks10_r.so: cannot open shared object file: No such
file or directory in Unknown on line 0
PHP 5.1.6 (cli) (built: Apr 5 2007 09:46:53)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend
Technologies


Any suggestions?


Ralph Bitar Posted on 2007-05-03 10:02:36.0Z
Sender: 604.46309dfc.1804289383@sybase.com
From: Ralph Bitar
Newsgroups: ianywhere.public.general
Subject: Update
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4639b33c.fb3.1681692777@sybase.com>
References: <46399bc9.d7c.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 3 May 2007 03:02:36 -0700
X-Trace: forums-1-dub 1178186556 10.22.241.41 (3 May 2007 03:02:36 -0700)
X-Original-Trace: 3 May 2007 03:02:36 -0700, 10.22.241.41
Lines: 5
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5971
Article PK: 1945

The module is loaded correctly if I source the shell script
/opt/sqlanywhere10/lib32/sa_config.sh.

How can I source this file directly from php / apache upon
starting the httpd deamon?


Mark Culp Posted on 2007-05-06 12:32:27.0Z
Message-ID: <463DCADA.EDD7618F@iAnywhere.com>
From: Mark Culp <reply_to_newsgroups_only_please_nospam_mark.culp@iAnywhere.com>
X-Mailer: Mozilla 4.75 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: ianywhere.public.general
Subject: Re: Update
References: <46399bc9.d7c.1681692777@sybase.com> <4639b33c.fb3.1681692777@sybase.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: cpe0004e23b1c57-cm00111a59be64.cpe.net.cable.rogers.com
X-Original-NNTP-Posting-Host: cpe0004e23b1c57-cm00111a59be64.cpe.net.cable.rogers.com
Date: 6 May 2007 05:32:27 -0700
X-Trace: forums-1-dub 1178454747 72.143.143.187 (6 May 2007 05:32:27 -0700)
X-Original-Trace: 6 May 2007 05:32:27 -0700, cpe0004e23b1c57-cm00111a59be64.cpe.net.cable.rogers.com
Lines: 16
X-Authenticated-User: techsupp
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub ianywhere.public.general:5978
Article PK: 1948

One way would be to add the line to your /etc/init.d/apache2 service script.
(or whatever it is called on Fedora)
--
Mark Culp
SQLAnywhere Research and Development
-------------------------------------------------------------------------
** Whitepapers, TechDocs, bug fixes are all available through the **
** iAnywhere Developer Community at http://www.ianywhere.com/developer **
-------------------------------------------------------------------------

Ralph, Bitar wrote:
>
> The module is loaded correctly if I source the shell script
> /opt/sqlanywhere10/lib32/sa_config.sh.
>
> How can I source this file directly from php / apache upon
> starting the httpd deamon?