{"id":1043,"date":"2021-03-22T18:19:08","date_gmt":"2021-03-22T18:19:08","guid":{"rendered":"https:\/\/codeinsightacademy.com\/blog\/?p=1043"},"modified":"2021-06-15T15:05:54","modified_gmt":"2021-06-15T15:05:54","slug":"install-lemp-on-wsl","status":"publish","type":"post","link":"https:\/\/codeinsightacademy.com\/blog\/windows\/install-lemp-on-wsl\/","title":{"rendered":"Install LEMP on WSL"},"content":{"rendered":"\n<p>To install Ubuntu Linux on windows follow instructions from following site<\/p>\n\n\n\n<p><a href=\"https:\/\/ubuntu.com\/wsl\">https:\/\/ubuntu.com\/wsl<\/a><\/p>\n\n\n\n<p>Open PowerShell as Administrator<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --list --verbose<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-32.png\"><img loading=\"lazy\" width=\"454\" height=\"83\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-32.png\" alt=\"\" class=\"wp-image-1799\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-32.png 454w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-32-300x55.png 300w\" sizes=\"(max-width: 454px) 100vw, 454px\" \/><\/a><\/figure>\n\n\n\n<p>If you see error then run following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dism.exe \/online \/enable-feature \/featurename:VirtualMachinePlatform \/all \/norestart<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-33.png\"><img loading=\"lazy\" width=\"778\" height=\"171\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-33.png\" alt=\"\" class=\"wp-image-1801\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-33.png 778w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-33-300x66.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-33-768x169.png 768w\" sizes=\"(max-width: 778px) 100vw, 778px\" \/><\/a><\/figure>\n\n\n\n<p>Now enable WSL from Windows Features<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-34.png\"><img loading=\"lazy\" width=\"456\" height=\"681\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-34.png\" alt=\"\" class=\"wp-image-1806\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-34.png 456w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-34-201x300.png 201w\" sizes=\"(max-width: 456px) 100vw, 456px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-35.png\"><img loading=\"lazy\" width=\"417\" height=\"372\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-35.png\" alt=\"\" class=\"wp-image-1807\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-35.png 417w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-35-300x268.png 300w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/a><\/figure>\n\n\n\n<p>Restart PC<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Restart-Computer<\/code><\/pre>\n\n\n\n<p>Install Ubuntu from Microsoft Store<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-36.png\"><img loading=\"lazy\" width=\"682\" height=\"309\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-36.png\" alt=\"\" class=\"wp-image-1809\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-36.png 682w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-36-300x136.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-37.png\"><img loading=\"lazy\" width=\"798\" height=\"513\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-37.png\" alt=\"\" class=\"wp-image-1811\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-37.png 798w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-37-300x193.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-37-768x494.png 768w\" sizes=\"(max-width: 798px) 100vw, 798px\" \/><\/a><\/figure>\n\n\n\n<p>Once you install it will show launch option<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-38.png\"><img loading=\"lazy\" width=\"795\" height=\"536\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-38.png\" alt=\"\" class=\"wp-image-1813\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-38.png 795w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-38-300x202.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-38-768x518.png 768w\" sizes=\"(max-width: 795px) 100vw, 795px\" \/><\/a><\/figure>\n\n\n\n<p>Click on Launch or search Ubuntu on windows search<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-40.png\"><img loading=\"lazy\" width=\"832\" height=\"611\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-40.png\" alt=\"\" class=\"wp-image-1817\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-40.png 832w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-40-300x220.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-40-768x564.png 768w\" sizes=\"(max-width: 832px) 100vw, 832px\" \/><\/a><\/figure>\n\n\n\n<p>You will be prompted to add new user which will be default user of Ubuntu<\/p>\n\n\n\n<p>Once successfully installed you can open powershell and check installed WSL on your system<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-41.png\"><img loading=\"lazy\" width=\"317\" height=\"72\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-41.png\" alt=\"\" class=\"wp-image-1819\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-41.png 317w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-41-300x68.png 300w\" sizes=\"(max-width: 317px) 100vw, 317px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>To update wsl from version 1 to version 2 (Optional)<br>You need to run following command<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wsl --set-default-version 2<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-42.png\"><img loading=\"lazy\" width=\"735\" height=\"91\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-42.png\" alt=\"\" class=\"wp-image-1820\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-42.png 735w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-42-300x37.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/a><\/figure>\n\n\n\n<p>If you get issue you can upgrade kernal component by download and installing update msi<\/p>\n\n\n\n<p><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10#step-4---download-the-linux-kernel-update-package\">https:\/\/docs.microsoft.com\/en-us\/windows\/wsl\/install-win10#step-4&#8212;download-the-linux-kernel-update-package<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-43.png\"><img loading=\"lazy\" width=\"859\" height=\"422\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-43.png\" alt=\"\" class=\"wp-image-1825\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-43.png 859w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-43-300x147.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-43-768x377.png 768w\" sizes=\"(max-width: 859px) 100vw, 859px\" \/><\/a><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-44.png\"><img loading=\"lazy\" width=\"495\" height=\"386\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-44.png\" alt=\"\" class=\"wp-image-1827\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-44.png 495w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-44-300x234.png 300w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/a><\/figure>\n\n\n\n<p>Once you update wsl kernal<br>Run following command again<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-45.png\"><img loading=\"lazy\" width=\"744\" height=\"232\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-45.png\" alt=\"\" class=\"wp-image-1830\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-45.png 744w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-45-300x94.png 300w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/a><\/figure>\n\n\n\n<p>Now update Ubuntu from version 1 to 2<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-46.png\"><img loading=\"lazy\" width=\"776\" height=\"156\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-46.png\" alt=\"\" class=\"wp-image-1832\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-46.png 776w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-46-300x60.png 300w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-46-768x154.png 768w\" sizes=\"(max-width: 776px) 100vw, 776px\" \/><\/a><\/figure>\n\n\n\n<p>If you get error do enable to Virtual Machine Platform from Windows Features<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-47.png\"><img loading=\"lazy\" width=\"415\" height=\"367\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-47.png\" alt=\"\" class=\"wp-image-1833\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-47.png 415w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-47-300x265.png 300w\" sizes=\"(max-width: 415px) 100vw, 415px\" \/><\/a><\/figure>\n\n\n\n<p>Now Restart PC<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Restart-Computer<\/code><\/pre>\n\n\n\n<p>If you still get the error then do enable virtualization from BIOS setting<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-48.png\"><img loading=\"lazy\" width=\"554\" height=\"236\" src=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-48.png\" alt=\"\" class=\"wp-image-1837\" srcset=\"https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-48.png 554w, https:\/\/codeinsightacademy.com\/blog\/http:\/\/codeinsightacademy.com\/blog\/wp-content\/uploads\/2021\/06\/image-48-300x128.png 300w\" sizes=\"(max-width: 554px) 100vw, 554px\" \/><\/a><\/figure>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Ubuntu path on windows explorer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\\\\wsl$\\Ubuntu<\/code><\/pre>\n\n\n\n<p>Update and Upgrade Kernal<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update\nsudo apt-get upgrade<\/code><\/pre>\n\n\n\n<p>Install Nginx Web Server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:nginx\/stable\nsudo apt-get update\nsudo apt-get install -y nginx\nsudo service nginx start\nsudo service nginx status\nsudo service nginx status<\/code><\/pre>\n\n\n\n<p>Install PHP and its services<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo add-apt-repository ppa:ondrej\/php\nsudo apt-cache show php\nsudo apt-get install php7.4-cli php7.4-fpm php7.4-curl php7.4-gd php7.4-mysql php7.4-mbstring zip unzip\nphp --version\nphp -r \"echo 'Hello World' . PHP_EOL;\"\nphp -S localhost:1234\nsudo service php7.4-fpm start<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/php\/7.4\/fpm\/pool.d\/www.conf<\/code><\/pre>\n\n\n\n<p>Find<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>listen =  127.0.0.1:9000<\/code><\/pre>\n\n\n\n<p>Replace<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>listen= \/run\/php\/php7.4-fpm.sock<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/etc\/nginx\/sites-available\/default<\/code><\/pre>\n\n\n\n<p>Find<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>index index.html index.htm index.nginx-debian.html;<\/code><\/pre>\n\n\n\n<p>Replace<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>index index.php index.html index.htm index.nginx-debian.html;<\/code><\/pre>\n\n\n\n<p>Find<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>#location ~ \\.php$ {\n# include snippets\/fastcgi-php.conf;\n#\n# # With php-fpm (or other unix sockets):\n# fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock;\n# # With php-cgi (or other tcp sockets):\n# fastcgi_pass 127.0.0.1:9000;\n#}<\/code><\/pre>\n\n\n\n<p>Replace<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>location ~ \\.php$\n{\n<strong>include snippets\/fastcgi-php.conf;<\/strong>\n#\n# # With php-fpm (or other unix sockets):\n<strong>fastcgi_pass unix:\/var\/run\/php\/php7.4-fpm.sock;<\/strong>\n# # With php-cgi (or other tcp sockets):\n# fastcgi_pass 127.0.0.1:9000;\n}<\/code><\/pre>\n\n\n\n<p>Restart Services<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo service nginx reload\nsudo service php7.4-fpm restart<\/code><\/pre>\n\n\n\n<p>Create index file in nginx&#8217;s default root directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo touch \/var\/www\/html\/index.php<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vim \/var\/www\/html\/index.php\n\n&lt;?php\nphpinfo();<\/code><\/pre>\n\n\n\n<p>Install MySQL server<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install mysql-server\nsudo mysql_secure_installation<\/code><\/pre>\n\n\n\n<p>Create new user to access mysql from php\/python or any other scripting language<\/p>\n\n\n\n<p>if you face issue while connecting to database via php then run following commands by creating new user<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>CREATE USER 'phpuser'@'localhost' IDENTIFIED BY '%TGBbgt5';\nGRANT ALL PRIVILEGES ON *.* TO 'phpuser'@'localhost';\nFLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Ref: <a href=\"https:\/\/www.how2shout.com\/how-to\/install-nginx-php-mysql-wsl-windows-10.html\">How to install Nginx + php + MySQL on WSL Windows 10 -H2S Media (how2shout.com)<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To install Ubuntu Linux on windows follow instructions from following site https:\/\/ubuntu.com\/wsl Open PowerShell as Administrator If you see error then run following command Now enable WSL from Windows Features Restart PC Install Ubuntu from Microsoft Store Once you install it will show launch option Click on Launch or search Ubuntu on windows search You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[27,26,28],"_links":{"self":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1043"}],"collection":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/comments?post=1043"}],"version-history":[{"count":22,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions"}],"predecessor-version":[{"id":1854,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/posts\/1043\/revisions\/1854"}],"wp:attachment":[{"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/media?parent=1043"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/categories?post=1043"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeinsightacademy.com\/blog\/wp-json\/wp\/v2\/tags?post=1043"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}