public inbox for gentoo-server@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-server] php 4 to 5
@ 2007-10-19 21:17 Ben Munat
  2007-10-19 21:26 ` Ryan Gibbons
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ben Munat @ 2007-10-19 21:17 UTC (permalink / raw
  To: gentoo-server

Hello list,

So, I know I'm a bad gentoo administrator and all, but I am just getting around 
to moving from php 4 to 5. Was wondering if anyone knew of any gotchas to watch 
out for or guides to help with the process. Everything I'm finding through 
google seems to be about the update from the old php packages to dev-lang/php, 
which I did a long time ago.

It would be really sweet if I could just unmask php and emerge. What are the 
chances of it being that easy?

Thanks,

Ben
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 21:17 [gentoo-server] php 4 to 5 Ben Munat
@ 2007-10-19 21:26 ` Ryan Gibbons
  2007-10-19 21:29 ` Georges Toth
  2007-10-20 19:14 ` Ben Munat
  2 siblings, 0 replies; 10+ messages in thread
From: Ryan Gibbons @ 2007-10-19 21:26 UTC (permalink / raw
  To: gentoo-server

[-- Attachment #1: Type: text/plain, Size: 1286 bytes --]

Ben Munat wrote:
> Hello list,
>
> So, I know I'm a bad gentoo administrator and all, but I am just 
> getting around to moving from php 4 to 5. Was wondering if anyone knew 
> of any gotchas to watch out for or guides to help with the process. 
> Everything I'm finding through google seems to be about the update 
> from the old php packages to dev-lang/php, which I did a long time ago.
>
> It would be really sweet if I could just unmask php and emerge. What 
> are the chances of it being that easy?
>
> Thanks,
>
> Ben
I would say the chances are 50/50 :)  It really depends on what is being 
used.  If you have a lot of complex applications, that use a lot of PEAR 
or other PHP packages it might take a few goes to get all the packages 
you need for php5.  Also if you have a lot of applications that still 
are not compatible with PHP 5 (which is my case I believe, still need to 
find time to go and check it), you will run into problems.

I've read somewhere about people moving to php5 will run php4 through 
cgi, and then just process the document extensions differently. (a 
simple bash script could go through several sub direcotries renaming all 
.php to .php4).  Just some thoughts.

I'd ask you keep us , and specifically me , updated on how well the 
process goes :D

[-- Attachment #2: Type: text/html, Size: 1689 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 21:17 [gentoo-server] php 4 to 5 Ben Munat
  2007-10-19 21:26 ` Ryan Gibbons
@ 2007-10-19 21:29 ` Georges Toth
  2007-10-19 22:01   ` Ben Munat
  2007-10-20 19:14 ` Ben Munat
  2 siblings, 1 reply; 10+ messages in thread
From: Georges Toth @ 2007-10-19 21:29 UTC (permalink / raw
  To: gentoo-server; +Cc: Ben Munat

Hi Ben,

> So, I know I'm a bad gentoo administrator and all, but I am just getting
> around to moving from php 4 to 5. Was wondering if anyone knew of any
> gotchas to watch out for or guides to help with the process. Everything I'm
> finding through google seems to be about the update from the old php
> packages to dev-lang/php, which I did a long time ago.
>
> It would be really sweet if I could just unmask php and emerge. What are
> the chances of it being that easy?

It depends on the php scripts you use.
If they are php5 compatible, the migration should be smooth.
php-dependant libraries need to be re-emerged, same goes for pecl packages 
(pecl4 -> pecl5).

If you've got scripts which are php5 incompatible, you have a problem.
One solution is to run php4 as cgi for that specific docroot, or have both 
php4 and php5 running as modules using the concurrent patch (but I wouldn't 
advise that as it *sadly* isn't supported upstream).


I just wish they would make it easier for running different php versions on 
the same server, as apache modules....and now with php6 being 
released "soon".... but oh well ;-)


Hope this helped.


-- 
regards,
Georges Toth
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 21:29 ` Georges Toth
@ 2007-10-19 22:01   ` Ben Munat
  2007-10-19 22:14     ` Georges Toth
  2007-10-19 22:22     ` kashani
  0 siblings, 2 replies; 10+ messages in thread
From: Ben Munat @ 2007-10-19 22:01 UTC (permalink / raw
  To: gentoo-server

Thanks to both Georges and Ryan for their replies. Yeah, I suppose it would have 
made sense for me to mention what I'm using.

I have phppgadmin, phpmyadmin, squirrelmail, and postfixadmin (in an overlay, 
and unfortunately with some customization) on my machine. I think at least the 
first three are php5-ready.

For custom stuff, there is one complete site -- written by my brother -- using 
php. Hopefully it's not using any php4-specific stuff. I think he does use some 
PEAR modules... MDB2, Http_Client, etc. Luckily I think that site's going to 
reach end-of-life soon (was an internal site for a research project), so maybe 
this update will rush that along. :-)

Other than this, there are a few pages here and there that use some php. I don't 
think any of those use any libraries or fancy stuff... hopefully not.

Now, I should not need to re-emerge the webapps (phpmyadmin, etc.), right? They 
don't have any compiled code. I'd rather not deal with the configs if possible. 
I will re-emerge all the PEAR/PECL stuff though.

Will write again to let you know how it went.

Ben

PS: Hmm, so the email the other day said that php4 would be removed from the 
tree yesterday. So, I suppose that this means that if I move to php5 there's no 
way to move back to php4? :-o


Georges Toth wrote:
> Hi Ben,
> 
>> So, I know I'm a bad gentoo administrator and all, but I am just getting
>> around to moving from php 4 to 5. Was wondering if anyone knew of any
>> gotchas to watch out for or guides to help with the process. Everything I'm
>> finding through google seems to be about the update from the old php
>> packages to dev-lang/php, which I did a long time ago.
>>
>> It would be really sweet if I could just unmask php and emerge. What are
>> the chances of it being that easy?
> 
> It depends on the php scripts you use.
> If they are php5 compatible, the migration should be smooth.
> php-dependant libraries need to be re-emerged, same goes for pecl packages 
> (pecl4 -> pecl5).
> 
> If you've got scripts which are php5 incompatible, you have a problem.
> One solution is to run php4 as cgi for that specific docroot, or have both 
> php4 and php5 running as modules using the concurrent patch (but I wouldn't 
> advise that as it *sadly* isn't supported upstream).
> 
> 
> I just wish they would make it easier for running different php versions on 
> the same server, as apache modules....and now with php6 being 
> released "soon".... but oh well ;-)
> 
> 
> Hope this helped.
> 
> 

-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 22:01   ` Ben Munat
@ 2007-10-19 22:14     ` Georges Toth
  2007-10-19 22:22     ` kashani
  1 sibling, 0 replies; 10+ messages in thread
From: Georges Toth @ 2007-10-19 22:14 UTC (permalink / raw
  To: gentoo-server; +Cc: Ben Munat

> I have phppgadmin, phpmyadmin, squirrelmail, and postfixadmin (in an
> overlay, and unfortunately with some customization) on my machine. I think
> at least the first three are php5-ready.

I "think" postfixadmin is compatible.
phpmyadmin is, phppgadmin not sure, and squirrel dunno either....but a quick 
check on the respective websites will tell :-).


> For custom stuff, there is one complete site -- written by my brother --
> using php. Hopefully it's not using any php4-specific stuff. I think he
> does use some PEAR modules... MDB2, Http_Client, etc. Luckily I think that
> site's going to reach end-of-life soon (was an internal site for a research
> project), so maybe this update will rush that along. :-)

If you got scripts using PEAR modules, they don't necessarily brake, it's 
rather more fancy scripts in general which brake :-).


> Now, I should not need to re-emerge the webapps (phpmyadmin, etc.), right?
> They don't have any compiled code. I'd rather not deal with the configs if
> possible.

Nope...only pecl + php itself

I guess as you don't have that much scripts, checking the site for the above 
mentioned tools and testing with the other custom stuff should do the job.
You shouldn't hit too much trouble I guess.


Goo luck :-)




-- 
regards,
Georges Toth
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 22:01   ` Ben Munat
  2007-10-19 22:14     ` Georges Toth
@ 2007-10-19 22:22     ` kashani
  2007-10-19 22:26       ` Ben Munat
  1 sibling, 1 reply; 10+ messages in thread
From: kashani @ 2007-10-19 22:22 UTC (permalink / raw
  To: gentoo-server

Ben Munat wrote:
> Thanks to both Georges and Ryan for their replies. Yeah, I suppose it 
> would have made sense for me to mention what I'm using.
> 
> I have phppgadmin, phpmyadmin, squirrelmail, and postfixadmin (in an 
> overlay, and unfortunately with some customization) on my machine. I 
> think at least the first three are php5-ready.

I've run all four in PHP 5. You should have no problems.

kashani
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 22:22     ` kashani
@ 2007-10-19 22:26       ` Ben Munat
  2007-10-20  3:13         ` j k
  0 siblings, 1 reply; 10+ messages in thread
From: Ben Munat @ 2007-10-19 22:26 UTC (permalink / raw
  To: gentoo-server

Sweet, thanks!

b

kashani wrote:
> Ben Munat wrote:
>> Thanks to both Georges and Ryan for their replies. Yeah, I suppose it 
>> would have made sense for me to mention what I'm using.
>>
>> I have phppgadmin, phpmyadmin, squirrelmail, and postfixadmin (in an 
>> overlay, and unfortunately with some customization) on my machine. I 
>> think at least the first three are php5-ready.
> 
> I've run all four in PHP 5. You should have no problems.
> 
> kashani
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 22:26       ` Ben Munat
@ 2007-10-20  3:13         ` j k
  0 siblings, 0 replies; 10+ messages in thread
From: j k @ 2007-10-20  3:13 UTC (permalink / raw
  To: gentoo-server

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

I have a similar problem but minor compared to what some will be having on
large sites. I have a server with both 4 and 5 but mostly 4 codebase.
There's about a dozen virtual hosts that need to be got\ten up to speed.

My appraoch is is to build a second server on an old box, mirroring
everything in the web root but with only php5 running and that way I'll see
what will break before doing the real thing.

[-- Attachment #2: Type: text/html, Size: 427 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-19 21:17 [gentoo-server] php 4 to 5 Ben Munat
  2007-10-19 21:26 ` Ryan Gibbons
  2007-10-19 21:29 ` Georges Toth
@ 2007-10-20 19:14 ` Ben Munat
  2007-10-21  0:00   ` Hex Star
  2 siblings, 1 reply; 10+ messages in thread
From: Ben Munat @ 2007-10-20 19:14 UTC (permalink / raw
  To: gentoo-server

Well, my move from php4 to php5 was pretty anti-climactic. I just unmasked php 
and emerged. Had to switch to php5 with php-select after that. Then I checked my 
sites and I haven't found any problems so far.

Well, there was an error in phpmyadmin that was due to a config issue, but that 
may have been there for a while... I didn't have my config.inc.php set up right.

So, if you don't have a lot of custom php, this move should be a snap. 
(Hopefully I haven't just missed subtle problems.)

Ben

Ben Munat wrote:
> Hello list,
> 
> So, I know I'm a bad gentoo administrator and all, but I am just getting 
> around to moving from php 4 to 5. Was wondering if anyone knew of any 
> gotchas to watch out for or guides to help with the process. Everything 
> I'm finding through google seems to be about the update from the old php 
> packages to dev-lang/php, which I did a long time ago.
> 
> It would be really sweet if I could just unmask php and emerge. What are 
> the chances of it being that easy?
> 
> Thanks,
> 
> Ben
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-server] php 4 to 5
  2007-10-20 19:14 ` Ben Munat
@ 2007-10-21  0:00   ` Hex Star
  0 siblings, 0 replies; 10+ messages in thread
From: Hex Star @ 2007-10-21  0:00 UTC (permalink / raw
  To: gentoo-server

On 10/20/07, Ben Munat <bent@munat.com> wrote:
> Well, my move from php4 to php5 was pretty anti-climactic. I just unmasked php
> and emerged. Had to switch to php5 with php-select after that. Then I checked my
> sites and I haven't found any problems so far.
>
> Well, there was an error in phpmyadmin that was due to a config issue, but that
> may have been there for a while... I didn't have my config.inc.php set up right.
>
> So, if you don't have a lot of custom php, this move should be a snap.
> (Hopefully I haven't just missed subtle problems.)

Good to hear, thanks for the update :)
-- 
gentoo-server@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-21  0:14 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19 21:17 [gentoo-server] php 4 to 5 Ben Munat
2007-10-19 21:26 ` Ryan Gibbons
2007-10-19 21:29 ` Georges Toth
2007-10-19 22:01   ` Ben Munat
2007-10-19 22:14     ` Georges Toth
2007-10-19 22:22     ` kashani
2007-10-19 22:26       ` Ben Munat
2007-10-20  3:13         ` j k
2007-10-20 19:14 ` Ben Munat
2007-10-21  0:00   ` Hex Star

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox