Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

digininja

macrumors newbie
Original poster
I've installed apache and php through MacPorts and would like to remove the ones that were installed by default. How can I do this?
 
They're kind of spread around so it's hard to completely remove them. The apachectl file is in /usr/sbin/. Some of the configuration files are in /private/etc/apache2/. The php.ini file is there in /private/etc/. PHP has pieces at /usr/bin/, /usr/include/, /usr/lib/.

I'd recommend just leaving it be though.
 
The problem is it gets priority as it is first in the path. I could remove the apache and php binaries but that still leaves all the config files around. What I'm after is a way to completely uninstall the package so that when I'm looking at something php or apache related then I know it is for the version I installed through port.
 
The problem is it gets priority as it is first in the path. I could remove the apache and php binaries but that still leaves all the config files around. What I'm after is a way to completely uninstall the package so that when I'm looking at something php or apache related then I know it is for the version I installed through port.

Just change your path? Stick your own directories first
 
It would work but its not an elegant solution. I don't like having software that isn't use and is out of date sat around on a system.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.