cancel
Showing results for 
Search instead for 
Did you mean: 

SQLAnywhere PHP module installation on Ubuntu

Former Member
3,673

What is the recommened way to install ASA PHP 5.3.10 on Ubuntu 12.04 64bit?

I've tried the following:

  • Sourcing sa_confing.sh before apache2 starts is not an option, source is not a recognized command, simply executing the script works only in shell mode, but only for the current user
  • Tryed with /etc/ld.so.conf/sqlanywhere.conf where I put /opt/sqlanywhere12/lib64, now I'm getting an other error:

PHP Warning: PHP Startup: in Unknown on line 0

How can I solve this problem?

0 Kudos

Hi Marko, I've successfully installed the PHP module on Ubuntu using the following whitepaper: http://www.sybase.com/detail?id=1057714 . Please note you don't necessarily need to compile the PHP module yourself, there are precompiled extensions available here: http://scn.sap.com/docs/DOC-40537

Former Member
0 Kudos

Can you tell me, where did you put the library path configuration? .conf, .ini or something...

Former Member
0 Kudos

Which version of the PHP driver are you using? The web site that Mikel referred to has the latest version, so you should try that first, just in case it's a bug that's already been fixed.

Accepted Solutions (0)

Answers (1)

Answers (1)

I added two lines to /etc/apache2/envvars:

LD_LIBRARY_PATH=”/opt/sqlanywhere16/lib64:$LD_LIBRARY_PATH”

export LD_LIBRARY_PATH

Former Member
0 Kudos

Works perfectly! Thanks @Mikel Rychliski Please, convert your comment to answer.