First make sure your port tree is up to date with portsnap and update them with portmanager if they:
[root@www ~]# portsnap update
Ports tree is already up to date.
[root@www ~]# portmanager -u
Now install Apache with portmanager:
[root@www ~]# portmanager www/apache22