Subject | RE: [firebird-php] PHP compiling help for firebird |
---|---|
Author | Nigel Weeks |
Post date | 2005-05-25T22:41:47Z |
Let me know how you go with this, as I don't think there's an official guide
for that process.
Any steps you also needed to do, let me know, and I'll put together a guide,
and (hopefully), get it made official, and easy to find...
Nige.
for that process.
Any steps you also needed to do, let me know, and I'll put together a guide,
and (hopefully), get it made official, and easy to find...
Nige.
> -----Original Message-----
> From: firebird-php@yahoogroups.com
> [mailto:firebird-php@yahoogroups.com] On Behalf Of Peter
> Sent: Wednesday, 25 May 2005 5:53 PM
> To: firebird-php@yahoogroups.com
> Subject: RE: [firebird-php] PHP compiling help for firebird
>
> Thanks Nigel
>
> I'll give that a go
>
> Rgds
>
> Peter
>
> On 25 May 2005 at 8:52, Nigel Weeks wrote:
>
> > Your distributon should have a pre-compiled RPM that just adds the
> > Firebird module into your current PHP.
> >
> > Otherwise, it is possible to compile php, and just copy the loadable
> module
> > into the PHP module directory, and uncomment the line in your
> php.ini.
> >
> > Steps are:
> > 1.
> > Start by finding the ./configure line RedHat(Fedora Group) used
> when
> > building PHP the first time - you can get this from the php_info()
> function
> > in a small php script:
> > <?php
> > php_info();
> > ?>
> >
> > 2.
> > Download the source for the version of PHP you're running(so
> things have a
> > better chance of working)
> > Expand it out somewhere(doesn't really matter where), cd into the
> directory,
> > and just run the ./configure command you got from the previous
> step.
> >
> > 3.
> > If the previous one worked, and all dependencies are found ok, do
> the
> > ./configure again, but add the --enable-interbase=/path/to/firebird.
> > If this works ok, and it can find all the dependencies, you're ready
> to
> > compile.
> >
> > 4.
> > Type make. This will build PHP, but won't install it. Now, find the
> > module(without the backticks):
> > `find . -name "interbase.so"`
> > It's usually inside an 'ext' directory.
> >
> > 5.
> > Copy this file to your PHP extensions directory. On a Fedora
> machine I have
> > access to, this is '/usr/lib/php4/'
> >
> > 6.
> > Tell PHP about the new extension. In your 'php.ini',
> uncomment/add the line
> > 'extension=interbase.so'.
> > My Fedora machine has a directory in '/etc/php.d/' that contains an
> > 'interbase.ini' file the above line in it - might be an
> installation
> > specific thing, I dunno. Just letting you know! :-)
> >
> >
> > You're done. Restart the webserver, and you should be away.
> >
> >
> > (PS. On FreeBSD, do: `cd /usr/ports/databases/php4-interbase`,
> `make
> > install`.
> > But people will run Linux...;-))
> >
> >
> > > -----Original Message-----
> > > From: firebird-php@yahoogroups.com
> > > [mailto:firebird-php@yahoogroups.com] On Behalf Of Peter
> Chaisty
> > > Sent: Wednesday, 25 May 2005 4:13 AM
> > > To: firebird-php@yahoogroups.com
> > > Subject: [firebird-php] PHP compiling help for firebird
> > >
> > > Hi
> > >
> > > I have a working PHP4, apache on fedora core 3 and I
> would like to
> > > add support for firebird 1.5x
> > >
> > > I see from reading through the posts that I will have to
> recompile
> > > php with --with-interbase=/usr/local/firebird
> > >
> > > I have a few issues
> > >
> > > PHP4 was originally installed from rpms and has
> sql,apache support
> > > built in etc which I need to retain How do I recompile my PHP in
> > > this scenario ?
> > > I could download PHP 5 and compile that but do I need to
> remove PHP
> > > 4 first ?
> > >
> > > Is there another way to add support without recompiling ?
> > >
> > > Thanks in advance
> > >
> > > Peter
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > __________ NOD32 1.1106 (20050523) Information __________
> > >
> > > This message was checked by NOD32 antivirus system.
> > > http://www.nod32.com
> > >
> > >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> =================================================
> Peter Chaisty FInstBE e-Mail: peter@...
> -------------------------------------------------
> Cyionics Ltd UK
> Tel: +44(0)1495 785570
> All email is scanned using Norton Antivirus
> =================================================
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
> __________ NOD32 1.1107 (20050524) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com
>
>