• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend Info - Technology, News and Tutorials
  • HOME
    • BLOG
  • Tutorials
  • Hardware
  • Gaming
  • Smartphones
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • 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
  • Smartphones
  • Security
  • Windows
  • IA
  • Software
  • Networks
  • 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 (Problem Solving)

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

MasterTrend Insights by MasterTrend Insights
April 28, 2026
in Tutorials (Problem Solving)
Reading time:7 min read
0
How to set up a local Linux web server on Windows 11
72
SHARED
200
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. Install WSL

2.🌟 Install AlmaLinux OS 9 for WSL. It is now available in the Microsoft Store for you to download easily. 🚀

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. Log in as root

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

7. Navigate through the Post-Installation Wizard(Image credit: Future)

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

I recommend changing the MariaDB password(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. Click on Add new virtual server. 🌐

8. Click on Add new virtual server(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. Give your site a domain name(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. Install Phpmyadmin and/or WordPress by navigating to Virtualmin(Image credit: Future)

Now you can manage your databases by accessing http://IPaddresss/phpmyadmin in your browser (for example: http://172.18.231.63/phpmyadmin in my case). 🌐

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)

Now you can work on your site and test it on your local PC 🖥️. You can navigate to it in your browser either by going to the IP address or the domain name you chose (for example: mysite). You can edit files using Windows editing software and access the database by going to http://mysite/phpmyadmin. Use the following addresses to get where you need 📍.

 

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. Without this, the web server will not be able to operate properly. 🌐

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

Android Volume - Two students consult an Android phone application to adjust the volume according to a schedule in the hallway of a law school.
Tutorials (Problem Solving)

Android volume according to a schedule

July 30, 2026
0
Read messages on iPhone - Woman reading messages on an iPhone next to the text “Read Receipts on iPhone”, guide to managing read receipts in current iOS.
Tutorials (Problem Solving)

Read messages on iPhone: a guide for current iOS

July 26, 2026
110
Saving Reel drafts - Woman editing a Reel draft on her mobile phone and saving it to the phone's gallery.
Tutorials (Problem Solving)

Save Reels drafts to the gallery

July 22, 2026
126
Moon photos with iPhone - Woman photographing the full moon with an iPhone on a beach at sunset, applying tricks to capture its details.
Tutorials (Problem Solving)

Taking lunar photos with an iPhone: tricks to capture details

July 22, 2026
105
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 (Problem Solving)

WiFi Calling on iPhone: how to enable and use it

April 26, 2026
220
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 (Problem Solving)

Advanced TV settings: what to change and what to avoid

April 7, 2026
317
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
Android Volume - Two students consult an Android phone application to adjust the volume according to a schedule in the hallway of a law school.

Android volume according to a schedule

July 30, 2026
Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 2026
Webcam privacy - Woman in front of a Windows 11 computer with webcam, configuring privacy to prevent applications from using the camera.

Webcam privacy in Windows 11

July 28, 2026
Audio balance in Windows 11 - Woman adjusting the audio balance on a Windows 11 laptop, quick guide to setting up sound.

Audio balancing in Windows 11: quick guide

July 27, 2026

Recent News

Android Volume - Two students consult an Android phone application to adjust the volume according to a schedule in the hallway of a law school.

Android volume according to a schedule

July 30, 2026
0
Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 2026
83
Webcam privacy - Woman in front of a Windows 11 computer with webcam, configuring privacy to prevent applications from using the camera.

Webcam privacy in Windows 11

July 28, 2026
102
Audio balance in Windows 11 - Woman adjusting the audio balance on a Windows 11 laptop, quick guide to setting up sound.

Audio balancing in Windows 11: quick guide

July 27, 2026
102
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 & Real-World Experience
  • Hardware & Performance
  • AI Applied & Real-World Use
  • What's new
  • Networks, Wi-Fi & Internet
  • Digital Security & Privacy
  • Smartphones & Purchase Decision
  • Software & Useful Tools
  • Tutorials (Problem Solving)
  • Windows (Real-World Use and Solutions)

Recent News

Android Volume - Two students consult an Android phone application to adjust the volume according to a schedule in the hallway of a law school.

Android volume according to a schedule

July 30, 2026
Blocking Windows sites - Laptop with Windows 11 showing the Windows Defender Firewall and a rule to block websites, next to a browser with access denied.

Blocking sites on Windows: a guide for Windows 11

July 29, 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 & Real-World Experience
  • Hardware & Performance
  • AI Applied & Real-World Use
  • Smartphones & Purchase Decision
  • What's new
  • Networks, Wi-Fi & Internet
  • Digital Security & Privacy
  • Software & Useful Tools
  • Tutorials (Problem Solving)
  • Windows (Real-World Use and Solutions)

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