Uninstalling all instances of apache, php and mysql
Just delete or move the apps from the app folder s long as they don't have their own un-installer. If that doesn't work, back up your mac, reinstall the OSX, and copy the data you want from your back up file.