LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2011, 02:09 AM   #1
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Rep: Reputation: 0
Accessing / Connecting to a Sybase database from PHP running under Linux


hello everyone.. good day to all.. this is my first post in this forum, and i am hoping that i can get answers....

i am a newbie in linux... and since i am a newbie, i get some trouble setting up good environment in linux.. i have problem regarding connecting php(under linux) to a sybase server(under windows),,, is there anyway connecting this two technologies?.. i am hoping for your kind help...thank you so much everyone...
 
Old 05-12-2011, 06:36 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
I'm assuming you've looked at

http://php.net/manual/en/book.sybase.php

?
 
Old 05-12-2011, 08:02 PM   #3
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rylan76 View Post
I'm assuming you've looked at

http://php.net/manual/en/book.sybase.php

?
thank you rylan76 for your reply.. but how do i implement it in linux?,, what am i gonna do first.. ive read content of the link you gave me.. but then how to start it with linux.. thanks so much..
 
Old 05-15-2011, 08:25 PM   #4
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
good day everyone... does anyone of you knows how to connect to sybase database from linux..
 
Old 05-16-2011, 03:01 PM   #5
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
Not sure, I've never used sybase in Linux.

All my experience so far was MySQL based.

In order to use MySQL with PHP and Apache in Linux, I first needed to compile and install MySQL.

E. g. you must either compile Sybase and start it running, or install it somehow using your distro's package manager.

Then, once it is running, you may need to compile PHP or install PHP in such a way / from such a package that it has sybase support available.

Then you'll need to compile / install Apache with APXS / APXS2 (AFAIK) support so that it can work with PHP.

See if you do a Google search for something like

install sybase linux
compiling sybase in linux
installing sybase in linux

or

using sybase php linux

etc.

If you get anything helpful.
 
Old 05-16-2011, 03:04 PM   #6
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,487

Rep: Reputation: 88
E. g. part of my PHP configure line when compiling it is:

Code:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/lib/mysql
--with-config-file-path=/usr/lib --with-gd --with-zlib
--with-zlib-dir=/home/rylan/povray-3.6.1/libraries/zlib
--with-jpeg-dir=/home/rylan/povray-3.6.1/libraries/jpeg
--with-png-dir=/home/rylan/povray-3.6.1/libraries/png
--with-pear=/usr/local/lib/php --enable-sockets --enable-ftp
--enable-gd-native-ttf --enable-shmop --enable-bcmath --enable-calendar
--enable-exif --enable-mbstring --enable-soap --enable-zend-multibyte
--enable-force-cgi-redirect --enable-safe-mode --with-ldap --enable-discard-path
--with-kerberos --enable-gd-native-ttf --with-gdbm --with-gettext
--enable-fastcgi --with-openssl --enable-zip --with-curl
--with-mysql-sock=/var/lib/mysql.sock --with-bz2
--with-freetype-dir=/home/rylan/freetype-2.1.10 --with-mcrypt
note the "--with-mysql" and "--with-mysql-sock" statements which respectively

A. Tell PHP to include MySQL support
B. Tell PHP where to "talk" to MySQL

Logically I can surmise that you'll need something similar / the Sybase equivalent passed to PHP if you are going to compile it yourself, to get it to work with Sybase...
 
Old 05-16-2011, 11:08 PM   #7
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
thank you so much rylan76.. yeah i try to search compiling sybase in linux.. thanks for all the effort.. i will you posted as soon as i test my server. thanks a lot..
 
Old 06-05-2011, 09:08 PM   #8
trickynapzter
LQ Newbie
 
Registered: May 2011
Posts: 19

Original Poster
Rep: Reputation: 0
" $]./configure --prefix=/usr/local/freetds --enable-msdblib "

--- i have search some configuration in fretds to enable msdlib, is there any configuration with freetds to enable sybase?.. thanks so much for the help...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error connecting to Oracle database from PHP angel115 Programming 2 10-13-2010 10:39 AM
connecting to Sybase server v1rt Linux - Software 3 08-12-2010 06:23 PM
probs with connecting to mysql database using php ankscorek Linux - Software 4 08-16-2005 08:40 PM
How can access the sybase database? wuzhong Programming 9 12-12-2004 03:28 PM
i am installing a php running board where is my mysql database Virtualhate Linux - Newbie 2 06-03-2004 02:33 AM


All times are GMT -5. The time now is 03:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration