Apache Web-Serving with Mac OS X: Part 1
Subject:   Apache doesn't start anymore
Date:   2004-09-16 07:12:09
From:   pixelized
Since i wasn't able to save changes to the httpd.conf file, i made a stupid thing: after having edited it, i saved it on the desktop and then i changed the file properties (permissions, owner and so on), copying them from those ones belonging to the original file. Then i replaced my new httpd.conf file with the original one, placed in httpd folder. Now, if i try to turn on 'web sharing', from the sys prefs, nothing happens (it says it is starting but it never starts). I see that in the httpd folder there is a httpd.config.bak file, can i enable it to somehow make it work?it is a copy of the httpd.conf original file, isn't it? There's also a httpd.conf.default file, over there... maybe it can be used too? you told to use sudo to edit httpd.conf or bbedit shell, but isn't there any other way to edit (and save!!) it? Thanks in advance, i hope you'll help me.

PS: i'm running Panther 10.3.4 on a 1.25GHz PowerPCG4

Full Threads Newest First

Showing messages 1 through 5 of 5.

  • Apache doesn't start anymore
    2004-10-12 19:53:07  diad [View]

    ya duh, I did the same thing. Any luck getting an answer to this problem? I was trying to add a directory to my config file so GoLive would know where to place the site folder.It doesn't work if you change the permissions again.
    Mine never says it's starting, just stays gray. And I see that I copied my httpd file back from my desktop to etc (it asked me to authenticate when I did) and now it's there without .config at the end.
    • Apache doesn't start anymore
      2004-10-14 14:47:33  diad [View]

      Oh hey I figured it out. You can't drag it from your desktop back to the etc folder. Instead you have to go to the terminal and type:
      sudo cp ~/Desktop/httpd.conf /etc/httpd/httpd.conf

      I got this from Swanilda:

      Don't know if it works but it makes total sense. I will try it now.
      • Apache doesn't start anymore
        2005-04-06 15:20:08  raechyl [View]

        I'm having pretty much the same problem. I opened httpd.conf in TextEdit because Terminal gave me an error when I tried BBEdit. Of course I realized I couldn't save it in the httpd directory, but instead of being a little more brilliant and saving it to the desktop, I tried using sudo pico /etc/httpd/httpd.conf in Terminal. I made the changes and then I couldn't restart Apache. Then I tried using the above advice, but with the backup file of httpd.conf that I had made. Unfortunately, that didn't work. I really hope people are still checking this because this is a time-sensitive question. Any ideas?
  • Apache doesn't start anymore
    2005-08-19 21:06:09  dreamingkat [View]

    you can get more information on why apache isn't restarting by using the terminal to restart it. Try "sudo apachectl graceful". (the command is apachectl (apache control), the option is graceful, and sudo means "hey os x, pretend I'm god and can do whatever I want for a few minutes". You'll have to enter your login password and be in the admin group for this to work.)
    • Apache doesn't start anymore
      2006-06-21 09:49:48  balijewel [View]

      I use mac osx 10.4.6, intel chip. I have the same problem with you, plus my system preferences/sharing/personal web sharing check box is off. I try this command: sudo apachectl graceful and here is the answer: sudo: apachectl: command not found
      Anybody can help me? Thanks, Deni