Women in Technology

Hear us Roar



Article:
  Apache Web Serving with Jaguar
Subject:   Not Able to Start Personal Web Sharing
Date:   2004-04-08 21:47:10
From:   bhuddles
On Mac Powerbook G4, OS X 10.2.8 I am not able to start Personal Web Sharing. Have tried from System Preferences-Services and have tried from Terminal.


In Sharing, the Start button remains grayed out (never turning to Stop).


In teminal this is the report
[Bruce-Huddlesons-Computer:~] brucehuddleson% sudo /usr/sbin/apachectl restart
/usr/sbin/apachectl restart: httpd not running, trying to start
fopen: No such file or directory
httpd: could not open document config file /etc/httpd/httpd.conf
/usr/sbin/apachectl restart: httpd could not be started
[Bruce-Huddlesons-Computer:~] brucehuddleson%


The httpd.conf file is stored in Macintosh HD/Previous Systems/Previous System 1/private/etc/httpd/httpd.conf


Do I need to move the httpd.conf to another directory? If so which directory and how do I move it?


Thanks for assisting a newbie.

Full Threads Oldest First

Showing messages 1 through 3 of 3.

  • Not Able to Start Personal Web Sharing
    2004-05-08 20:42:30  keath [View]

    If you haven't fixed this already, the answer is that the config file should be in '/etc/http/' and named 'httpd.conf' as the computer is requesting.

    You can copy it to the right place using the terminal. Type 'sudo cp /Previous\ Systems/Previous\ System1/private/etc/httpd/httpd.conf /etc/httpd'
    • Not Able to Start Personal Web Sharing
      2004-12-05 12:03:43  PeterEliasson [View]

      I have the same problem. it DID work, but I must have messed stuff up. Now when I used the command line

      sudo cp /Previous\ Systems/Previous\ System1/private/etc/httpd/httpd.conf /etc/httpd

      I get the answer

      cp: /Previous Systems/Previous System1/private/etc/httpd/httpd.conf: No such file or directory

      I'm a total newbie so I'm so regretful. How can I make things right again?
      • Not Able to Start Personal Web Sharing
        2007-04-23 11:35:51  cwjones [View]

        Ok. Not easy but if you stick with it you'll be fine. I'n no pro on these either but I got it working.
        For PHP4 people:
        If your missing your httpd.conf file and if you were unsuccessful when you made a back up, the best thing to do is to create a new mac user for your computer and start again.
        For PHP5 People.
        Hopefully you have backed up your original httpd.conf with the line below.
        sudo cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.original
        If you recall when you did this you went through your pico and took out the hash marks at:
        LoadModule php4_module
        AddModule mod_php4.c
        I'm guessing you have now installed entropy to get php5. Logic thinking tells me if you have both php4 and php5 running then this is going to cause problems.
        If you have configured your php5 correctly all you will need to do now is revers the httpd.conf copy file:
        sudo cp /etc/httpd/httpd.conf.original /etc/httpd/httpd.conf
        or open up the httpd.conf file and add the hashes back.
        When you finish all that try and restart apache with;
        sudo apachectl restart
        If your still having problems try and add a new user to your computer. Good luck