Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-11-2009, 10:48 AM   #1
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 372
Blog Entries: 2

Rep: Reputation: 32
Question How to i remove this from my startup?

OK, so i installed Apache and PHP and they work great but i would like to remove them from startup. For some reasons i don't want Apache and PHP to start when i start my computer... I've no idea how to do that..

Kubuntu 8.10 KDE 4.2.1

I looked at System Settings > Autostart but it wasn't listed there.. weird..
Old 03-11-2009, 11:30 AM   #2
LQ Newbie
Registered: Mar 2009
Distribution: Ubuntu, FC7, FC10
Posts: 5

Rep: Reputation: 0
Startup services can be disabled by setting the runlevels to off. Check the runlevels for Apache by the following:

chkconfig --list |  grep httpd
and you will get something like the following:

httpd           0:off   1:off   2:off   3:on    4:off   5:off   6:off
Set all runlevels to off with the following (using the above example)

chkconfig --levels 3 httpd off
If you have multiple runlevels on, just put all the numbers in the above code (--levels 2345). Run the "chkconfig --list | grep httpd" again to check to make sure that all runlevels are off. Once they are all off, restart and Apache will not startup with the server. PHP is an Apache library and therefore will not run if Apache is not.
Old 03-11-2009, 11:58 AM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,241
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
An easy method to enable and disable services in Debian based distros is to use sysv-rc-conf

sudo apt-get install sysv-rc-conf

Then follow the onscreen instructions for moving around, viewing all the services, enabling and disabling services for specific run levels, or manually starting and stopping services.

heres a screenshot..

remember the default run-level for Debian based Distros is 2, not 3 or 5 like many other distros. Typically runlevels 2-5 are set the same in Debian unless you have done something custom.

I believe the service is named apache2 in Debian based distros.. httpd is what redhat based distros call it.. I wouldn't think Ubuntu changed the name for the apache service but one can never tell

Last edited by farslayer; 03-11-2009 at 12:00 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remove postgresql from startup IcedJava Linux - General 3 09-10-2006 09:13 PM
how do I remove this startup Command? kushalkoolwal Debian 5 05-17-2006 07:48 PM
how to remove gaim from startup? Pulka Linux - Software 3 10-20-2004 02:18 PM
How to remove programs from startup? RedHatMasta Linux - Software 3 12-24-2003 05:14 PM
remove startup to xwindow? ziggie216 Linux - Software 4 10-10-2003 12:18 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration