惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
SegmentFault 最新的问题
博客园 - 聂微东
罗磊的独立博客
W
WeLiveSecurity
博客园_首页
Scott Helme
Scott Helme
V
Visual Studio Blog
T
The Exploit Database - CXSecurity.com
G
Google Developers Blog
大猫的无限游戏
大猫的无限游戏
Latest news
Latest news
L
Lohrmann on Cybersecurity
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
A
About on SuperTechFans
F
Full Disclosure
Y
Y Combinator Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
博客园 - 司徒正美
博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
阮一峰的网络日志
阮一峰的网络日志
S
Schneier on Security
雷峰网
雷峰网
博客园 - 【当耐特】
P
Privacy International News Feed
C
Cyber Attacks, Cyber Crime and Cyber Security
Engineering at Meta
Engineering at Meta
aimingoo的专栏
aimingoo的专栏
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
T
Tor Project blog
V
V2EX
爱范儿
爱范儿
C
Check Point Blog
T
Threatpost
Project Zero
Project Zero
量子位
V
Vulnerabilities – Threatpost
Know Your Adversary
Know Your Adversary
I
Intezer
G
GRAHAM CLULEY
P
Privacy & Cybersecurity Law Blog
GbyAI
GbyAI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

The Register - Software: Virtualization

NodeWeaver says its perpetual licensing beats VMware’s perpetual price hikes NodeWeaver: Perpetual licensing beats VMware nickel-and-dime Microsoft cuts cloudy desktop prices by 20 percent Nutanix to add KubeVirt support to run VM on K8s at the edge Western Union zaps VMware and moves to Nutanix Nutanix thinks some Azure cloud desktops belong on-prem Nutanix thinks some Azure cloud desktops belong on-prem Nutanix brings its K8s to bare metal Half of VMware users plan to reduce usage by 2028 Xen Project announces five years of support for all releases Xen Project announces five years of support for all releases Broadcom says AI companies can’t make their own silicon One vendor doesn't mind high RAM prices: VMware NUC, NUC! Who’s there? ASUS with a thin client for cloud PCs Why flexibility will define the future of functionality AWS adds nested virtualization option for handful for EC2 Cisco set to release hypervisor as VMware alternative Cisco set to release hypervisor as VMware alternative Contain your Windows apps inside Linux Windows VMware scores early win in Siemens software licensing case Broadcom 'bulldozes' VMware CSPs with March deadline Java devs want container security - not the hassle Microsoft to face questions over From SA program Dell wants £10m+ from VMware if Tesco case goes against it Lenovo has a hunch you’re about to try quitting VMware China crew abused ESXi zero-days a year before disclosure China crew abused ESXi zero-days a year before disclosure AWS adds hybrid cloud storage support for Nutanix Nutanix pushes sovereign cloud in another swipe at VMware Nutanix pushes sovereign cloud in another swipe at VMware VMware kills vSphere Foundation in parts of EMEA European cloud trade group says EU should have blocked VMware-Broadcom merger Researchers spot 700 percent increase in hypervisor attacks Researchers spot 700 percent increase in hypervisor attacks Proxmox delivers its software-defined datacenter contender Proxmox delivers its software-defined datacenter contender HPE positions Morpheus stack as alternative to VMware VMware re-states claim Siemens used unlicensed software VMware re-states claim Siemens used unlicensed software 70-hour work weeks no longer enough for Infosys founder Veeam bets on more VMware alternatives Veeam bets on more VMware alternatives Ford straps in as Xen Project drives toward automotive use Microsoft reveals new cloudy AI PC that’s not a Copilot+ PC VMware admits it over-specced storage servers for years Server virtualization market heats up to win VMware refugees Kubernetes overlords retire Ingress NGINX Broadcom creates a new Seal Of Approval for AI servers Broadcom creates a new Seal Of Approval for AI servers Rideshare giant dumps 200 cloudy Macs, saves $2.4 million IBM Cloud stops seeking new customers for its VMware service In Tesco vs. VMware, Computacenter warns, Dell, Broadcom VMware bungles cloud management portal upgrade, twice VMware bungles cloud management portal upgrade, twice Microsoft starts streaming cloudy apps instead of desktops Open source Cloud Hypervisor adds (futile) no-AI-code policy Proxmox delivers datacenter manager beta VMware to lose 35 percent of workloads in three years – some to its friends at ‘proper clouds’ VMware to lose 35 percent of workloads in three years Citrix products sold under old licenses to get glitchy Rethinking application delivery for the hybrid world VMware's in court again. Tesco latest in line Broadcom admits it’s sold a lot of VMware shelfware Supermarket giant Tesco sues VMware for breach of contract DOGE delayed deals, says Nutanix VirtualBox 7.2 fixes 3D guests, adds Arm-on-Arm support Cloudy PCs now often have lower TCO than laptops Platform9 pushes swing capacity workaround for VMware shifts Virtualization vet pushes out Proxmox VE 9, Backup Server 4 Oracle VirtualBox licensing tweak lies in wait for unwary EU cloud players want Europe to annul Broadcom’s VMWare buy VMware portal prevents some users from downloading patches VMware slows release cadence for flagship VCF suite Telefónica DE shifts VMware support to Spinnaker due to cost Citrix returns to hypervisor market without updating wares VMware’s rivals ramp efforts to create alternative stacks
How to host a Linux-powered local dev site in Windows
Avram Piltch Avram Piltch · 2025-07-24 · via The Register - Software: Virtualization

Virtualization

A working copy of your site can run under Windows Subsystem for Linux

HANDS ON If you're building a website that will eventually be hosted on a Linux server (as so many are), you have a couple of choices about where you do your development work. You can create a beta version of the site at your web host and upload all of the files there or you can create a local test server that sits in your home or office.

The test server could be a separate Linux machine such as a Raspberry Pi or it could be your main PC if you run Linux as your desktop OS. If you're doing your coding in Windows, you could run a local Windows web server, but that's not the best simulation of your production environment.

Instead, I recommend using Windows Subsystem for Linux to run a local Linux web server within Microsoft's OS. That way you can write your code in Windows while running it on the same platform it's destined for, no second computer or remote server required. Here's how.

Start by installing Windows Subsystem for Linux 2 (WSL 2). Launch PowerShell (any version) and enter the following:

wsl --install --no-distribution

Next, we'll install AlmaLinux 9 to use as our Linux distribution. By default, if you don't install WSL with the --no-distribution option, it will install Ubuntu, but most web hosting platforms use CentOS or AlmaLinux (which is similar to CentOS) so we're going with that. Find AlmaLinux 9 in the Microsoft Store and click install.

Launch the AlmaLinux environment by finding its shortcut icon in Windows Search. Note that the first time you open it, AlmaLinux will ask you to set a username and password.

AlmaLinux OS 9 in Microsoft Store

AlmaLinux OS 9 in Microsoft Store

Since you just installed a new Linux instance, it's time to run an update to get everything up to the latest specs. You do that by entering the following in AlmaLinux:

Next, you'll need to set a password for the root user. Make sure you keep it handy.

Set username for AlmaLinux

Set username for AlmaLinux

After that, it's time to install a control panel app for the web server. Many hosting services use cPanel, but that comes with a licensing fee, so we're going to use Virtualmin and its companion Webmin (Virtualmin controls the server while Webmin controls each account), which is a free alternative. If you already own cPanel or another app, use that. To install Virtualmin / Webmin, enter:

If, during the process, you are asked for a fully-qualified domain name, you can enter something like host.example.com just to move the process along. We'll be using the IP address to get to Virtualmin, Webmin, and our local site.

When the installation is complete, the script will give you an IP address with :10000 at the end. Copy that and paste it into a browser.

The browser will give you a "Your connection is not private" error. Proceed anyway.

Enter root as the username and the password you assigned to root into the Webmin dialog box. Then sign in.

Click Next to continue with the Post-Installation Wizard.

sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)" -- --bundle LAMP

Continue to click Next and accept the default settings until you get to the MariaDB password page. Here you might want to change the password to something more memorable. Or, at least, copy the password down.

Check "Skip check for resolvability" on the nameserver page. This will ensure that, even if you use a bogus domain name like host.example.com, you can still get into Webmin using the IP address.

Enter fully-qualified domain name for Virtualmin

Enter fully-qualified domain name for Virtualmin

Click Add new virtual server.

Give your new virtual server an admin password and a domain name that doesn't have any top-level domain (no .com, .edu, etc). I used the domain name "mysite" for this purpose. Then click Create Server.

installing Virtualmin

Installing Virtualmin

Now, it's time to install some applications you may need for your website. Navigate to Virtualmin->Manage Web Apps for a list of available apps. I recommend installing phpMyAdmin for database management and WordPress (if you are running a WordPress site).

You should now be able to view the home page of your site by navigating to http://YOUR_IP_ADDRESS (in my case this was http://172.26.88.73) and manage the database by going to http://YOUR_IP_ADDRESS/phpmyadmin.

Your connection is not private error

"Your connection is not private" error

At this point, you may want to make it easier to access the local site by giving it a plain-language name you can use in lieu of its IP. Do this by editing the C:\Windows\System32\drivers\etc\hosts file and including the name you want (ex: mysite) and the IP address.

Remember that you'll have to add the http in front of the name (ex: http://mysite) to view the local site in your browser.

Webmin login screen

Webmin login screen

Next, you'll want to locate and set permissions for the public_html directory, which represents the root of your website. Virtualmin creates a user with the domain name of the site you entered when you created a virtual server and, in our case, that's mysite. So the relevant folder is located at /home/mysite/public_html.

Grant yourself permissions to this folder by entering the following at the Linux command line:

Webmin Post-installation wizard

Webmin Post-installation wizard

Now, you should be able to access the site's files in File Explorer by navigating to Linux->AlmaLinux-9->home->mysite->public_html

With the correct permissions in place, you can do the development work for your site and then view what it looks like by going to http://YOUR_IP_ADDRESS or http://mysite. Just make sure to keep an AlmaLinux WSL terminal window open or the webserver won't run. ®

Set MariaDB password

Set MariaDB password

Skip check for resolvability

Skip check for resolvability

click add new virtual server

click add new virtual server

give your site a name and click Create Server

give your site a name and click Create Server

Navigate to Manage Web Apps in Virtualmin

Navigate to Manage Web Apps in Virtualmin

add your site name to the hosts file

add your site name to the hosts file

sudo chmod -R 777 /home/mysite
File explorer open to public_html folder

File Explorer open to public_html folder