{"id":10623,"date":"2023-11-21T06:11:38","date_gmt":"2023-11-21T06:11:38","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=10623"},"modified":"2023-11-21T06:29:15","modified_gmt":"2023-11-21T06:29:15","slug":"how-to-install-lemp-stack-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/","title":{"rendered":"How to Install LEMP Stack on Ubuntu 22.04"},"content":{"rendered":"<p><strong>LEMP Stack<\/strong> is a software stack used for web development. It consists of four key software packages: Linux, Nginx, MySQL\/MariaDB, and PHP where:<\/p>\n<ul>\n<li><strong>Linux<\/strong> is an open-source operating system known for stability, security, and flexibility. It serves as the foundation for the LEMP Stack.<\/li>\n<li><strong>Nginx<\/strong> is known for efficiently managing multiple concurrent connections in web serving.<\/li>\n<li><strong>MySQL\/MariaDB<\/strong> is the database management system used to store and manage website data.<\/li>\n<li><strong>PHP<\/strong> functions as a server-side scripting language designed for the creation of dynamic web content. It has powerful tools for generating HTML pages, handling forms, interacting with databases, and performing various server-side tasks.<\/li>\n<\/ul>\n<p>In short, the LEMP Stack offers a robust software stack for web development due to its high performance. Its open-source nature makes it a popular choice among web developers.<\/p>\n<p>This article aims to provide a detailed guide on installing and setting up the LEMP Stack on the Ubuntu 22.04 operating system.<\/p>\n<h2><strong>How to Install LEMP Stack on Ubuntu 22.04?<\/strong><\/h2>\n<p>You can set up the LEMP Stack on the Ubuntu 22.04 operating system by following the steps given below.<\/p>\n<h3><strong>Step 1: Update System Repository<\/strong><\/h3>\n<p>Update your system repository to retrieve the latest updates about available software packages:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo apt update<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img fetchpriority=\"high\" decoding=\"async\" width=\"964\" height=\"242\" class=\"wp-image-10624\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1.png 964w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1-300x75.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1-768x193.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1-960x242.png 960w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-1-155x39.png 155w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/pre>\n<p>Make sure that your Ubuntu packages are up to date.<\/p>\n<h2><strong>How to Install Nginx on Ubuntu 22.04?<\/strong><\/h2>\n<p>The below instructions can be performed to install and set up the Nginx on your system.<\/p>\n<h3><strong>Step 1: Install Nginx<\/strong><\/h3>\n<p>To install the Nginx package, a high-performance web server, using the APT package manager on your Ubuntu 22.04 system:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo apt install nginx -y<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img decoding=\"async\" width=\"972\" height=\"532\" class=\"wp-image-10625\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-2.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-2.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-2-300x164.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-2-768x420.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-2-155x85.png 155w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/> <img decoding=\"async\" width=\"969\" height=\"535\" class=\"wp-image-10626\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-3.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-3.png 969w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-3-300x166.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-3-768x424.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-3-155x86.png 155w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/pre>\n<p>You can examine the output on your terminal window that the package has been installed on your machine.<\/p>\n<h3><strong>Step 2: Check Nginx Status<\/strong><\/h3>\n<p>To ensure that Nginx has been successfully installed and is actively running, check its current status using the command:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo systemctl status nginx<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"461\" class=\"wp-image-10627\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-4.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-4.png 978w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-4-300x141.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-4-768x362.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-4-155x73.png 155w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/><\/pre>\n<p>If you see the <strong>Active<\/strong> status of the Nginx in your terminal, it indicates that the Nginx is functioning actively.<\/p>\n<h3><strong>Step 3: Testing Nginx<\/strong><\/h3>\n<p>The command <strong>nginx -t<\/strong>, tests the Nginx configuration files for errors without making changes, ensuring the settings are correct before restarting the Nginx service:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo nginx -t<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"958\" height=\"102\" class=\"wp-image-10628\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-5.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-5.png 958w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-5-300x32.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-5-768x82.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-5-155x17.png 155w\" sizes=\"(max-width: 958px) 100vw, 958px\" \/><\/pre>\n<p>You can also verify the Nginx using the <strong>localhost<\/strong> in your web browsers. If you see <strong>Welcome to nginx<\/strong> on your web page, it means the package is installed successfully on your Ubuntu 22.04 system:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>localhost<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1223\" height=\"508\" class=\"wp-image-10629\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6.png 1223w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6-300x125.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6-1024x425.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6-768x319.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-6-155x64.png 155w\" sizes=\"(max-width: 1223px) 100vw, 1223px\" \/><\/pre>\n<p>Using the above steps, you have successfully set up the Nginx package on your Ubuntu 22.04.<\/p>\n<h2><strong>How to Install MySQL\/MariaDB on Ubuntu 22.04?<\/strong><\/h2>\n<p>Setting up MySQL\/MariaDB on Ubuntu 22.04 is so simple. Just follow the steps provided below to install the complete package.<\/p>\n<h3><strong>Step 1: Install MySQL\/MariaDB<\/strong><\/h3>\n<p>To install the MariaDB package on your system, execute the command from your Ubuntu terminal:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo apt install mariadb-client mariadb-server -y<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"533\" class=\"wp-image-10630\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-7.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-7.png 970w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-7-300x165.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-7-768x422.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-7-155x85.png 155w\" sizes=\"(max-width: 970px) 100vw, 970px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"429\" class=\"wp-image-10631\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-8.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-8.png 972w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-8-300x132.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-8-768x339.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-8-155x68.png 155w\" sizes=\"(max-width: 972px) 100vw, 972px\" \/><\/pre>\n<p>Once you have finished with the installation process, you can configure it and utilize its functionalities.<\/p>\n<h3><strong>Step 2: Start MariaDB<\/strong><\/h3>\n<p>Run the <strong>systemctl <\/strong>command to start the MariaDB service on your Ubuntu machine:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo systemctl start mariadb<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"48\" class=\"wp-image-10632\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9.png 921w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9-768x40.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9-900x48.png 900w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-9-155x8.png 155w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/pre>\n<p>The blank output shows that MariaDB is started without any errors.<\/p>\n<h3><strong>Step 3: Enable MariaDB<\/strong><\/h3>\n<p>Use the <strong>Enable <\/strong>option with the command to ensure MariaDB starts automatically upon system boot:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo systemctl enable mariadb<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"122\" class=\"wp-image-10633\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-10.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-10.png 975w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-10-300x38.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-10-768x96.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-10-155x19.png 155w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/pre>\n<h3><strong>Step 4: Check MariaDB\u2019s Status<\/strong><\/h3>\n<p>Verify that MariaDB is actively running without encountering any errors:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo systemctl status mariadb<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"975\" height=\"528\" class=\"wp-image-10634\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11.png 975w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11-300x162.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11-768x416.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11-960x520.png 960w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-11-155x84.png 155w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/pre>\n<p>The <strong>Active<\/strong> status displayed on your terminal screen indicates the successful start of the MariaDB database server on your local machine.<\/p>\n<h3><strong>Step 5: Install MySQL Secure<\/strong><\/h3>\n<p>To enhance your data security, use the command to configure settings like setting a root password and removing anonymous users. During the MariaDB configuration process, carefully read the instructions to provide appropriate responses:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo mysql_secure_installation<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"965\" height=\"527\" class=\"wp-image-10635\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-12.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-12.png 965w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-12-300x164.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-12-768x419.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-12-155x85.png 155w\" sizes=\"(max-width: 965px) 100vw, 965px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"966\" height=\"554\" class=\"wp-image-10636\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-13.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-13.png 966w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-13-300x172.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-13-768x440.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-13-155x89.png 155w\" sizes=\"(max-width: 966px) 100vw, 966px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"963\" height=\"583\" class=\"wp-image-10637\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-14.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-14.png 963w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-14-300x182.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-14-768x465.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-14-155x94.png 155w\" sizes=\"(max-width: 963px) 100vw, 963px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"969\" height=\"556\" class=\"wp-image-10638\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-15.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-15.png 969w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-15-300x172.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-15-768x441.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-15-155x89.png 155w\" sizes=\"(max-width: 969px) 100vw, 969px\" \/><\/pre>\n<p>The message <strong>Thanks for using MariaDB<\/strong> indicates that the process has finished, and your MariaDB installation is now configured with the security settings.<\/p>\n<h2><strong>How to Install PHP on Ubuntu 22.04?<\/strong><\/h2>\n<p>Follow the provided instructions to install PHP on your Ubuntu 22.04 system.<\/p>\n<h3><strong>Step 1: Install PHP<\/strong><\/h3>\n<p>Install PHP along with its related libraries and dependencies on your Ubuntu 22.04 to enable a wide range of functionalities:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo apt install -y php php-cli php-fpm php-json php-common php-mysql php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"978\" height=\"533\" class=\"wp-image-10639\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-16.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-16.png 978w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-16-300x163.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-16-768x419.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-16-155x84.png 155w\" sizes=\"(max-width: 978px) 100vw, 978px\" \/> <img loading=\"lazy\" decoding=\"async\" width=\"976\" height=\"361\" class=\"wp-image-10640\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-17.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-17.png 976w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-17-300x111.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-17-768x284.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-17-155x57.png 155w\" sizes=\"(max-width: 976px) 100vw, 976px\" \/><\/pre>\n<p>The command output confirms the successful installation of the PHP package on your system.<\/p>\n<h3><strong>Step 2: Confirm PHP<\/strong><\/h3>\n<p>The command <strong>php &#8211;version<\/strong> is utilized in the terminal to display the installed PHP version:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>php --version<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1191\" height=\"150\" class=\"wp-image-10641\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18.png 1191w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18-300x38.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18-1024x129.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18-768x97.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-18-155x20.png 155w\" sizes=\"(max-width: 1191px) 100vw, 1191px\" \/><\/pre>\n<p>The currently installed PHP version, like <strong>PHP 8.1.2<\/strong>, will be shown on your Ubuntu screen.<\/p>\n<h3><strong>Step 3: Check PHP Status<\/strong><\/h3>\n<p>To check if PHP is working correctly, you can check its status using the command:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>systemctl status php*-fpm.service<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"974\" height=\"506\" class=\"wp-image-10642\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-19.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-19.png 974w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-19-300x156.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-19-768x399.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-19-155x81.png 155w\" sizes=\"(max-width: 974px) 100vw, 974px\" \/><\/pre>\n<p>If the command output displays <strong>Active<\/strong> on your screen, it shows that the PHP-FPM service is currently running.<\/p>\n<h2><strong>How to Configure PHP on localhost?<\/strong><\/h2>\n<p>In the following few steps, you can configure the PHP on your <strong>Localhost<\/strong>.<\/p>\n<h3><strong>Step 1: Configure PHP on Localhost<\/strong><\/h3>\n<p>Access the default configuration file using a text editor, such as <strong>Nano<\/strong>. This will enable you to edit the configuration settings specifically related to PHP for your local web server setup:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo nano \/etc\/nginx\/sites-enabled\/default<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"962\" height=\"52\" class=\"wp-image-10643\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20.png 962w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20-300x16.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20-768x42.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20-960x52.png 960w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-20-155x8.png 155w\" sizes=\"(max-width: 962px) 100vw, 962px\" \/><\/pre>\n<p>Inside the default configuration file, make sure to uncomment the lines of codes:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>location ~ \\.php$ {\n\ninclude snippets\/fastcgi-php.conf;\n\nfastcgi_pass unix:\/run\/php\/php8.1-fpm.sock;\n\n}<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"967\" height=\"622\" class=\"wp-image-10644\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-21.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-21.png 967w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-21-300x193.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-21-768x494.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-21-155x100.png 155w\" sizes=\"(max-width: 967px) 100vw, 967px\" \/><\/p>\n<h3><strong>Step 2: Reload Nginx<\/strong><\/h3>\n<p>Reload the Nginx service to apply the changes made in the Nginx configuration:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>sudo systemctl reload nginx<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"964\" height=\"54\" class=\"wp-image-10645\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22.png 964w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22-300x17.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22-768x43.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22-960x54.png 960w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-22-155x9.png 155w\" sizes=\"(max-width: 964px) 100vw, 964px\" \/><\/pre>\n<h3><strong>Step 3: Test PHP<\/strong><\/h3>\n<p>To test the PHP, you need to create a file containing PHP information and save it as &#8216;index.php&#8217; in a specific location:<\/p>\n<table>\n<thead>\n<tr>\n<th style=\"text-align: left;\">\n<pre>echo \"&lt;?php phpinfo(); ?&gt;\" | sudo tee \/var\/www\/html\/index.php<\/pre>\n<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<pre><img loading=\"lazy\" decoding=\"async\" width=\"1184\" height=\"76\" class=\"wp-image-10646\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23.png 1184w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23-300x19.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23-1024x66.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23-768x49.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-23-155x10.png 155w\" sizes=\"(max-width: 1184px) 100vw, 1184px\" \/><\/pre>\n<p>Finally, enter <strong>localhost<\/strong> into a web browser, followed by <strong>\/index.php<\/strong>, to access the file and display detailed information about your server&#8217;s PHP configuration:<\/p>\n<table>\n<thead>\n<tr>\n<th>localhost\/index.php<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1221\" height=\"629\" class=\"wp-image-10647\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24.png\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24.png 1221w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24-300x155.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24-1024x528.png 1024w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24-768x396.png 768w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/word-image-10623-24-155x80.png 155w\" sizes=\"(max-width: 1221px) 100vw, 1221px\" \/><\/p>\n<p>The <strong>index.php<\/strong> file is working properly, providing detailed information about the PHP configuration on your Ubuntu 22.04 system.<\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>You can set up the LEMP Stack on your Ubuntu machine through simple commands. LEMP Stack involves installing and configuring Nginx, MariaDB\/MySQL, and PHP. By following the aforementioned steps, you have successfully installed and configured each element of the LEMP Stack on Ubuntu 22.04.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>LEMP Stack is a software stack used for web development. It consists of four key software packages: Linux, Nginx, MySQL\/MariaDB, and PHP where: Linux is an open-source operating system known for stability, security, and flexibility. It serves as the foundation for the LEMP Stack. Nginx is known for efficiently managing multiple concurrent connections in web [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":10650,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[241,224],"class_list":["post-10623","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-lemp-stack","tag-ubuntu-22-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"LEMP Stack is a software stack used for web development. It consists of four key software packages: Linux, Nginx, MySQL\/MariaDB, and PHP where: Linux is an open-source operating system known for stability, security, and flexibility. It serves as the foundation for the LEMP Stack. Nginx is known for efficiently managing multiple concurrent connections in web [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-21T06:11:38+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-21T06:29:15+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install LEMP Stack on Ubuntu 22.04\",\"datePublished\":\"2023-11-21T06:11:38+00:00\",\"dateModified\":\"2023-11-21T06:29:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\"},\"wordCount\":919,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg\",\"keywords\":[\"LEMP Stack\",\"Ubuntu 22.04\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\",\"name\":\"How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg\",\"datePublished\":\"2023-11-21T06:11:38+00:00\",\"dateModified\":\"2023-11-21T06:29:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How-to-install-lemp-stack-on-ubuntu-22-04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install LEMP Stack on Ubuntu 22.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community","og_description":"LEMP Stack is a software stack used for web development. It consists of four key software packages: Linux, Nginx, MySQL\/MariaDB, and PHP where: Linux is an open-source operating system known for stability, security, and flexibility. It serves as the foundation for the LEMP Stack. Nginx is known for efficiently managing multiple concurrent connections in web [&hellip;]","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/","og_site_name":"Greenwebpage Community","article_published_time":"2023-11-21T06:11:38+00:00","article_modified_time":"2023-11-21T06:29:15+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install LEMP Stack on Ubuntu 22.04","datePublished":"2023-11-21T06:11:38+00:00","dateModified":"2023-11-21T06:29:15+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/"},"wordCount":919,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg","keywords":["LEMP Stack","Ubuntu 22.04"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/","name":"How to Install LEMP Stack on Ubuntu 22.04 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg","datePublished":"2023-11-21T06:11:38+00:00","dateModified":"2023-11-21T06:29:15+00:00","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/11\/How-to-install-lemp-stack-on-ubuntu-22-04.jpg","width":1020,"height":600,"caption":"How-to-install-lemp-stack-on-ubuntu-22-04"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-lemp-stack-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install LEMP Stack on Ubuntu 22.04"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=10623"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10623\/revisions"}],"predecessor-version":[{"id":10649,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/10623\/revisions\/10649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/10650"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=10623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=10623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=10623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}