Minimal and Quick LAMP Install with Ubuntu Server 18.04 and XFCE GUI

I tasked myself with creating the most minimal LAMP server with GUI I could use for some external testing I need to do. It was really important that the installation was small, fast and duplicatable.

So here is what I came up with. Keep in mind I did not want to automate the process (like with tasksel), I just wanted a full usable GUI with little as pain and as little time as possible.

Then, from the command line:

  • sudo apt-get update
  • sudo apt-get upgrade
  • sudo apt-add-repository universe (only “main” is default, so “universe” must be added for xubuntu-desktop)
  • sudo apt-get install –no-install-recommends xubuntu-desktop (install XFCE with no frills)
  • sudo apt-get install gvfs (this is to fix the desktop trash which will not work properly)
  • reboot

Login then open a terminal

  • sudo apt-get install firefox (optional)
  • sudo apt-get install gedit (optional)
  • sudo apt-get install apache2
  • sudo apt-get install mysql-server
  • sudo mysql_secure_installation (lock down mysql)
  • sudo apt-get install php libapache2-mod-php
  • sudo systemctl restart apache2

And that is it, depending on your internet and server speed, this recipe should have your server up and running quickly.

Good luck.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s