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?


creatxr

creatxr’s Profile: http://forums.opensuse.org/member.php?userid=17705
View this thread: http://forums.opensuse.org/showthread.php?t=404662

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.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=404662

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


creatxr

creatxr’s Profile: http://forums.opensuse.org/member.php?userid=17705
View this thread: http://forums.opensuse.org/showthread.php?t=404662

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


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=404662

ken_yap;1925449 Wrote:
> 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?


creatxr

creatxr’s Profile: http://forums.opensuse.org/member.php?userid=17705
View this thread: http://forums.opensuse.org/showthread.php?t=404662

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://yami.googlecode.com/
http://akoskm.blogspot.com/

ram88’s Profile: http://forums.opensuse.org/member.php?userid=1058
View this thread: http://forums.opensuse.org/showthread.php?t=404662

httpd.conf is in /etc/apache2


Core 2 Duo 3.16GHz 4GB DDR2 2.5 TB GeForce 7600 GS OS 11.1 x86_64
KDE4.2 beta2 ‘Smolt specs’ (http://tinyurl.com/9hgxhl)

geoffro’s Profile: http://forums.opensuse.org/member.php?userid=75
View this thread: http://forums.opensuse.org/showthread.php?t=404662