Results 1 to 8 of 8

Thread: Why is apache2 starting on my 12.10 desktop?

  1. #1
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    2,045
    Distro
    Ubuntu 16.04 Xenial Xerus

    Why is apache2 starting on my 12.10 desktop?

    This is 12.10 running on a laptop with all the latest updates.
    Since getting the latest kernel update I get to see some messages when booting. The ones that end in [OK] that precede the splashscreen.
    I also get a very rough initialisation of the video card, a white screen with black "noise" for a split second.
    I have noticed that apache2 is being started. I have searched the system logs but not found anything.
    The "top" command does not show it.
    I get the following from "ps" but how do I find what starts it?

    Code:
    coldraven@happy:~$ ps ax | grep apache2
     1172 ?        Ss     0:00 /usr/sbin/apache2 -k start
     1174 ?        S      0:00 /usr/sbin/apache2 -k start
     1175 ?        Sl     0:00 /usr/sbin/apache2 -k start
     1176 ?        Sl     0:00 /usr/sbin/apache2 -k start
    25811 pts/0    S+     0:00 grep --color=auto apache2
    Thanks
    Last edited by coldraven; April 22nd, 2013 at 12:41 PM.

  2. #2
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why is apache2 starting on my 12.10 desktop?

    Quote Originally Posted by coldraven View Post
    This is 12.10 running on a laptop with all the latest updates.
    Since getting the latest kernel update I get to see some messages when booting. The ones that end in [OK] that precede the splashscreen.
    I also get a very rough initialisation of the video card, a white screen with black "noise" for a split second.
    I have noticed that apache2 is being started. I have searched the system logs but not found anything.
    The "top" command does not show it.
    I get the following from "ps" but how do I find what starts it?

    Code:
    coldraven@happy:~$ ps ax | grep apache2
     1172 ?        Ss     0:00 /usr/sbin/apache2 -k start
     1174 ?        S      0:00 /usr/sbin/apache2 -k start
     1175 ?        Sl     0:00 /usr/sbin/apache2 -k start
     1176 ?        Sl     0:00 /usr/sbin/apache2 -k start
    25811 pts/0    S+     0:00 grep --color=auto apache2
    Thanks
    The easiest way to find out would be to try removing Apache2. When asking for confirmation that you really want to remove Apache, it will list any packages on your system that depend on Apache2 and would also need to be removed. Of course, once you know, you can hit N to cancel the removal of Apache.
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  3. #3
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Why is apache2 starting on my 12.10 desktop?

    hi
    looks like upstart.
    --> cd /etc/init and: grep apache *
    there i guess you will see where apache is started. if you ain't want to start apache --> comment it out.
    oh - have a look in rc.local too.
    ciao
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

  4. #4
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    2,045
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Why is apache2 starting on my 12.10 desktop?

    The easiest way to find out would be to try removing Apache2. When asking for confirmation that you really want to remove Apache, it will list any packages on your system that depend on Apache2 and would also need to be removed. Of course, once you know, you can hit N to cancel the removal of Apache.
    I used Synaptic and there were no dependencies, only apache2 was going to be removed.


    looks like upstart.
    --> cd /etc/init and: grep apache *
    there i guess you will see where apache is started. if you ain't want to start apache --> comment it out.
    oh - have a look in rc.local too.
    Nothing in /etc/init/upstart* or /etc/rc.local

    Next suggestion?

  5. #5
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Why is apache2 starting on my 12.10 desktop?

    ps -ef should reveal parent PID.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  6. #6
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    2,045
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Why is apache2 starting on my 12.10 desktop?

    Quote Originally Posted by Iowan View Post
    ps -ef should reveal parent PID.
    That gives the following but I don't know what it means
    Code:
        root      1176     1  0 06:57 ?          00:00:00 /usr/sbin/apache2 -k start
    www-data  1181  1176  0 06:57 ?        00:00:00 /usr/sbin/apache2 -k start
    www-data  1183  1176  0 06:57 ?        00:00:00 /usr/sbin/apache2 -k start
    www-data  1184  1176  0 06:57 ?        00:00:00 /usr/sbin/apache2 -k start
    In /var/www/ there is the usual "It Works!" index.html
    In /var/www/dwww I found an index page for Debian Documentation, I don't remember installing this.

    Code:
    /var/www/dwww$ ls
    debian.png  dwww.css  index.html  man  menu
    I am not too alarmed, I will be doing a fresh install of 13.04 when it is released shortly. I think I will be dual booting with CentOS as I need to learn the RHEL way of doing things.
    Thanks for the responses, I'll mark this as solved shortly.

  7. #7
    Join Date
    Nov 2009
    Beans
    Hidden!
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Why is apache2 starting on my 12.10 desktop?

    Quote Originally Posted by coldraven View Post
    In /var/www/dwww I found an index page for Debian Documentation, I don't remember installing this.


    perhaps one of the programmes pulled it in as dependecy. hard to say since we do not know what and how you were installing.
    Read the easy to understand, lots of pics Ubuntu manual.
    Do i need antivirus/firewall in linux?
    Full disk backup (newer kernel -> suitable for newer PC): Clonezilla
    User friendly full disk backup: Rescuezilla

  8. #8
    Join Date
    Jan 2010
    Location
    Hyperborea
    Beans
    2,045
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Why is apache2 starting on my 12.10 desktop?

    Quote Originally Posted by mastablasta View Post
    perhaps one of the programmes pulled it in as dependecy. hard to say since we do not know what and how you were installing.
    You are probably right although it could have been there all the time.
    When I install 13.04 I will check to see if I have a /var/www directory.
    Meanwhile, I will mark this a solved.Thanks for your input.

Bookmarks

Posting Permissions

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