LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 03-11-2009, 09:48 AM   #1
QueenZ
Member
 
Registered: Sep 2008
Distribution: openSUSE, Ubuntu
Posts: 373
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, 10:30 AM   #2
desertwebdesigns
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:

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

Code:
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)

Code:
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, 10:58 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
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
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.. http://screenshots.debian.net/package/sysv-rc-conf

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 11:00 AM.
 
  


Reply



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 08:13 PM
how do I remove this startup Command? kushalkoolwal Debian 5 05-17-2006 06:48 PM
how to remove gaim from startup? Pulka Linux - Software 3 10-20-2004 01:18 PM
How to remove programs from startup? RedHatMasta Linux - Software 3 12-24-2003 04:14 PM
remove startup to xwindow? ziggie216 Linux - Software 4 10-10-2003 11:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:32 AM.

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