Restore Apache and PHP to defaults

Discussion in 'Mac OS X Server, Xserve, and Networking' started by desmond, Apr 29, 2008.

  1. macrumors newbie

    Apr 11, 2007
    Hi all,

    I had localhost going on my version of Leopard the other day (Version 10.5.2), but when I tried to set up Virtual Hosts it seems to have screwed up everything and now I can't even browse localhost.

    I've been scouring the internet for two days and getting nowhere. I guess the only option is to restore Apache2 and PHP5, then start again. Can anyone tell me how to do this? I'm not sure what to download etc.

    Thanks for any help.
  2. thread starter macrumors newbie

    Apr 11, 2007
    I seem to have figured it out, sorta. I have changed my username.conf file (/etc/apache2/users/*username*.conf) back to the basics:

    <directory "/Users/*username*/Sites">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all

    So, now I have Apache pointing to the original directory again (/Library/Webserver/documents/), I just need to figure out what else I'm doing wrong!
  3. macrumors newbie

    Aug 4, 2008
    Bumping this because I'm getting the same problem. I'm not sure what happened, but localhost has stopped working on me even though the server is allegedly running.

Share This Page