View Full Version : [ubuntu] [SOLVED] How do I set LAMP so it does not run by default at startup?
Rytron
June 4th, 2008, 07:43 AM
Hi,
How do I set LAMP so it does not run by default at startup?
I'd rather start it up manually as I presume it is just wasting resources by having it running in the background when it is not being used.
Also would running LAMP pose a security risk when I go on the internet?
Thanks.
Sef
June 4th, 2008, 08:33 AM
Moved to Server Platforms.
quelx
June 4th, 2008, 08:41 AM
Hi,
How do I set LAMP so it does not run by default at startup?
I'd rather start it up manually as I presume it is just wasting resources by having it running in the background when it is not being used.
from the terminal
sudo update-rc.d -f apache2 remove
sudo update-rc.d -f mysql remove
If you're in gnome System > Administration > Services and disable/enable apache2 and mysql
Also would running LAMP pose a security risk when I go on the internet?
Thanks.
Yes, having any services running is a security risk, the most secure computer is powered off :)
Kolipoki
June 4th, 2008, 10:49 AM
Yes, having any services running is a security risk, the most secure computer is powered off :)
Well this confuses me a bit. I'm trying to make some independent decisions at my job, where Windows servers have been the traditional option, and at the moment I'm trying to setup an Ubuntu 8.04 web server with a face to the internet (doing this for the first time). I actually selected Ubuntu thinking of security.
So how secure/insecure will I be in the internet with Ubuntu server edition? I am aware that probably we are missing some discussion on some possible scenarios, regarding the security issue when setting up a web server for internet. My scenario is a server inside a very small public agency's network, which by local law needs to publish some documents, and, on my initiative, will be joined by some PHP/MySQL applications soon.
I'm positively sure that some clarifying comments here would be very useful, and, on my behalf, greatly appreciated.
cdenley
June 4th, 2008, 12:20 PM
It is a security risk if you configure it wrong. It is also a security risk if a malicious attacker finds an unknown remote security vulnerability. I would be more worried about your php code than any unknown apache vulnerabilities. By default, it is probably as secure as any other default lamp install. It would certainly be more secure than a windows server.
I think what was meant is that running any network service opens a point-of-attack. Without apache running, you would be safe from hypothetical unpatched security vulnerabilities.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.