The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old April 2nd, 2009, 12:54
Crom Crom is offline
Junior Member
 
Join Date: Nov 2008
Location: Turkey/Istanbul
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to upgrade php4 to php5

Hi dear,

Is there any easy way to upgrade php from 4 to 5. Should I uninstall php4 and then install php5 ?

Thank in advence.
Reply With Quote
  #2  
Old April 2nd, 2009, 13:05
DutchDaemon's Avatar
DutchDaemon DutchDaemon is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 3,313
Thanks: 8
Thanked 438 Times in 413 Posts
Default

Look into the -o flag of portmaster or portupgrade.
__________________
FreeBSD Handbook | FreeBSD Manuals | FAQ FreeBSD 6/7 | FreeBSD Wiki | FreeBSD Forum FAQ (Rules & Tips)
Always use CODE tags for posting system output! | End-of-Year Fundraising Drive | Donate!
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
  #3  
Old April 2nd, 2009, 14:21
Crom Crom is offline
Junior Member
 
Join Date: Nov 2008
Location: Turkey/Istanbul
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi again,

I tried "portmaster -o /usr/port/lang/php5" but it failed with following conflict error.

===> Installing for php5-5.2.9

===> php5-5.2.9 conflicts with installed package(s):
php4-4.4.9

They install files into the same place.
Please remove them first with pkg_delete(1).
*** Error code 1

Stop in /usr/ports/lang/php5.
*** Error code 1

Stop in /usr/ports/lang/php5.

===>>> Installation of php5-5.2.9 (lang/php5) failed
===>>> Aborting update

===>>> complete

Thanks in advence.
Reply With Quote
  #4  
Old April 2nd, 2009, 14:42
DutchDaemon's Avatar
DutchDaemon DutchDaemon is online now
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, the Netherlands
Posts: 3,313
Thanks: 8
Thanked 438 Times in 413 Posts
Default

You need an extra parameter!

e.g.:

portmaster -o lang/php4 php5-5.2.9 (old -> new)
portupgrade -o lang/php5 lang/php4 (new <- old)

This may not be the exact syntax (sometimes the full version number needs to be included, which you can find in pkg_info)
__________________
FreeBSD Handbook | FreeBSD Manuals | FAQ FreeBSD 6/7 | FreeBSD Wiki | FreeBSD Forum FAQ (Rules & Tips)
Always use CODE tags for posting system output! | End-of-Year Fundraising Drive | Donate!
---> Do not PM me with FreeBSD questions. I do not work here. <---
Reply With Quote
The Following User Says Thank You to DutchDaemon For This Useful Post:
Crom (April 2nd, 2009)
  #5  
Old April 2nd, 2009, 14:48
Crom Crom is offline
Junior Member
 
Join Date: Nov 2008
Location: Turkey/Istanbul
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks a lot.
Reply With Quote
  #6  
Old April 2nd, 2009, 20:51
Crom Crom is offline
Junior Member
 
Join Date: Nov 2008
Location: Turkey/Istanbul
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by DutchDaemon View Post
You need an extra parameter!

e.g.:

portmaster -o lang/php4 php5-5.2.9 (old -> new)
portupgrade -o lang/php5 lang/php4 (new <- old)

This may not be the exact syntax (sometimes the full version number needs to be included, which you can find in pkg_info)
Btw: exact syntax for portmaster is :
portmaster -o /usr/ports/lang/php5 php4-4.4.9 to upgrade php5

Thanks again.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solved] PHP5 coredumps Voltar Ports Installation and Maintenance 4 June 25th, 2009 23:15
Can't install php5-mysql teamchachi Ports Installation and Maintenance 3 March 17th, 2009 17:16
Portupgrade php5 5.2.8 to 5.2.9 problems emmi Ports Installation and Maintenance 6 March 17th, 2009 15:11
php5-extension1.1 can not deinstall mfaridi Ports Installation and Maintenance 14 March 10th, 2009 18:55
PHP5 builded but not running ... Melchior Ports Installation and Maintenance 1 January 24th, 2009 06:01


All times are GMT +1. The time now is 01:23.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.