Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
one stop start and stopping apache-mysql-php
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Thu Oct 24, 2002 10:30 pm    Post subject: one stop start and stopping apache-mysql-php Reply with quote

Hello, i am about to emege apache,mysql,php on my note book. I won't need these to be running all the time, normall when out showing example of web sites etc.

Is there a script that would start and stop all three with just one command?

if not what is best to acheive with another method


cheers
Back to top
View user's profile Send private message
Proteus
Guru
Guru


Joined: 14 Jul 2002
Posts: 346
Location: Hamburg, Germany

PostPosted: Sat Oct 26, 2002 3:36 pm    Post subject: Reply with quote

Create a new runlevel i.e. "presentations", then
Code:
rc-update add apache presentations

rc-update add mysql presentations


mod_php (I think that is what you want - not php itself.

Afterwards you can change to the runlevel with the services you neeed active:
Code:
rc presentations

and back to normal without apache, mysql, mod_php:
Code:
rc default

_________________
Greetings,
Proteus
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Sat Oct 26, 2002 8:15 pm    Post subject: Reply with quote

thanks i will give it a try
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum