If you have found your software in the ports tree, now its the time to build it.
cd /usr/ports/www/apache24 make make install
cd /usr/ports/www/apache24 make BATCH=yes make install