• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • HOME
    • BLOG
    • STORE
  • Tutorials
  • Hardware
  • Gaming
  • Mobiles
  • Security
  • Windows
  • AI
  • Software
  • Networks
  • News
  • English
    • Spanish
    • Portuguese
    • French
    • Italian
    • German
    • Korean
    • Japanese
    • Chinese
    • Russian
    • Thai
    • Polish
    • Turkish
    • Indonesian
    • Hindi
    • Arabic
    • Swedish
    • Dutch
No result
See all results
  • HOME
    • BLOG
    • STORE
  • Tutorials
  • Hardware
  • Gaming
  • Mobiles
  • Security
  • Windows
  • AI
  • Software
  • Networks
  • News
  • English
    • Spanish
    • Portuguese
    • French
    • Italian
    • German
    • Korean
    • Japanese
    • Chinese
    • Russian
    • Thai
    • Polish
    • Turkish
    • Indonesian
    • Hindi
    • Arabic
    • Swedish
    • Dutch
No result
See all results
MasterTrend News
No result
See all results
Start Tutorials

How to Setup a Local Linux Web Server on Windows 11

MasterTrend Insights by MasterTrend Insights
November 5, 2025
in Tutorials
Reading time: 7-minute read
TO TO
0
How to Setup a Local Linux Web Server on Windows 11
16
SHARED
44
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 service With the built-in Windows Subsystem for Linux (WSL) 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 key HTML, PHP, or other files with a Windows editor (e.g.: Notepad++, my favorite). You can also browse your server's file system Linux 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. It is now available in the Microsoft Store for easy download. 🚀

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)

You can now 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)

You can now 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 (e.g. mysite). You can edit the files using Windows editing software and access the database by going to http://mysite/phpmyadmin. Use the following directions to get where you need to go 📍.

 

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

Share this:
22FacebookLinkedInPinterestXRedditTumblrBlueskyThreadsShareChatGPTClaudeGoogle AIGrok
22
SHARES

Related Articles:

  • DNS servers for gaming
    DNS Servers for Gaming: Reduce Lag and Win Fast! 🎮⚡
    Gaming DNS servers that speed up your connection and reduce lag 🎮🌐 Discover how to improve your online experience…
  • How to Install Linux in 3 Easy Steps (Without Erasing Windows)
    How to Install and Try Linux Risk-Free! Get started today! 🔥🐧
    How to Install Linux Easily and Securely: Try It Without Erasing Windows! Make the switch today! 💻🐧⚡
  • Wine vs. Virtual Machines: Which is the Best?
    Wine vs. Virtual Machines: Find Out Who Wins! 🏆💻
    Wine vs. Virtual Machines: Learn which offers better performance and compatibility for your Windows apps today! 🚀✨
  • Run a Steam Game as Administrator - Guide to running a Steam game as administrator on Windows, with the Steam logo on a metallic background and the text "Run Games As Admin."
    Running a Steam Game as Administrator: Avoid…
    Running a Steam game as an administrator guarantees better performance and prevents crashes. Find out now! 🎮💻
  • How to open CMD as administrator in Windows 11 (10 methods)
    How to open CMD as administrator in Windows 11
    How to open Command Prompt (CMD) as Administrator in Windows 11
  • Amazing games for integrated video
    30 amazing games for Intel integrated video
    Amazing games for Intel integrated video. Learn more now!
Tags: Evergreen ContentTechnologyWindowsTips
Previous Post

Microsoft Releases Hotpatching for Windows 11 Updates

Next publication

Unable to Upload Photos to Instagram: 10 Solutions

MasterTrend Insights

MasterTrend Insights

Our editorial team shares in-depth reviews, tutorials, and recommendations to help you get the most out of your digital devices and tools.

Next publication
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
View all comments

Stay Connected

  • 976 Fans
  • 118 Followers
  • 1.4k Followers
  • 1.8k Subscribers

Don't miss the latest in technology and gaming.
Exclusive tips, how-to guides, and analysis every day.

Subscription Form
  • Tendencies
  • Comments
  • Last
How to add a clock to the Windows 11 desktop: 3 surefire tricks!

How to add a clock to your Windows 11 desktop: Get more done in minutes! ⏱️

May 1, 2025
How to save game in REPO

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

July 7, 2025
12 Best Alternatives to Lucky Patcher for Android

Lucky Patcher Alternatives: 12 Better and Easy Apps! 🎮⚡

May 12, 2025
🖥️ How to open 'Devices and Printers' in Windows 11: 4 easy steps

🌟 How to Open 'Devices and Printers' in Windows 11: Amazing Trick!

February 27, 2025
Gmail Features on Android: Save Time with 5 Tips

Gmail Features on Android: 5 Tricks You Didn't Know About! 📱✨

12
Motherboard repair - Repair Motherboards

Notebook Motherboard Repair

10
Install Windows 11 Home without Internet

Install Windows 11 Home without Internet

10
How to Back Up Drivers in Windows 11/10 in 4 Steps!

How to Back Up Drivers in Windows 11/10: Avoid Errors! 🚨💾

10
Weapons from Doom The Dark Ages: The Doom Slayer aims twin cannons from a siege machine in a dark, cavernous environment.

Doom The Dark Ages Weapons: 23 Weapons Revealed ⚔️🔥

November 7, 2025
Slow smartphone - Woman showing her smartphone with 100% screen and upward arrow, illustrating 5 easy tricks to speed up and optimize a slow mobile.

Slow smartphone: turn off these 3 options and it'll fly 🚀

November 7, 2025
Steam on Chromebook Plus: Gamer with controller against three Chromebooks running PC games, proving you can play like on a laptop.

Steam on Chromebook Plus: Play like a laptop! 🎮⚡

November 7, 2025
Upgrading weapons and shields - Doom The Dark Ages: Capture the Sentinel Sanctuary and where to spend currency to upgrade weapons and shields; upgrade guide and secret tricks.

Upgrade weapons and shields 🛡️ Secret tricks in Doom The Dark Ages 😱

November 7, 2025

Recent News

Weapons from Doom The Dark Ages: The Doom Slayer aims twin cannons from a siege machine in a dark, cavernous environment.

Doom The Dark Ages Weapons: 23 Weapons Revealed ⚔️🔥

November 7, 2025
2
Slow smartphone - Woman showing her smartphone with 100% screen and upward arrow, illustrating 5 easy tricks to speed up and optimize a slow mobile.

Slow smartphone: turn off these 3 options and it'll fly 🚀

November 7, 2025
2
Steam on Chromebook Plus: Gamer with controller against three Chromebooks running PC games, proving you can play like on a laptop.

Steam on Chromebook Plus: Play like a laptop! 🎮⚡

November 7, 2025
18
Upgrading weapons and shields - Doom The Dark Ages: Capture the Sentinel Sanctuary and where to spend currency to upgrade weapons and shields; upgrade guide and secret tricks.

Upgrade weapons and shields 🛡️ Secret tricks in Doom The Dark Ages 😱

November 7, 2025
18
MasterTrend News logo

MasterTrend Info is your go-to source for technology: discover news, tutorials, and analysis on hardware, software, gaming, mobile devices, and artificial intelligence. Subscribe to our newsletter and don't miss any trends.

Follow us

Browse by Category

  • Gaming
  • Hardware
  • AI
  • Mobiles
  • News
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

Recent News

Weapons from Doom The Dark Ages: The Doom Slayer aims twin cannons from a siege machine in a dark, cavernous environment.

Doom The Dark Ages Weapons: 23 Weapons Revealed ⚔️🔥

November 7, 2025
Slow smartphone - Woman showing her smartphone with 100% screen and upward arrow, illustrating 5 easy tricks to speed up and optimize a slow mobile.

Slow smartphone: turn off these 3 options and it'll fly 🚀

November 7, 2025
  • 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:
Change language to Spanish Spanish
Change language to Spanish Spanish
English
Change language to Portuguese Portuguese
Change language to French French
Change language to Italian Italian
Change language to Russian Russian
Change language to German German
Change language to Chinese Chinese
Change language to Korean Korean
Change language to Japanese Japanese
Change language to Thai Thai
Change language to Hindi Hindi
Change language to Arabic Arabic
Change language to Turkish Turkish
Change language to Polish Polish
Change language to Indonesian Indonesian
Change language to Dutch Dutch
Change language to Swedish Swedish
Change Language
Close and do not switch language
No result
See all results
  • English
    • Spanish
    • Portuguese
    • French
    • Italian
    • German
    • Korean
    • Japanese
    • Chinese
    • Russian
    • Polish
    • Indonesian
    • Turkish
    • Hindi
    • Thai
    • Arabic
    • Swedish
    • Dutch
  • Gaming
  • Hardware
  • AI
  • Mobiles
  • News
  • Networks
  • Security
  • Software
  • Tutorials
  • Windows

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

Comment Author Info
:wpds_smile::wpds_grin::wpds_wink::wpds_mrgreen::wpds_neutral::wpds_twisted::wpds_arrow::wpds_shock::wpds_unamused::wpds_cool::wpds_evil::wpds_oops::wpds_razz::wpds_roll::wpds_cry::wpds_eek::wpds_lol::wpds_mad::wpds_sad::wpds_exclamation::wpds_question::wpds_idea::wpds_hmm::wpds_beg::wpds_whew::wpds_chuckle::wpds_silly::wpds_envy::wpds_shutmouth:
wpDiscuz
RedditBlueskyXMastodonHacker News
Share this:
MastodonVKWhatsAppTelegramSMSLineMessengerFlipboardHacker NewsMixNextdoorPerplexityXingYummly
Your Mastodon Instance