LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-13-2009, 01:01 AM   #1
frznchckn
Member
 
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102

Rep: Reputation: 15
Question prevent LAMP from starting up at bootup


How do I prevent apache2, mysql, and php from running at bootup?

Then when I want to do development, how do I start them all up again?

Thanks.
 
Old 02-13-2009, 03:34 AM   #2
rizwanrafique
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, openSUSE, CentOS
Posts: 147

Rep: Reputation: 19
Stuff is started using their scripts in /etc/rcX.d/
Where X is the runlevel. So there is a directory for each runlevel.

You should have a script named in format SNN<name> in each runlevel's directory where script is starting.

You remove these scripts and you stop them from starting. There are a few ways to remove sripts.

Code:
update-rc.d -f <app_name> remove
Start applications manually by invoking /etc/init.d/<app_name>

Another utility is called sysv-rc-conf.

Install it:
Code:
sudo aptitude install sysv-rc-conf
and invoke it:
Code:
sysv-rc-conf
 
Old 02-13-2009, 10:30 AM   #3
frznchckn
Member
 
Registered: Jun 2006
Location: TX
Distribution: Debian
Posts: 102

Original Poster
Rep: Reputation: 15
Thanks, that's a cool tool.

Another question now, why are so many processes started at multiple run levels?
 
  


Reply

Tags
apache, lamp, mysql, php


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
Prevent ProFTPD From Starting rn5a Linux - Newbie 2 09-14-2007 02:57 AM
How to prevent a service from starting phonecian Linux - Software 2 10-06-2005 11:57 AM
how to prevent x server from starting? iansworld Fedora 5 02-20-2005 04:40 AM
how to prevent mdk10/kde from launching apps at bootup? webazoid Linux - Software 1 08-02-2004 02:13 AM
Prevent X from starting automatically Yocal Linux - Newbie 6 08-27-2003 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:19 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