• About Us
  • Announce
  • Privacy Policy
  • Contact us
MasterTrend News
  • 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 News
No result
See all results
Start Tutorials

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

MasterTrend Insights by MasterTrend Insights
November 5, 2025
in Tutorials
Reading time:7 min read
To To
0
How to set up a local Linux web server on Windows 11
18
SHARED
49
Views
Share on FacebookShare on Twitter

Contents

  1. How to run a local Linux web server in a Windows 11 window
    1. Related Posts

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 Posts

  • WP File download search
  • The Secrets of xAI Colossus: 100,000 GPUs
  • How often should you turn off your phone?
  • Intel SSD PCIe 5
  • How to disable Auto Lock on Samsung
  • AMD Radeon RX 6500 XT news
  • Gaming performance – how to measure it?
  • Hard Drive Replacement – Replace HDD with SSD Notebook
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

How to pair AirPods with a Chromebook: Person opens the AirPods case and connects them via Bluetooth to an HP laptop.
Tutorials

How to pair AirPods with Chromebook: Connect them in minutes! ⏱️🔌

November 20, 2025
74
RESULT_CODE_HUNG - Person using laptop with Chrome error "Aw, Snap!" (RESULT_CODE_HUNG), showing a 1-click solution that fixes Google Chrome and prevents it from freezing.
Tutorials

RESULT_CODE_HUNG: One-click solution that fixes Chrome 🚀

November 19, 2025
89
Rename PC in Windows 11: Settings screen showing "Change Computer Name", guide with 3 quick methods: CMD, PowerShell and Settings.
Tutorials

Rename your PC: done in 10 seconds, goodbye weird names 🔥

November 19, 2025
207
GIMP Stable Boy - User at a desk working in GIMP; screen shows GIMP Stable Boy plugin tutorial in Spanish for free generative fill-an open‑source Adobe alternative.
Tutorials

GIMP Stable Boy: Avoid Adobe and create magic for free 💥🚀

November 18, 2025
96
Disable autocorrect on iPhone: WhatsApp screen with keyboard open, steps to remove keyboard autocorrect on iOS.
Tutorials

Turn off autocorrect NOW: write freely in 1 min ⏱️🔥

November 6, 2025
79
Steam Damaged Update Files - How to fix the Steam error "damaged/corrupted update files"; Steam logo on dark background, step-by-step guide and solution.
Tutorials

Steam Corrupted Update Files: Fix in 2 min ⏳

November 6, 2025
93
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

Do not miss the latest in technology and gaming.
Tips unique, practical guides and analysis every day.

Subscription Form
  • Trends
  • Comments
  • Last
How to add clock on the Windows desktop 11: ¡3 tricks infallible!

How to add clock on the Windows desktop 11: Get more in minutes! ⏱️

1 May 2025
How to save game in REPO

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

7 July 2025
12 Best Alternatives to Lucky this program for Android

Alternatives to Lucky this program: the 12 apps best and easy! 🎮⚡

13 November 2025
🖥️ How to open 'Devices and printers' in Windows 11: 4 simple steps

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

November 20, 2025
Features of Gmail on Android: Save time with 5 tips

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

12
Repair of motherboards - Repair MotherBoards

Repair of motherboards of Laptops

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
Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 2025
Background App Refresh. A young woman in a classroom is showing on her iPhone the "Background App Refresh" option enabled in the app settings.

Background Update Activate it well and speed up your iPhone 🚀

November 23, 2025
Restart Windows Explorer - Woman restarting Windows Explorer from Task Manager in Windows to fix system errors in seconds.

Restart Windows Explorer: A Quick Trick That Saves Your PC ⚡

November 21, 2025

Recent News

Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
61
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 2025
61
Background App Refresh. A young woman in a classroom is showing on her iPhone the "Background App Refresh" option enabled in the app settings.

Background Update Activate it well and speed up your iPhone 🚀

November 23, 2025
79
Restart Windows Explorer - Woman restarting Windows Explorer from Task Manager in Windows to fix system errors in seconds.

Restart Windows Explorer: A Quick Trick That Saves Your PC ⚡

November 21, 2025
137
MasterTrend News 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
Add-as-a-preferred-source-on-Google

Recent News

Protect ZIP - Woman using a laptop to password-protect a compressed file, an example of how to protect a ZIP file with fast encryption and data security methods.

Protect ZIP files. The easiest way to secure your data today ⚡

November 26, 2025
Wolf Statues - Set of pink wolf statues glowing on pedestals in a ruined and vegetated area of ​​Doom, showing the location of all wolf statues in Doom The Ancient Gods.

Wolf Statues: A quick trick for 100% completion that few use ⚡🐺 in Doom: The Dark Ages

November 25, 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:
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