• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Mobile
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • What's new
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • thThai
    • pl_PLPolish
    • tr_TRTurkish
    • id_IDIndonesian
    • hi_INHindi
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
No result
See all results
MasterTrend Info - Technology, News and Tutorials
No result
See all results
Start Tutorials

How to set up a local Linux web server on Windows 11

MasterTrend Insights by MasterTrend Insights
April 28, 2026
in Tutorials
Reading time:7 min read
0
How to set up a local Linux web server on Windows 11
60
SHARED
168
Views
Share on FacebookShare on Twitter

How to run a local Linux web server in a Windows 11 window

Are you building a website or programming web tools using PHP, MySQL, or other common languages? Having a test site that you can run on your local PC is a huge help. 🌐 However, most web hosting services, including the best ones, use Linux and not Windows as their hosting environment. 🤔 But what if you have a PC running Windows and you want to build a site that will be hosted on a Linux server? We have good news! 🎉

With the built-in Windows Subsystem for Linux (WSL) service in Windows 11 or 10, you can create a local Linux web server for testing and developing sites. You simply run Linux in a window and can visit the website in your Windows-based browser, as well as edit the HTML, PHP, or other key files with a Windows editor (for example: Notepad++, my favorite). You can also browse your Linux server's file system using Windows Explorer. 🖥️

Next, we will show you how to create a local Linux web server running on WSL. We will use AlmaLinux 9 instead of Ubuntu because AlmaLinux is one of the most widely used server operating systems by web hosting providers and is similar to CentOS, which is also widely used. Our dashboard control For the server it will be Virtualmin, as it is a free and easy to use panel. Many people prefer cPanel, but the cPanel license has a cost. 💸

1. Install WSL Windows for Linux) if you don't have it installed yet. 🌟 To do so, enter the command wsl --install at the command prompt PowerShell. 🚀

1. Instalá WSL

2.🌟 Install AlmaLinux OS 9 for WSL. Ya está disponible en la Microsoft Store para que lo descargues fácilmente. 🚀

AlmaLinux OS 9

During this process, you will need to create a username and password for your AlmaLinux instance. 🔐

3. Update your Linux environment with the latest packages. This is crucial to ensure the best performance and security. 🚀

sudo dnf update

4. Set a password for the root user. This is an essential step to protect your system. 🔒

sudo passwd root

5. Install VirtualMin by running the following commands. ⚙️ The downloaded file is a script that will run a series of commands. It is not recommended to install software This way if you don't trust the source. You can read the contents of the script by typing less install.sh after it has been downloaded.

wget -O install.sh https://raw.githubusercontent.com/virtualmin/virtualmin-install/master/virtualmin-install.sh chmod a+x install.sh sudo ./install.sh

Visit the URL provided by your browser (either your machine name or IP address with :10000 at the end). 🌐

navigate to URL

6. Log in as root with the password you created. 🔐✨

6. Iniciá sesión como root

7. Navigate through the Post-Installation Wizard, leaving the default values except as noted below. 🚀

7. Navegá a través del Asistente de Post-Instalación(Image credit: Future)

I recommend changing your MariaDB password to one that is easier to remember than the default one. 🔒💡

Te recomiendo cambiar la contraseña de MariaDB(Image credit: Future)

To improve your primary nameserver settings, I recommend enabling the “Skip resolvability check” option. This can help optimize the performance of your website and ensure everything runs smoothly 🌐.

Toggle "Skip check for resolvability"(Image credit: Future)

8. Haz clic en Add new virtual server. 🌐

8. Haz clic en Agregar nuevo servidor virtual(Image credit: Future)

9. Give your site a domain name, admin password, and admin user. 🚀 You may or may not need the username and password, as you may prefer to stay logged in as root. 🔒

9. Dale a tu sitio un nombre de dominio(Image credit: Future)

10. Install Phpmyadmin and/or WordPress by navigating to Virtualmin -> Manage Web Applications. Select the applications you want to install and click on “Show Installation Options. Then choose the installation options or accept the default options. 🚀

10. Instalá Phpmyadmin y/o WordPress navegando a Virtualmin(Image credit: Future)

Ahora podés gestionar tus bases de datos accediendo a http://IPaddresss/phpmyadmin en tu navegador (por ejemplo: http://172.18.231.63/phpmyadmin en mi caso). 🌐

11. Assign a hostname to your IP in C:\Windows\System32\drivers\etc\hosts. To do this, add the IP address, press tab, and then enter the Spanish name you want to use to access your site. ⚙️ This isn't necessary, as you can always go directly to the IP address in your browser, but it does make browsing your local site a little easier. 🚀

Assign an IP address to your domain name

(Image credit: Future)

12. Give all users read and write access to your directory public_html so that they can access all the folders of the websites through Windows Explorer. 🌐 If you set up a virtual server with a user who owns it — in my case, I called that user “thuser” — the folder containing the website files is /home/[USERNAME]/public_html (eg: /home/thuser/public_html). That's where you'll find the file index.html which is the default home page for your site.

If for some reason you configured the virtual server to run under the root user, the site files will be located in /var/www. But, if you followed the instructions above, they will be in /home/[USERNAME]/public_html. 📁

There is just one problem. If you try to navigate to /home/thuser/public_html in Windows Explorer, you will receive an error message like the following. 🚫

thuser is not accessible
(Image credit: Future)

To solve this problem, you have to enter sudo chmod -R 777 [PATH] in the AlmaLinux command prompt. For example. 🐧✨

sudo chmod -R 777 /home/thuser

This will make the entire home folder available in Windows Explorer. Windows. So, you can use your software favorite code editing software on Windows, such as Notepad++, to open and edit files there. 🖥️✏️

windows explorer showing public_html

(Image credit: Future)

Ahora podés trabajar en tu sitio y probarlo en tu PC local 🖥️. Podés navegar hasta él en tu navegador ya sea yendo a la dirección IP o al nombre de dominio que elegiste (por ejemplo: mysite). Podés editar los archivos usando software de edición de Windows y acceder a la base de datos yendo a http://mysite/phpmyadmin. Usá las siguientes direcciones para llegar a donde necesités 📍.

 

Address (assuming mysite as name)Use
http://mysiteHome page
http://mysite:10000Virtualmin Control Panel
http://mysite/phpmyadminDatabase Management
\\wsl.localhost\AlmaLinux-9\home\thuser\public_htmlHome page folder in Windows Explorer

 

🛠️ For this test site to work properly, it is essential that you have a window open AlmaLinux-9 in your system Windows. Sin esto, el servidor web no podrá operar adecuadamente. 🌐

Share this:
22FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
22
SHARES
Tags: EvergreenContentTechnologyWindowsTips
Previous Publication

Microsoft Releases Hotpatching for Windows 11 Updates

next post

Unable to Upload Photos to Instagram: 10 Solutions

MasterTrend Insights

MasterTrend Insights

Our editorial team shares a deep-dive analysis, tutorials and recommendations for getting the most out of your devices and digital tools.

RelatedPublications

WiFi Calling on iPhone. Woman showing on an iPhone the WiFi Calling option enabled in settings, guide on how to enable and use WiFi Calling on iPhone step by step.
Tutorials

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
173
Advanced on-screen TV settings with brightness, contrast, sharpness, color, motion flow and HDR tone mapping configuration on a 4K UHD TV displaying a cinematic scene in high definition.
Tutorials

Advanced TV settings: what to change and what to avoid

April 7, 2026
267
iPhone call forwarding activated from settings, showing the “Call Forwarding” option enabled on the mobile phone screen.
Tutorials

iPhone call forwarding: how to activate and use it

April 27, 2026
256
Actual charging speed on your Android phone shown in a charging meter app with amperage and battery status on screen, while a woman holds the smartphone in a technology store.
Tutorials

Actual Loading Speed ​​on Your Android Phone

February 22, 2026
201
Accidental Echo Activation - Woman annoyed by the accidental activation of Alexa on an Amazon Echo speaker in a domestic living room.
Tutorials

Accidental activation of Echo on Amazon speakers

February 9, 2026
226
PNG to PDF Methods - Illustration of methods to convert PNG files to PDF, showing PNG and PDF icons with a conversion arrow between both formats.
Tutorials

PNG to PDF conversion methods: A comparison to help you choose in Windows 11

April 27, 2026
316
next post
Unable to Upload Photos to Instagram: Top 10 Ways to Fix the Problem

Unable to Upload Photos to Instagram: 10 Solutions

5 4 votes
Article Rating
Subscribe
Access
Notify of
guest
guest
0 Comments
Oldest
Newest Most voted
Online Comments
See all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4 k Followers
  • 1.8 k Subscribers
  • Trends
  • Comments
  • Last
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

🌟 How to open ‘Devices and printers’ in Windows 11: ¡Amazing trick!

June 21, 2026
Windows 11 Persistent Clock: Options for displaying a persistent clock, limitations and practical decisions, with blue background, Windows icon and minimalist analog clock.

Windows 11 Persistent Clock: Options, Limits, and Real Decisions

June 21, 2026
Ethernet not working in Windows 11: 9 easy tricks

Ethernet not working in Windows 11: 3-minute solution ⚡🌐

13 November 2025
How to save game in REPO

How to save game in REPO 🔥 Discover the secret to not losing progress

7 July 2025
Features of Gmail on Android: Save time with 5 tips

Features of Gmail in Android: you 5 tricks you did not know! 📱✨

12
Notebook motherboard repair: internal view with motherboard, cooling system, fans and key components to check in an open laptop

Notebook Motherboard Repair – Step-by-Step Diagnosis

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to backup drivers in Windows 11/10 in 4 steps!

How to backup drivers in Windows 11/10 It Prevents errors! 🚨💾

10
Privacy in Windows 11 - Woman using a laptop at home configuring privacy options in Windows 11 with O&O ShutUp10++, showing security settings and data control on screen.

Privacy in Windows 11 with O&O ShutUp10++

June 21, 2026
Optional Windows 11 Features - Woman working on a Windows 11 laptop activating optional features in system settings; guide on when to enable or disable optional Windows 11 features in a modern office environment

Optional features in Windows 11: when to turn them on or off

June 21, 2026
Saros Endings: A. Devraj in futuristic Soltari armor in a dark and dramatic scene, analysis of the main ending and secret ending of the video game.

Saros Endings: Analysis of the Main and Secret

June 14, 2026
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

May 4, 2026

Recent News

Privacy in Windows 11 - Woman using a laptop at home configuring privacy options in Windows 11 with O&O ShutUp10++, showing security settings and data control on screen.

Privacy in Windows 11 with O&O ShutUp10++

June 21, 2026
63
Optional Windows 11 Features - Woman working on a Windows 11 laptop activating optional features in system settings; guide on when to enable or disable optional Windows 11 features in a modern office environment

Optional features in Windows 11: when to turn them on or off

June 21, 2026
81
Saros Endings: A. Devraj in futuristic Soltari armor in a dark and dramatic scene, analysis of the main ending and secret ending of the video game.

Saros Endings: Analysis of the Main and Secret

June 14, 2026
104
AMD UDNA architecture for PS6 and Xbox Next, detail of next-generation GPU chip with advanced design for high-performance gaming consoles.

UDNA architecture in PS6 and Xbox Next: more than just numbers

May 4, 2026
138
MasterTrend Info logo

MasterTrend Info is your source of reference in technology: discover news, tutorials, and analysis of hardware, software, gaming, mobile, and artificial intelligence. Subscribe to our newsletter and don't miss any trend.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

Privacy in Windows 11 - Woman using a laptop at home configuring privacy options in Windows 11 with O&O ShutUp10++, showing security settings and data control on screen.

Privacy in Windows 11 with O&O ShutUp10++

June 21, 2026
Optional Windows 11 Features - Woman working on a Windows 11 laptop activating optional features in system settings; guide on when to enable or disable optional Windows 11 features in a modern office environment

Optional features in Windows 11: when to turn them on or off

June 21, 2026
  • About Us
  • Announce
  • Privacy Policy
  • Contact us

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

We've detected you might be speaking a different language. Do you want to change to:
es_ES Spanish
es_ES Spanish
en_US English
pt_BR Portuguese
fr_FR French
it_IT Italian
ru_RU Russian
de_DE German
zh_CN Chinese
ko_KR Korean
ja Japanese
th Thai
hi_IN Hindi
ar Arabic
tr_TR Turkish
pl_PL Polish
id_ID Indonesian
nl_NL Dutch
sv_SE Swedish
Change Language
Close and do not switch language
No result
See all results
  • en_USEnglish
    • es_ESSpanish
    • pt_BRPortuguese
    • fr_FRFrench
    • it_ITItalian
    • de_DEGerman
    • ko_KRKorean
    • jaJapanese
    • zh_CNChinese
    • ru_RURussian
    • pl_PLPolish
    • id_IDIndonesian
    • tr_TRTurkish
    • hi_INHindi
    • thThai
    • arArabic
    • sv_SESwedish
    • nl_NLDutch
  • Gaming
  • Hardware
  • IA
  • Mobile
  • What's new
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Copyright © 2025 https://mastertrend.info/ - All rights reserved. All trademarks are property of their respective owners.

wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance