HomeLinuxUbuntu 22.04 Server Set up with LAMP Stack Setup

Ubuntu 22.04 Server Set up with LAMP Stack Setup


Canonical, the corporate behind Ubuntu, launched Ubuntu 22.04 LTS (Jammy Jellyfish) on April 21, 2022, for Ubuntu Desktop, Ubuntu Server, Ubuntu Cloud, and Ubuntu Core with a 5 years long run assist assured on software program and updates till April 2032.

The scope of this tutorial is to current a traditional set up of Ubuntu 22.04 Server made out of a CD media or a USB bootable stick and in addition, a fundamental set up of LAMP (Linux, Apache, MySQL, and PHP) packages stack with fundamental configurations.

Obtain Ubuntu 22.04 Server

The set up of Ubuntu 22.04 ISO picture might be downloaded utilizing the next hyperlink for 64-bit bit methods solely.

Step 1: Putting in Ubuntu 22.04 Server

1. Create a bootable CD/USB picture utilizing some bootable creators. After the system booting sequence select your media bootable kind from BIOS choices (CD/DVD or USB Drive).

On the primary immediate select Set up Ubuntu Server finish and hit Enter.

Install Ubuntu Server
Set up Ubuntu Server

2. Subsequent choose your System default Language and in addition Set up Course of Language.

Ubuntu Server Language
Ubuntu Server Language

3. Please select your keyboard format or choose “Determine keyboard” to detect your format robotically.

Ubuntu Server Keyboard Layout
Ubuntu Server Keyboard Format

4. Select the primary choice ‘Ubuntu Server‘ to your set up.

Ubuntu Server Installation Type
Ubuntu Server Set up Sort

5. On the following immediate collection enter your community interface settings: IP handle, netmask, gateway, and DNS title servers.

Ubuntu Server Network Configuration
Ubuntu Server Community Configuration
Ubuntu Server IP Address
Ubuntu Server IP Deal with

In case your server is related to the community, and also you run a DHCP server in your straight related community the installer robotically configures community settings with those offered by the DHCP server.

Ubuntu Server Network via DHCP
Ubuntu Server Community by way of DHCP

6. When you don’t entry the Web by way of a proxy go away it clean and Proceed.

Ubuntu Server Proxy
Ubuntu Server Proxy

7. When you don’t produce other Ubuntu mirrors, follow default and Proceed.

Ubuntu Server Mirror
Ubuntu Server Mirror

8. The hard-disks Partition desk is without doubt one of the most delicate topics involving a server as a result of right here you could have plenty of tweaking to do relying in your server’s ultimate vacation spot kind net server, databases, file sharing NFS, Samba, utility server, and many others.

  • For instance, if redundancy, fail-over, and excessive availability are wanted you’ll be able to arrange RAID 1, in case your area grows quick you’ll be able to arrange RAID 0 and LVM, and so forth.
  • For extra common use you’ll be able to simply use the Guided choice with LVM, which is a custom-made choice made by builders.
  • For a manufacturing setting, you in all probability ought to have LVM, software program, or {hardware} RAID and separate partitions for /(root), /residence, /boot, and /var ( the /var partition has the quickest development price on a manufacturing server as a result of listed below are logs, databases, functions meta information, servers caches and others situated.

So, now on guided storage configuration, select “Use a complete disk” and arrange the disk as an LVM group as proven.

Ubuntu Server Storage
Ubuntu Server Storage

9. Affirm the partition desk, When you wish to make some adjustments to this Partition Desk you’ll be able to choose ‘Again‘ and edit your partitions.

Ubuntu Server Partitions
Ubuntu Server Partitions

10. Affirm the write adjustments to the disk.

Ubuntu Server Disk Changes
Ubuntu Server Disk Adjustments

11. Now’s the time to arrange your administrative consumer. On Ubuntu, this consumer replaces the basis account and has all root account powers by using sudo. Enter your username and hit on Proceed.

Ubuntu Server User
Ubuntu Server Consumer

12. Ubuntu Professional is a yearly subscription that gives open-source software program safety updates, which you need to use freed from cost for private use on as much as 5 machines. For enterprise, it’s essential to buy a subscription. I’m skipping this feature for now.

Ubuntu Pro
Ubuntu Professional

13. Subsequent, set up OpenSSH Server to allow distant login.

Ubuntu Server SSH
Ubuntu Server SSH

14. The “Featured Server Snaps” window exhibits fashionable snaps in your server setting. When you don’t wish to set up any snaps, simply go away them clean and proceed to Ubuntu set up.

Ubuntu Server Snaps
Ubuntu Server Snaps
Ubuntu Server Installation
Ubuntu Server Set up

15. As soon as set up and updates are completed, take away your media set up drive (CD/DVD, or USB) and hit Reboot Now/sturdy> to reboot.

Ubuntu Server Installation Finishes
Ubuntu Server Set up Finishes

Congratulations! Ubuntu 22.04 LTS Server version is now put in and able to rock in your brand-new metallic or digital machine.

Step 2: Primary Community Configurations

For now, solely the Core server packages are put in and you may’t actually supply community companies to your community.

16. With a view to set up software program login to your server console for now and confirm some fundamental configurations like community connectivity, settings, startup daemons, software program sources, updates, and others by working a collection of Linux instructions.

17. View system load and fundamental info – After login together with your credentials this info is offered by default MOTD. Additionally, high and htop instructions are helpful.

Ubuntu Server Login
Ubuntu Server Login

18. Confirm community IP addresses utilizing the next ip command.

$ ip addr
Ubuntu Server IP Address
Ubuntu Server IP Deal with

19. Confirm web connectivity: run a ping command towards a site title (this may take a look at TCP/IP stack and DNS).

$ ping –c 4 google.com
Ubuntu Server Ping
Ubuntu Server Ping

When you get the “Non permanent failure in title decision“ message, edit your ‘/and many others/resolv.conf’ file and add the next.

Ubuntu Server Name Servers
Ubuntu Server Title Servers

20. Confirm the machine hostname utilizing the next command.

$ cat /and many others/hostname
$ cat /and many others/hosts
$ hostname
$ hostname –f
Ubuntu Server Hostname
Ubuntu Server Hostname

21. Lastly, replace and improve your Ubuntu system.

$ sudo apt-get replace 
$ sudo apt-get improve

Step 3: Set up LAMP Stack in Ubuntu 22.04

LAMP acronym stands for Linux OS, Apache HTTP Server, MySQL, MariaDB, MongoDB databases, Php, Perl, or Python programming languages used for producing dynamic webpages.

All of those elements are free and Open-Supply software program and are appropriate for constructing dynamic web sites or different net functions and are essentially the most used platforms on the Web immediately (Final 12 months Apache was estimated to serve over 23.04% of all energetic web sites).

22. LAMP stack might be put in step-by-step or utilizing only one single command.

$ sudo apt set up apache2 php php-mysql mysql-client mysql-server
Install LAMP in Ubuntu 22.04
Set up LAMP in Ubuntu 22.04

23. To substantiate php standing create an ‘information.php‘ file within the ‘/var/www/html’ server path with the next content material.

$ sudo echo "" > /var/www/html/information.php

24. Then open a browser and enter your server IP handle or http://server_address/information.php.

Ubuntu Server PHP
Ubuntu Server PHP

Ubuntu 22.04 and LAMP is a superb platform to ship community companies and develop every kind of dynamic or static web sites, and sophisticated net functions with the assistance of Apache, all of this made with a minimal monetary affect utilizing Free and Open Supply software program and the newest applied sciences.

If You Admire What We Do Right here On TecMint, You Ought to Contemplate:

TecMint is the quickest rising and most trusted group web site for any form of Linux Articles, Guides and Books on the internet. Tens of millions of individuals go to TecMint! to look or browse the hundreds of revealed articles accessible FREELY to all.

When you like what you might be studying, please contemplate shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful to your by no means ending assist.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments