autostarting Apache on startup

Posted:
in Genius Bar edited January 2014
How do I do this?



I have to type sudo httpd every time I wish to use my apache (after restarting, which I have to do often). Can I autostart this thing?

Comments

  • Reply 1 of 6
    defiantdefiant Posts: 4,876member
    Is this button that what you are looking for ?







    edit: to be found in the sharing tab in sysprefs



    [ 10-27-2002: Message edited by: Defiant ]</p>
  • Reply 2 of 6
    Are you using Apache in UNIX or in a Mac. If Mac, then the above is what you want. If you are using UNIX, you can copy the apachectl script to the rc.d directory and I think that should do it.



    BTW, in the Mac, if you don't like Apple's specs, you can always change them in the httpd.conf file located here: /private/etc/httpd
  • Reply 3 of 6
    der kopfder kopf Posts: 2,275member
    I have that web sharing stuff on, but quite unnecessary, it appears, because the address gets to be something like comp-name.local/, which I don't like. I want the good 'ole loopback be my own address. (127 and so on).



    that's why I ask, apparently web sharing does not enable apache the same why as typing sudo httpd does. I don't really understand why.
  • Reply 4 of 6
    Apple's Web Shering is nothing more than Apache (in Mac OS X). Did you look into the httpd.conf file - in it, you can do the modifications to change the server parameters such as ServerName and a lot more.



    If you have Web Shering - check this out: in your web browser, type: localhost or <a href="http://localhost/"; target="_blank">http://localhost/</a>; and see what happens.



    When you said 127 and so on - what do you mean? the ip address? as you in a network? If you want to check out your ip address, check this out: <a href="http://checkip.dyndns.org/"; target="_blank">http://checkip.dyndns.org/</a>;
  • Reply 5 of 6
    torifiletorifile Posts: 4,024member
    [quote]Originally posted by der Kopf:

    <strong>I have that web sharing stuff on, but quite unnecessary, it appears, because the address gets to be something like comp-name.local/, which I don't like. I want the good 'ole loopback be my own address. (127 and so on).



    that's why I ask, apparently web sharing does not enable apache the same why as typing sudo httpd does. I don't really understand why.</strong><hr></blockquote>



    The comp-name.local/ is the rendezvous name. The 127.0.0.1 will work as well.
  • Reply 6 of 6
    der kopfder kopf Posts: 2,275member
    [quote]Originally posted by torifile:

    <strong>



    The comp-name.local/ is the rendezvous name. The 127.0.0.1 will work as well.</strong><hr></blockquote>



    see, that's the thing I find strange... I ALWAYS have to type that httpd line if I want to use <a href="http://127.0.0.1/,"; target="_blank">http://127.0.0.1/,</a>; and I don't know why.
Sign In or Register to comment.