after checking on google for the light weight linux distro, I just started using Lubuntu 17.10. I was thinking, in windows there's a service IIS to make it work like a server in local network. Does Lubuntu have something like that? Does Lubuntu work like server by default or do I have to enable something. By installing 3rd party software like xampp/lamp it may work but do I have to install it really? TIA
1 Answers
You can use any GNU/Linux distribution as a server but you will need to install couple of packages. The latter are not 3rd party in debian-based distributions, including Ubuntu, since they are part of official repositories. Indeed, it is better to have a light distribution. General rules recommend to not use graphical environment for a server. Ubuntu provides a much lighter version dedicate for servers During the installation, you will be prompt to choose which kind of server you want to install, it is call Tasksel. You can also install the packages after the installation. If you stick to Lubuntu, you will need to install the packages after the installation. After the installation, in a terminal, you can either use Taskel, e.g. for a LAMP server
sudo tasksel install lamp-server
or APT
sudo apt install apache2 php mysql-server libapache2-mod-php php-mysql

- 196
-
Good to know, thanks. Didn't know about
tasksel
, like to try it. Does Lubuntu come with LAMP by default? – Kaysar Nov 20 '17 at 22:59 -
No, you will need to launch either command I wrote above after the installation (and that's all you need!). But it is pretty straight forward, you write one of them, enter, wait couple of minutes, and you have your LAMP running, and you can check at http://127.0.0.1/ or http://localhost/ – Clèm Nov 20 '17 at 23:10
-
@Kaysar, consider accepting my reply if you think it answer your questions. – Clèm Nov 20 '17 at 23:21
-
apt install
rather than installing from source code withmake
and so on. This will ensure you can easily get security updates with a simplesudo apt update; sudo apt upgrade
. – Chai T. Rex Nov 20 '17 at 22:30apt-get install
and I feel great about it. How does it work really? It's amazing... – Kaysar Nov 20 '17 at 22:38apt upgrade
can easily replace the files with new versions. For more details, see this question. – Chai T. Rex Nov 20 '17 at 22:41