sheriff076
Posts: 34
Joined: Sat May 19, 2012 5:33 pm

LAMP Stack installation

Sat Dec 08, 2012 10:25 pm

Hello,

I'm reading the Wiley Raspberry Pi User guide (chapter 9) and it covers installation of LAMP stack. It tells me that the installation process launches the MySQL and Apache daemons in the background. What I'd like to know is if its easy to kill/stop them if I don't want the web server running? And equally is it easy to start them at will?

Perhaps an unorthodox request but if someone can spare a minute explain, I'd appreciate it.
Regards,

Steve

User avatar
joan
Posts: 14255
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: LAMP Stack installation

Sat Dec 08, 2012 10:33 pm

I'd be surprised and slightly disappointed if those programs were installed or started by default.

Try

ps aux | grep "apac"

and

ps aux | grep "mysq"

to see if they are running on your system.

bgirardot
Posts: 517
Joined: Wed Oct 10, 2012 6:20 am
Location: Switzerland

Re: LAMP Stack installation

Sat Dec 08, 2012 11:19 pm

Not sure what distribution the book uses, but for me, using apt-get install to install apache and mysql most definitely sets them up to auto launch on boot. i am sure it is easy to change that after install.

sudo service mysql stop/start
sudo service apache stop/start

is all it takes to stop or start them in raspbian.

sheriff076
Posts: 34
Joined: Sat May 19, 2012 5:33 pm

Re: LAMP Stack installation

Sun Dec 09, 2012 6:35 pm

bgirardot wrote:Not sure what distribution the book uses, but for me, using apt-get install to install apache and mysql most definitely sets them up to auto launch on boot. i am sure it is easy to change that after install.

sudo service mysql stop/start
sudo service apache stop/start

is all it takes to stop or start them in raspbian.
That's what I needed to know, thank you.
Regards,

Steve

Return to “Networking and servers”