Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: How to start and stop apache on ubuntu |
|
Author |
|
Chris12
Joined: 27 Sep 2013 Posts: 1 Location: India
|
Posted: Fri 27 Sep '13 12:59 Post subject: How to start and stop apache on ubuntu |
|
|
Hi,
I have installed Apache on ubuntu as per our project related manual by using the packages.
httpd-2.4.4.tar.gz
apr-1.4.6.tar.gz
apr-util-1.5.2.tar.gz
I copied apr-1.4.6 apr-util-1.5.2 (after extract) to srclib directory of apr-util-1.5.2
and created symbolic links as below
ln –s apr-1.4.6 apr
ln –s apr-util-1.5.2 apr-util
and configured httpd-2.4.4 with
./configure --with-included-apr
and make ; make install;
now my apache is running , but how to stop and start the apache.
I googled for reference and found it can be done using
sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 start
I dont have apache2 in my /etc/init.d folder.
Can some one help me out on how to start and stop. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Sat 28 Sep '13 1:55 Post subject: |
|
|
first find out where apache is:
sudo whereis httpd
example /usr/sbin/httpd
than
sudo /usr/sbin/httpd -k stop
sudo /usr/sbin/httpd -k start
sudo /usr/sbin/httpd -k graceful |
|
Back to top |
|
|
|
|
|
|