Results 1 to 7 of 7

Thread: How to start and stop apache2?

  1. #1

    Default How to start and stop apache2?

    I used yast->software management to install apache2.
    But I didn't find where it is installed.
    How to start and stop apach2?
    Where can I find httpd.conf?

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: How to start and stop apache2?

    It can be done from YaST under Network Services, or from the CLI, e.g.

    Code:
    /etc/init.d/apache2 start
    or the SUSE shortcut

    Code:
    rcapache2 start
    httpd.conf is in /etc/apache2. However there are some things that are easily done and do not require editing httpd.conf. In fact, httpd.conf seldom needs to be edited on SUSE. In particular included modules are specified in /etc/sysconfig/apache2.

  3. #3

    Default Re: How to start and stop apache2?

    Thanks.
    I got it.
    It seems the commanders can only run under root user?

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: How to start and stop apache2?

    Well starting and stopping Apache can only be done by root (well actually by a process with effective root privilege).

  5. #5

    Default Re: How to start and stop apache2?

    Quote Originally Posted by ken_yap View Post
    It can be done from YaST under Network Services, or from the CLI, e.g.

    Code:
    /etc/init.d/apache2 start
    or the SUSE shortcut

    Code:
    rcapache2 start
    httpd.conf is in /etc/apache2. However there are some things that are easily done and do not require editing httpd.conf. In fact, httpd.conf seldom needs to be edited on SUSE. In particular included modules are specified in /etc/sysconfig/apache2.

    How can I know which SUSE shortcuts exists?
    How to list all the shortcuts?

  6. #6
    Join Date
    Jun 2008
    Location
    relative
    Posts
    1,172

    Default Re: How to start and stop apache2?

    Type su in the command line, right after rc and hit TAB twice. I think all commands beginning with rc are opensuse shortcuts (correct me if I'm wrong).
    http://mydailyhash.wordpress.com/
    http://yami.googlecode.com/

  7. #7
    Join Date
    Mar 2008
    Location
    Vsters, Sweden ex. Highbury London UK
    Posts
    1,245

    Default Re: How to start and stop apache2?

    httpd.conf is in /etc/apache2
    Core 2 Duo 3.16GHz, 8GB DDR2, 3.5TB, GeForce 9600 GT, Amilo LCD 26", OS 11.1 x86_64, KDE4.2.4 (2)
    My wine tips & tricks

Posting Permissions

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