Find the answer to your Linux question:
Results 1 to 3 of 3
I used "yum install httpd" to install Apache, I noticed that httpd is now installed in two places: /etc/init.d/httpd /etc/rc.d/init.d/httpd Which one is the correct httpd install and what is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11

    /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:

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

    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
    Location
    At Home
    Posts
    8

    Smile HTTP Configuration

    Hi,

    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.

    Thx

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11

    httpd is installed in two different places

    Hi

    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.

Posting Permissions

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