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?

asked 30 Sep '13, 11:35

Marko's gravatar image

Marko
56449
accept rate: 0%

edited 30 Sep '13, 11:52

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

(30 Sep '13, 11:46) Mikel Rychliski
Replies hidden

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

(30 Sep '13, 12:04) Marko

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.

(30 Sep '13, 17:00) Phil Mitchell

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

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

export LD_LIBRARY_PATH

permanent link

answered 30 Sep '13, 12:06

Mikel%20Rychliski's gravatar image

Mikel Rychliski
2.1k1641
accept rate: 30%

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

(01 Oct '13, 12:01) Marko
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×409
×46

question asked: 30 Sep '13, 11:35

question was seen: 1,551 times

last updated: 01 Oct '13, 14:39