Koozali.org: home of the SME Server

Compiling Interbase support into PHP on SME

Offline NickCritten

  • *
  • 245
  • +0/-0
Compiling Interbase support into PHP on SME
« on: November 28, 2005, 01:10:23 PM »
Hi All,

As part of a project I am currently heading up I need to  have my PHP/MySQL application pull info from an Interbase DB.

My Research has turned up the following:
http://ibphoenix.com/main.nfs?a=ibphoenix&s=1132895094:150298&page=ibp_howto13
http://www.ibphoenix.com/main.nfs?a=ibphoenix&page=ibp_beginners_php
http://uk2.php.net/manual/en/ref.ibase.php

I have been hunting around for quite a while now on how to do this but now am a bit stuck...

SME6.5, on which my system currently runs uses PHP4.1.2 I have downloaded the source from php.net.

Now I need to know how to actually 'do' the recompile...

I Know SME does not come as standard with the compiling tools so I know I need to install an RPM containging all the stuff to do the configure and make, but I don't know what it is called so Don't know what to search for...

Once I have the necessary stuff on the server again I'm not sure what to do... I guess I do a

./configure 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-mm' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-debugger' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mbstring' '--enable-mbstr-enc-trans' '--with-apxs=/usr/sbin/apxs'
--with-interbase=/opt/interbase


But is this correct?
I'm still learning, so please be gentle!!
 :hammer:

If there is a document already produced on how to do this, then please provide a swift kick in the arse in the right direction!  :-D

Thanks in Advance
...
Nick

"No good deed goes unpunished." :-x...

ergozd

Compiling Interbase support into PHP on SME
« Reply #1 on: November 28, 2005, 05:55:03 PM »
Hi Nick!

I've compiled PHP for latest releases with interbase (among some other extensions)...

To see compile options check out
http://ergin.dyndns.org/download/SPECS

Compiling PHP RPMS require many packages... Good luck.

Offline NickCritten

  • *
  • 245
  • +0/-0
Compiling Interbase support into PHP on SME
« Reply #2 on: November 28, 2005, 06:10:17 PM »
Hi ergozd,

Thanks for replying.
:-)
I'm afraid I don't know what to do with all those .SPEC files!
Can you provide instructions?

My system is a stock SME 6.5, no contribs (Except PHPMyAdmin)

Thankyou!

Nick
...
Nick

"No good deed goes unpunished." :-x...