I would like to reset my httpd.conf

in Genius Bar edited January 2014
Is it possible to get a copy of httpd.conf off my installation disks so I can replace my current httpd.conf? The reason I ask is because I uncommented a few lines so PHP would work on my PowerBook, but now I would like to re-comment those lines so I can download the new version of PHP from entropy.ch.

Any help? \


  • Reply 1 of 7
    lundylundy Posts: 4,466member
    You can look inside the "Base System" or "BSD Subsystem" packages on the install disk with the utility Pacifist.

    Search for it on VersionTracker.
  • Reply 2 of 7
    Okay, I found the file called "etc" using Pacifist. What do I do from there?
  • Reply 3 of 7
    kickahakickaha Posts: 8,760member
    Try /private/etc instead. /etc is a symlink (think alias) file.

    Also, you should have an /etc/http.conf.default file already on your drive. That is, I believe, a pristine copy of what ships with the machine for just such an emergency.
  • Reply 4 of 7
    Oh I see now. Thanks!

    So, just open up httpd.conf.default and then save it as httpd.conf to replace the old httpd.conf? Just double checking...
  • Reply 5 of 7
    kickahakickaha Posts: 8,760member
    Yup, that might be easiest.

    (If you're familiar with the Terminal, which I'm assuming you're not, the 'cp' command is 'copy', so to copy fileA to fileB, you'd type (no quotes) 'cp fileA fileB' and press Return.)
  • Reply 6 of 7
    I'm learning Thanks for the tip!

    I never thought having my PHP documents NOT work would be so exciting
  • Reply 7 of 7
    If I were the original poster, I'd google MAMP, which I use, love, and swear by.
Sign In or Register to comment.