My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Many thanks for any help you can offer....
Todd
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
Tom
Tom -
I need a refresher here! If I remember correctly (it has been several years since I was exposed to this), the .srpm is the source, but I am not sure how to rebuild it. The configure that includes Interbase is
# ./configure --with-interbase=shared,/opt/firebird
Can you point me toward some examples of recompiling the .srpm for PHP? That really makes sense. As I have said in other messages, it is about every few years that I need to revisit this aspect of Linux, so my abilities are limited/rusty. The rest of my time is spent with Delphi writing applications for my clients in the "other" environment/OS.
Todd
Tom Diehl wrote:
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
Tom _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Sun, 7 Jan 2007, Todd Cary wrote:
Tom -
I need a refresher here! If I remember correctly (it has been several years since I was exposed to this), the .srpm is the source, but I am not sure how to rebuild it. The configure that includes Interbase is
# ./configure --with-interbase=shared,/opt/firebird
Can you point me toward some examples of recompiling the .srpm for PHP? That really makes sense. As I have said in other messages, it is about every few years that I need to revisit this aspect of Linux, so my abilities are limited/rusty. The rest of my time is spent with Delphi writing applications for my clients in the "other" environment/OS.
I would suggest you get the fedora rpmdevtools rpm and run the rpmdev-setuptree program to setup a build tree within your home directory. Yes, I know you are running CentOS but the package is a noarch thing and the rpmdev-setuptree program is just a bash script. That will give you a place to build your rpms.
It sounds like it should be as simple as running rpm -Uvh php-whatever.src.rpm, then editing the .spec file, modifying the configure line and then running rpmbuild -ba php-whatever.spec.
Of course your mileage may vary and we all know that the above would be too easy but you never know. You might get lucky :-)
If you want to step through the build process you can do rpmbuild -bp for the prep step, -bc for the prep and compile, etc.. man rpmbuild or the docs at rpm.org will have more detailed info.
Hope this helps,
Regards,
Tom
-----Original Message-----
Tom Diehl wrote:
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
This is strange as I have downloaded PHP 4.4.x from PHP.net and recompiled it on about 5 CentOS 4.4. boxes without problems - once I had all the dependencies sorted :-) - I've got it down to about a 10 minute job now.
On Mon, Jan 08, 2007 at 04:39:00PM -0000, Nigel Kendrick enlightened us:
-----Original Message-----
Tom Diehl wrote:
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
This is strange as I have downloaded PHP 4.4.x from PHP.net and recompiled it on about 5 CentOS 4.4. boxes without problems - once I had all the dependencies sorted :-) - I've got it down to about a 10 minute job now.
Assuming by "downloaded from PHP.net" you mean you got the tarball and did it, congratulations, you just ruined the entire point of a Package-Managed system.
See http://wiki.centos.org/PackageManagement/SourceInstalls for why you shouldn't do that.
Matt
Matt Hyclak wrote:
On Mon, Jan 08, 2007 at 04:39:00PM -0000, Nigel Kendrick enlightened us:
-----Original Message-----
Tom Diehl wrote:
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
This is strange as I have downloaded PHP 4.4.x from PHP.net and recompiled it on about 5 CentOS 4.4. boxes without problems - once I had all the dependencies sorted :-) - I've got it down to about a 10 minute job now.
Assuming by "downloaded from PHP.net" you mean you got the tarball and did it, congratulations, you just ruined the entire point of a Package-Managed system.
See http://wiki.centos.org/PackageManagement/SourceInstalls for why you shouldn't do that.
Matt
Matt -
Though my skills as a System Administrator are very limited, I do want, if possible, keep a Package-Managed system. I do have the .src.rpm file for the PHP. What I need help with is how to recompile it (I assume that I would use rpmbuild) and REPLACE the currently installed version with the new version.
Todd
On Mon, Jan 08, 2007 at 10:42:52AM -0800, Todd Cary enlightened us:
Matt Hyclak wrote:
On Mon, Jan 08, 2007 at 04:39:00PM -0000, Nigel Kendrick enlightened us:
-----Original Message-----
Tom Diehl wrote:
On Sun, 7 Jan 2007, Todd Cary wrote:
My version of Centos (4.4) comes with php 4.3.9. Since I run Interbase on the server, I need to recompile the php with Interbase. The only php I have found is 4.4 which I have downloaded and untarred as well as configuring it with Interbase, doing the make and make install.
Where I am lost is on having Apache (httpd) use it rather than the 4.3.9 ( http://209.204.172.137:82/testphp.php ).
When I do the make install, where does it go?
Why not save yourself a ton of grief and rebuild the .srpm that came with your version of CentOS?
Regards,
This is strange as I have downloaded PHP 4.4.x from PHP.net and recompiled it on about 5 CentOS 4.4. boxes without problems - once I had all the dependencies sorted :-) - I've got it down to about a 10 minute job now.
Assuming by "downloaded from PHP.net" you mean you got the tarball and did it, congratulations, you just ruined the entire point of a Package-Managed system.
See http://wiki.centos.org/PackageManagement/SourceInstalls for why you shouldn't do that.
Matt
Matt -
Though my skills as a System Administrator are very limited, I do want, if possible, keep a Package-Managed system. I do have the .src.rpm file for the PHP. What I need help with is how to recompile it (I assume that I would use rpmbuild) and REPLACE the currently installed version with the new version.
I think it was covered earlier in the thread, but the best way to do what you are proposing is to install the .src.rpm (which expands all the files, and more specifically gets you the php.spec file). Then you edit the php.spec file and add your line to the configure script, then rpmbuild -ba php.spec.
Matt
Todd Cary wrote:
Tom -
I need a refresher here! If I remember correctly (it has been several years since I was exposed to this), the .srpm is the source, but I am not sure how to rebuild it. The configure that includes Interbase is
The src.rpm is the source, and the process for rebuilding it is well documented. man rpm man rpmbuild and if that's not enough, google knows.
Always, do some research before asking for help, and outline what you've done so folk know what you have done and can tailor their reples accordingly. There is no point in us telling you stuff you already know, and the quickest way to an answer is often to help yourself.