freebsd does not recognise that php was installed via ports

Solution 1:

If you're in lang/php5 then you're uninstalling PHP 5.3; you need to be in lang/php52 to uninstall PHP 5.2