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 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Default Upgrading application not installed in default port directory APACHE

I installed apache manually using the freebsd guides directions. So it was not in the default port directory to be upgraded by port. So how to upgrade it.
This should apply to other applications as well.
Below are the steps for upgrading apache installed in a different directory

First step [make sure apache is stopped and not runing]
1] Download latest version http://httpd.apache.org/ in any directory.
so you cd to that directory. So say you have chosen to install it in directory
/usr/local/bin
you do
cd /usr/local/bin

than execute code below using appropriate URL.
Code:
wget  http://www.mirrorservice.org/sites/ftp.apache.org/httpd/httpd-2.0.63.tar.gz
Than unzip the downloaded file.
Code:
tar zxvf httpd-2.0.63.tar.gz
Than cd to the directory where apache is unzipped.

Run the command below [include other parameters you want]
Code:
./configure --prefix=/usr/local/apache2 --enable-mods-shared=all --enable-so --with-php --with-mysql
than do
Code:
make
than
Code:
make install
than start apache
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5

Last edited by ijk; 12th July 2008 at 07:03 AM.
Reply With Quote
  #2   (View Single Post)  
Old 11th July 2008
greencross's Avatar
greencross greencross is offline
Real Name: David Gevorgyan
Fdisk Soldier
 
Join Date: May 2008
Location: Yerevan, Armenia
Posts: 58
Default

I actually didn't get what is the problem. You performed # cd /usr/ports/www/apache22 # make install clean and it didn't work?
__________________
rtfm

Last edited by greencross; 13th July 2008 at 08:41 AM.
Reply With Quote
  #3   (View Single Post)  
Old 11th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Default no problem

Sorry there is no problem. It works perfectly well.
Thought it might be useful for somebody else.
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5
Reply With Quote
  #4   (View Single Post)  
Old 12th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

So why are you not using Apache from ports?

The ports collection applies several patches to Apache, mainly stability and security stuff (i.e. stuff you want), so this alone is reason enough to use ports IMO.

I can not see a single advantage to compiling Apache manually instead of using ports.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 13th July 2008
ijk ijk is offline
Fdisk Soldier
 
Join Date: Jun 2008
Posts: 47
Default deinstall

With the problems I am having not using ports I have decide to get rid of apache installed by the above method.
But how to I uninstall / deinstall it !
Have tried the make deinstall clean in the directory from where I installed it but it does not work
__________________
Freebsd 7 64 bit apache2.2 php5 mysql5
Reply With Quote
  #6   (View Single Post)  
Old 13th July 2008
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

Which prefix did you use?
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
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
AIX: Which Application is Using a Specific Port vermaden Guides 5 12th April 2009 04:01 AM
Broken Apache 2.2 Port casteld73 FreeBSD Ports and Packages 5 23rd January 2009 11:53 AM
Default Apache won't read .css file erehwon OpenBSD General 23 21st September 2008 10:21 PM
Mounting NAS as apache alias directory Yuka FreeBSD General 7 18th July 2008 02:58 PM
apache 2.2.8 , is it on chroot by default? superslot OpenBSD Security 9 30th June 2008 11:56 AM


All times are GMT. The time now is 07:54 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