Koozali.org: home of the SME Server

enabling interbase support for php

Offline mrtblt

  • *
  • 7
  • +0/-0
enabling interbase support for php
« on: November 08, 2011, 10:43:41 AM »
Hi

I want to enable interbase support for php in my server 8.06 beta. In local wamp server, i do it in php ini but i dont know how in sme

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: enabling interbase support for php
« Reply #1 on: November 08, 2011, 01:23:47 PM »
mrtblt

You need to make a custom template for php.in with your required settings for interbase support
http://wiki.contribs.org/Template_Tutorial
see this as a general guide (with a php.ini example)
and consult
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
for more technical details

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: enabling interbase support for php
« Reply #2 on: November 08, 2011, 03:07:32 PM »
You should also make sure that interbase support is compiled in by looking through the output of the phpinfo(); command.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mrtblt

  • *
  • 7
  • +0/-0
Re: enabling interbase support for php
« Reply #3 on: November 08, 2011, 10:17:14 PM »
This help is so much complicated for a novice user like me :)

Is there any step by step instruction?

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: enabling interbase support for php
« Reply #4 on: November 09, 2011, 12:09:19 AM »
mrtblt

Did you read the php.ini example ? Based on that try

mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cd /etc/e-smith/templates-custom/etc/php.ini
touch /etc/e-smith/templates-custom/etc/php.ini/50interbase

Edit the fragment and make your required changes (ie whatever you usually put in the wamp php.ini)
pico -w /etc/e-smith/templates-custom/etc/php.ini/50interbase
Save changes and exit (press the following keys together)
Ctrl o
Ctrl x

Expand template and restart httpd-e-smith
expand template /etc/php.ini
sv t /service/httpd-e-smith

Examine /etc/php.ini to see that your changes have been created.
The position of the interbase entry is determined by the numerical name of the fragment eg 90interbase will be further down than 50interbase. You may have to experiment.

To revert your system to normal, delete the 50interbase custom template fragment, expand & restart as shown above
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: enabling interbase support for php
« Reply #5 on: November 09, 2011, 07:06:07 AM »
I think it will not work as AFAICT interbase support should be compiled into PHP which it isn't for SME Server as according to the output of phpinfo()'s configure command does not contain --with-interbase:

Code: [Select]
'./configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--without-sqlite' '--with-libxml-dir=/usr' '--enable-xml' '--with-system-tzdata' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--disable-dom' '--disable-dba' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem'
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mrtblt

  • *
  • 7
  • +0/-0
Re: enabling interbase support for php
« Reply #6 on: November 12, 2011, 05:54:18 AM »
Cactus,

It means that there is no way to enable PHP to access interbase database within SME Server?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: enabling interbase support for php
« Reply #7 on: November 12, 2011, 01:42:33 PM »
It means that there is no way to enable PHP to access interbase database within SME Server?
Yes, with the current PHP on SME Server that would not be possible.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline mrtblt

  • *
  • 7
  • +0/-0
Re: enabling interbase support for php
« Reply #8 on: November 14, 2011, 05:54:01 PM »
This is possible with Centos 6. Or another linux distro?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: enabling interbase support for php
« Reply #9 on: November 14, 2011, 06:05:49 PM »
if you are using php 5.3.3, enable Epel repo (see wiki) and install php53-interbase rpm..
then you have do create a custom fragment to add the module to php.ini