Koozali.org: home of the SME Server
Obsolete Releases => SME Server 8.x => Topic started by: mrtblt 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
-
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
-
You should also make sure that interbase support is compiled in by looking through the output of the phpinfo(); command.
-
This help is so much complicated for a novice user like me :)
Is there any step by step instruction?
-
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
-
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:
'./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'
-
Cactus,
It means that there is no way to enable PHP to access interbase database within SME Server?
-
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.
-
This is possible with Centos 6. Or another linux distro?
-
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