I have messed out a lot of things with currently installed apache. It doesn't work at all. So, I want to delete apache completely and re-install everything. I want to do completely clean installation. How would I do it?

OSX version: Yosemite

Package Manager: Homebrew

  • You probably don't have to re-install it. It is probably a configuratin error in httpd.conf or a missing library. Can you tell us what error messages you get or what your log says?
    – Allan
    Apr 26 '15 at 20:57
  • $ sudo apachectl configtest Password: @Allan httpd: Syntax error on line 493 of /private/etc/apache2/httpd.conf: Syntax error on line 16 of /private/etc/apache2/extra/httpd-userdir.conf: No matches for the wildcard '*.conf' in '/private/etc/apache2/users', failing (use IncludeOptional if required) $ Apr 27 '15 at 1:10
  • Can you post your httpd.conf file?
    – Allan
    Apr 27 '15 at 13:45

You can use an external command called brew rmdeps or brew rmtree.

To install and use, issue the following commands:

$ brew tap beeftornado/rmtree && brew install brew-rmtree
$ brew rmtree <package>

You can view the full discussion on this thread.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .