Re: [PHP] Recompile PHP on pre-installed system
Great, I'll do it that way. That sounds easier than what I was attempting to do. Thanks! _ From: Dan McCullough [mailto:[EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wed, 08 Feb 2006 13:23:17 -0600 Subject: Re: [PHP] Recompile PHP on pre-installed system you can use php-odbc make sure you have unixODBC or like install on the system, once you do that its a piece of cake, been doing that here for a few months. On 2/8/06, Justin Cook <[EMAIL PROTECTED]> wrote: > Yes, we are using RHE 4 with a support contract. I need to get db2 support > compiled in so we can access our AS400 using ODBC. _ > > From: Rory Browne [mailto:[EMAIL PROTECTED] > To: Marcus Bointon [mailto:[EMAIL PROTECTED] > Cc: Justin Cook [mailto:[EMAIL PROTECTED], PHP General [mailto:[EMAIL > PROTECTED] > Sent: Wed, 08 Feb 2006 12:45:16 -0600 > Subject: Re: [PHP] Recompile PHP on pre-installed system > > If you're using a Redhat Enterprise version with a support contract then I > personally don't think you should attempt to run a non-redhat php binary. > > Instead find out how redhat make their php-mysql or php-ldap or > php-{some_other_php_module} rpm, Make an RPM, and install it like you would > any other RPM. > > Better still would be to upgrade to Debian( they have more php modules I > believe than RH), but that would require much more downtime than an apache > restart. > > What module do you need? > > > On 2/7/06, Marcus Bointon <[EMAIL PROTECTED]> wrote: On 7 Feb 2006, at > 11:13, Jochem Maas wrote: > > > in theory your done, in practice something might bite you in the > > ass ... > > oh and then there is the issue of making sure that the redhat > > package manager really > > won't overwrite your handbuilt php install (cannot for the life of > > me remember what you have > > to do to make redhat ignore the php install). > > This might be of help: http://www.ae.iitm.ac.in/pipermail/ilugc/2005- > August/020152.html > > You can edit those srpms to include whatever configure line switches > you need. > > I run RHEL4, and my own compile of PHP, set up outside of rpm. You > only need to worry about rpm getting confused if you use it to > install any packages that are dependent on php, e.g. squirrelmail. > Essentially either do ALL of your PHP setup and install through rpm > or none of it. I'm quite happy handling PHP myself, and conflicts are > rare as php is rarely a dependency for apps installed through rpm. > > Marcus > -- > Marcus Bointon > Synchromedia Limited: Putting you in the picture > [EMAIL PROTECTED] | http://www.synchromedia.co.uk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recompile PHP on pre-installed system
you can use php-odbc make sure you have unixODBC or like install on the system, once you do that its a piece of cake, been doing that here for a few months. On 2/8/06, Justin Cook <[EMAIL PROTECTED]> wrote: > Yes, we are using RHE 4 with a support contract. I need to get db2 support > compiled in so we can access our AS400 using ODBC. _ > > From: Rory Browne [mailto:[EMAIL PROTECTED] > To: Marcus Bointon [mailto:[EMAIL PROTECTED] > Cc: Justin Cook [mailto:[EMAIL PROTECTED], PHP General [mailto:[EMAIL > PROTECTED] > Sent: Wed, 08 Feb 2006 12:45:16 -0600 > Subject: Re: [PHP] Recompile PHP on pre-installed system > > If you're using a Redhat Enterprise version with a support contract then I > personally don't think you should attempt to run a non-redhat php binary. > > Instead find out how redhat make their php-mysql or php-ldap or > php-{some_other_php_module} rpm, Make an RPM, and install it like you would > any other RPM. > > Better still would be to upgrade to Debian( they have more php modules I > believe than RH), but that would require much more downtime than an apache > restart. > > What module do you need? > > > On 2/7/06, Marcus Bointon <[EMAIL PROTECTED]> wrote: On 7 Feb 2006, at > 11:13, Jochem Maas wrote: > > > in theory your done, in practice something might bite you in the > > ass ... > > oh and then there is the issue of making sure that the redhat > > package manager really > > won't overwrite your handbuilt php install (cannot for the life of > > me remember what you have > > to do to make redhat ignore the php install). > > This might be of help: http://www.ae.iitm.ac.in/pipermail/ilugc/2005- > August/020152.html > > You can edit those srpms to include whatever configure line switches > you need. > > I run RHEL4, and my own compile of PHP, set up outside of rpm. You > only need to worry about rpm getting confused if you use it to > install any packages that are dependent on php, e.g. squirrelmail. > Essentially either do ALL of your PHP setup and install through rpm > or none of it. I'm quite happy handling PHP myself, and conflicts are > rare as php is rarely a dependency for apps installed through rpm. > > Marcus > -- > Marcus Bointon > Synchromedia Limited: Putting you in the picture > [EMAIL PROTECTED] | http://www.synchromedia.co.uk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recompile PHP on pre-installed system
Yes, we are using RHE 4 with a support contract. I need to get db2 support compiled in so we can access our AS400 using ODBC. _ From: Rory Browne [mailto:[EMAIL PROTECTED] To: Marcus Bointon [mailto:[EMAIL PROTECTED] Cc: Justin Cook [mailto:[EMAIL PROTECTED], PHP General [mailto:[EMAIL PROTECTED] Sent: Wed, 08 Feb 2006 12:45:16 -0600 Subject: Re: [PHP] Recompile PHP on pre-installed system If you're using a Redhat Enterprise version with a support contract then I personally don't think you should attempt to run a non-redhat php binary. Instead find out how redhat make their php-mysql or php-ldap or php-{some_other_php_module} rpm, Make an RPM, and install it like you would any other RPM. Better still would be to upgrade to Debian( they have more php modules I believe than RH), but that would require much more downtime than an apache restart. What module do you need? On 2/7/06, Marcus Bointon <[EMAIL PROTECTED]> wrote: On 7 Feb 2006, at 11:13, Jochem Maas wrote: > in theory your done, in practice something might bite you in the > ass ... > oh and then there is the issue of making sure that the redhat > package manager really > won't overwrite your handbuilt php install (cannot for the life of > me remember what you have > to do to make redhat ignore the php install). This might be of help: http://www.ae.iitm.ac.in/pipermail/ilugc/2005- August/020152.html You can edit those srpms to include whatever configure line switches you need. I run RHEL4, and my own compile of PHP, set up outside of rpm. You only need to worry about rpm getting confused if you use it to install any packages that are dependent on php, e.g. squirrelmail. Essentially either do ALL of your PHP setup and install through rpm or none of it. I'm quite happy handling PHP myself, and conflicts are rare as php is rarely a dependency for apps installed through rpm. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recompile PHP on pre-installed system
If you're using a Redhat Enterprise version with a support contract then I personally don't think you should attempt to run a non-redhat php binary. Instead find out how redhat make their php-mysql or php-ldap or php-{some_other_php_module} rpm, Make an RPM, and install it like you would any other RPM. Better still would be to upgrade to Debian( they have more php modules I believe than RH), but that would require much more downtime than an apache restart. What module do you need? On 2/7/06, Marcus Bointon <[EMAIL PROTECTED]> wrote: > > On 7 Feb 2006, at 11:13, Jochem Maas wrote: > > > in theory your done, in practice something might bite you in the > > ass ... > > oh and then there is the issue of making sure that the redhat > > package manager really > > won't overwrite your handbuilt php install (cannot for the life of > > me remember what you have > > to do to make redhat ignore the php install). > > This might be of help: http://www.ae.iitm.ac.in/pipermail/ilugc/2005- > August/020152.html > > You can edit those srpms to include whatever configure line switches > you need. > > I run RHEL4, and my own compile of PHP, set up outside of rpm. You > only need to worry about rpm getting confused if you use it to > install any packages that are dependent on php, e.g. squirrelmail. > Essentially either do ALL of your PHP setup and install through rpm > or none of it. I'm quite happy handling PHP myself, and conflicts are > rare as php is rarely a dependency for apps installed through rpm. > > Marcus > -- > Marcus Bointon > Synchromedia Limited: Putting you in the picture > [EMAIL PROTECTED] | http://www.synchromedia.co.uk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Recompile PHP on pre-installed system
On 7 Feb 2006, at 11:13, Jochem Maas wrote: in theory your done, in practice something might bite you in the ass ... oh and then there is the issue of making sure that the redhat package manager really won't overwrite your handbuilt php install (cannot for the life of me remember what you have to do to make redhat ignore the php install). This might be of help: http://www.ae.iitm.ac.in/pipermail/ilugc/2005- August/020152.html You can edit those srpms to include whatever configure line switches you need. I run RHEL4, and my own compile of PHP, set up outside of rpm. You only need to worry about rpm getting confused if you use it to install any packages that are dependent on php, e.g. squirrelmail. Essentially either do ALL of your PHP setup and install through rpm or none of it. I'm quite happy handling PHP myself, and conflicts are rare as php is rarely a dependency for apps installed through rpm. Marcus -- Marcus Bointon Synchromedia Limited: Putting you in the picture [EMAIL PROTECTED] | http://www.synchromedia.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Recompile PHP on pre-installed system
Justin Cook wrote: Before I came to my company, they created a Redhat server for our web server. Of course they let the redhat installer install PHP. It all works great but now I need to compile a module into php. Is this possible to do without causing havok? Bascially we really can't have more downtime that it would take to stop and start Apache. Would the best solution be to download the php source, compile it into the directory it is installed into now, but only compile with the new module or will I need to compile it using the --with-apxs and all of the other modules that it is already compiled with? I would rather not have to recompile with all of the options that it is compiled with now. I don't like redhat - I would take the time to build it manually (avoids redhat from updating your php install) steps to take: 1. download source 2. compile (with alll req. modules) 3. do a 'make test' 4. install 5. edit/check the relevant conf files. 6 restart apache in theory your done, in practice something might bite you in the ass ... oh and then there is the issue of making sure that the redhat package manager really won't overwrite your handbuilt php install (cannot for the life of me remember what you have to do to make redhat ignore the php install). Thanks for you help! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Recompile PHP on pre-installed system
Before I came to my company, they created a Redhat server for our web server. Of course they let the redhat installer install PHP. It all works great but now I need to compile a module into php. Is this possible to do without causing havok? Bascially we really can't have more downtime that it would take to stop and start Apache. Would the best solution be to download the php source, compile it into the directory it is installed into now, but only compile with the new module or will I need to compile it using the --with-apxs and all of the other modules that it is already compiled with? I would rather not have to recompile with all of the options that it is compiled with now. Thanks for you help!