Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    /etc/init.d/httpd & /etc/rc.d/init.d/httpd

    I used "yum install httpd" to install Apache, I noticed that httpd is now installed in two places:


    Which one is the correct httpd install and what is the difference between the /etc/init.d/ & /etc/rc.d/init.d/ folder.

    Thanks for your help.

  2. #2
    Just Joined!
    Join Date
    Jul 2007
    At Home

    Smile HTTP Configuration


    As you have used yum it will online install apache. The path /etc/rc.d/init.d/httpd is the service path through which you can control the start/stop service , where as the httpd.conf file which is use to configure the apache shud be in /etc/init.d/httpd.

    Please check it n reply.


  3. #3

    httpd is installed in two different places


    Thanks for your reply. The same httpd file is installed in two different locations:

    # ls /etc/init.d/httpd -l
    -rwxr-xr-x 1 root root 3201 Jul 14 08:56 /etc/init.d/httpd

    # ls /etc/rc.d/init.d/httpd -l
    -rwxr-xr-x 1 root root 3201 Jul 14 08:56 /etc/rc.d/init.d/httpd

    I've been using:
    /etc/init.d/httpd restart
    for restarting Apache.

    Your help is appreciated.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts