DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 10th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default Upgrade Apache 1.3 mod_ssl to Apache 2.2

FreeBSD 6.3-STABLE AMD64.

I Am wanting to update the Apache to meet some criteria of a developer who will be modifying some of our BAMP apps.

PKG_INFO tells me I have apache+mod_ssl-1.3.41+2.8.31 installed.

I issue the command: portupgrade -o www/apache22 -rf apache13\*
which according to a couple of web sources should update and recompile the Apache and dependencies to 2.2.

The command uninstalls and the reinstalls the apache+mod_ssl-1.3.41+2.8.31 package.

What is the proper (and safest) way to update our Apache?

Thanks,

Brett
Reply With Quote
  #2   (View Single Post)  
Old 10th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

portupgrade -o www/apache22 apache13\* should work just fine.
Reply With Quote
  #3   (View Single Post)  
Old 10th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default

shoot. I pasted the wrong command in my post last night. When I use portupgrade -o www/apache22 -rf apache13\* I am told ** No such installed package: apache13*

So then I tried portupgrade -o www/apache22 -rf apache+mod_ssl\*
which is the one that results in uninstalling and reinstalling the Apache 1.3 mod_ssl.
Reply With Quote
  #4   (View Single Post)  
Old 10th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

Drop -rf
Reply With Quote
  #5   (View Single Post)  
Old 10th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default

Quote:
Originally Posted by DutchDaemon View Post
Drop -rf
I just tried it but nothing happens. The system seems to pause and then my bash prompt comes up.

<copy and paste>
[root@team ~]# portupgrade -o www/apache22 apache+mod_ssl\*
[root@team ~]#
Reply With Quote
  #6   (View Single Post)  
Old 10th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

grep the exact package name (for the installed version of apache) from pkg_info and use that as the last argument.
Reply With Quote
  #7   (View Single Post)  
Old 11th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default

#pkg_info | grep apache
apache+mod_ssl-1.3.41+2.8.31 The Apache 1.3 webserver with SSL/TLS functionality
apache-ant-1.7.0_2 Java- and XML-based build tool, conceptually similar to mak


so i then tried portupgrade -o www/apache22 apache+mod_ssl-1.3.41+2.8.31
but get the same results as above.

Any ideas on why I seem to be stuck here? What are the ramifications if I uninstall the current Apache and reinstall Apache 2.2?
Reply With Quote
  #8   (View Single Post)  
Old 11th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

The only thing you could try is put the old port in quotes. Maybe the plus sign breaks something in your shell. Other than that: not much difference, really. It's basically what portupgrade -o does all by itself. So if you either use pkg_delete on the old port, or cd to its port dir and run make deinstall clean, it doesn't matter much.
Reply With Quote
  #9   (View Single Post)  
Old 18th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default

My maintenance window ran out. I'll have to wait until the weekend.

If I deinstall the current port, leave the current httpd.conf in place, and install the Apache22 port will Apache2 basically use the same settings or am I better with a clean one and changing things to match such as directory locations, php, etc?
Reply With Quote
Old 18th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

The latter. There are a lot of differences (esp. the minimal httpd.conf and the separate vhosts and ssl config files which are now pulled in by 'Include'ing them) and it's better to get used to the changes straight away. Keep your old httpd.conf as a reference and fill in the necessary details in the new config files.
Reply With Quote
Old 26th March 2009
beandip beandip is offline
Port Guard
 
Join Date: Jul 2008
Posts: 14
Default

I finally was able to get it updated.

The only gotcha was I couldn't get Apache2 to start and ended up having to remove mod_perl and install mod_perl2.

Thanks DutchDaemon for your advice.
Reply With Quote
Old 26th March 2009
DutchDaemon's Avatar
DutchDaemon DutchDaemon is offline
Real Name: Ben
Spam Refugee
 
Join Date: Jul 2008
Location: Rotterdam, The Netherlands
Posts: 336
Default

yw!
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
Big5 Character Set in Apache problem after upgrade to 6.4 paul-lkw FreeBSD Installation and Upgrading 0 23rd February 2009 09:20 AM
Apache with php stopped working after upgrade map7 FreeBSD Ports and Packages 7 7th December 2008 10:39 PM
Apache 1.3 vs. 2.2 windependence FreeBSD General 4 16th June 2008 10:10 PM
Apache & PHP themaster FreeBSD General 2 14th June 2008 05:49 PM
Apache SSL mike171562 FreeBSD General 0 5th May 2008 09:41 PM


All times are GMT. The time now is 02:55 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick