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
than
than start apache