Disclaimer: My advice is only good until you get to php-4.3.0, which
apparently will NOT compile on a RedHat8 box. I have heard rumours that it
is possible, but I have no proof that is has actually been done. I am still
waiting for news as to a possible fix or temporary workaround, but lose hope
as the weeks pass without a response...
*** IF YOU KNOW HOW TO BUILD RPMS, SKIP THIS MESSAGE ***
I always look for the SRPM for php. The last one I had was for 4.2.2 (so it
will be used for this example). This basically included the source file and
a spec file. If you do this (as root):
rpm -i php-4.2.2-8.0.6.src.rpm
It will put the source tarball in /usr/src/redhat/SOURCES, and a specfile in
/usr/src/redhat/SPECS. You can now use the specfile (php-4.2.2-8.0.6.spec in
this example) for future releases of php. Copy it to another name (typically
for a newer version), and then open it in an editor. Take a look around, you
will see instructions on what version the source tarball is (change that) and
other details as well. You will clearly find the options passed to
./configure. Add/remove the options that are not included in the standard
RPM from RedHat, and then issue:
rpm --ba /usr/src/redhat/SPECS/php-YOUR_VERSION.spec
This will create both an SRPM and the collection of RPMS for your machine.
I am forced to do this, as the libraries usually link to an older system
(postgres, for example). So when I rebuild from source, php is linked to the
new/correct library.
With a working specfile, you can download newer php releases, modify the
specfile for that release, and build your own RPMs. For more detailed
information, freshrpms.net is an excellent resource, as well as the home for
some awesome add-ons for RedHat - like apt for rpm.
Let me know if this helps or not, I'd like to know if this was the answer to
your question or if I am just blabbing -;^>=
-- Mitch
On Saturday 25 January 2003 17:52, Lukasz Karapuda wrote:
> Continuing unfinished post: :-)
> Modular RPM packages:
> http://rpms.arvin.dk/php/rh72/i686/
>
> I am asking someone knowledgable for advice, what is the best way to
> install modularized and customized configurations of PHP on RedHat 7.3.
>
> Cheers,
> ______________________________
> Lukasz Karapuda
> developer -- newline Creations LLC.
> @ [EMAIL PROTECTED]
> Y! lukaszkarapuda
> "Lukasz Karapuda" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> > Hello.
> >
> > Lately I have been having certain thoughts about the use of PHP RPM's for
> > RedHat 7.3.
> > As you all know the default set of PHP rpm's for RH 7.3 available via RHN
>
> is
>
> > composed of the following modules:
> > -----------------------
> > php-4.1.2-7.3.6
> > php-dbg-4.1.2-7
> > php-devel-4.1.2-7.3.6
> > php-imap-4.1.2-7.3.6
> > php-ldap-4.1.2-7.3.6
> > php-manual-4.1.2-7.3.6
> > php-mysql-4.1.2-7.3.6
> > php-odbc-4.1.2-7.3.6
> > php-pgsql-4.1.2-7.3.6
> > php-snmp-4.1.2-7.3.6
> > ------------------------
> >
> > At the same time certain PHP extensions are not compiled in and or NOT
> > available as seperate RPM on RHN (eg. DOMXML, EXIF, JPEG).
> >
> > Personally I require many of the PHP extensions, which are not part of
> > the default RPM compilation.
> > Therefore I see 2 options:
> > 1. Compile PHP by myself, with the necessary extensions.
> > (creates problems, because of the fact that many of the extensions are
> > dependent upon different versions of libaries, than the ones available on
> > RHN )
> > 2. Find a source for modular PHP RPM's (i.e. different RPM's for
> > different compile options).
> > So far I have found one (does not offer the most recent PHP version):
> >
> >
> >
> >
> >
> >
> >
> > ______________________________
> > Lukasz Karapuda
> > developer -- newline Creations LLC.
> > @ [EMAIL PROTECTED]
> > Y! lukaszkarapuda
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php