Aller au contenu principal
Jetpack

Produits individuels

Sécurité
VaultPress Backup Scan Akismet Anti-spam
Performances
Recherche sur le site Boost VideoPress
Croissance
Stats Social Newsletter SEO Blaze CRM
Gestion
Manage Application mobile

Packs de produits

Pro Des outils de sécurité, de performance et de croissance pour votre site WordPress. Complet La suite Jetpack complète, avec des limites de service plus élevées.
Tarifs
Vue d’ensemble Ce que Jetpack AI fait pour votre site Skills Des super-pouvoirs WordPress pour votre agent Documentation Connecter et configurer votre agent IA Bien démarrer Connecter ChatGPT, Claude ou un agent de code Comparer Jetpack face aux autres connecteurs MCP pour WordPress

Connectez votre agent. C’est gratuit.

Connectez ChatGPT ou Claude et laissez-le gérer votre site, sans offre payante.

L’obtenir pour ChatGPT (s’ouvre dans un nouvel onglet) Ou utilisez Claude (s’ouvre dans un nouvel onglet)
Assistance Guides et aide de notre équipe Documentation Des tutoriels pour chaque fonctionnalité de Jetpack Demandes de fonctionnalités Request features and vote on ideas Blog Actualités, nouveautés produit et tutoriels
À propos
Se connecter Commencer
Sécurité
VaultPress Backup Scan Akismet Anti-spam
Performances
Recherche sur le site Boost VideoPress
Croissance
Stats Social Newsletter SEO Blaze CRM
Gestion
Manage Application mobile

Packs de produits

Pro Complet
Tarifs
Vue d’ensemble Ce que Jetpack AI fait pour votre site Skills Des super-pouvoirs WordPress pour votre agent Documentation Connecter et configurer votre agent IA Bien démarrer Connecter ChatGPT, Claude ou un agent de code Comparer Jetpack face aux autres connecteurs MCP pour WordPress

Connectez votre agent. C’est gratuit.

Connectez ChatGPT ou Claude et laissez-le gérer votre site, sans offre payante.

L’obtenir pour ChatGPT (s’ouvre dans un nouvel onglet) Ou utilisez Claude (s’ouvre dans un nouvel onglet)
Assistance Guides et aide de notre équipe Documentation Des tutoriels pour chaque fonctionnalité de Jetpack Demandes de fonctionnalités Request features and vote on ideas Blog Actualités, nouveautés produit et tutoriels
À propos Rechercher
Se connecter Commencer

Blog / Developers

How to Run Multiple WordPress Sites on Localhost

Avatar de Jen Swisher

Jen Swisher juillet 11, 2025 · 8 min de lecture


Sur cette page

  1. What is localhost?
  2. Why run multiple WordPress sites locally?
  3. Why use WordPress Studio instead of traditional stacks?
  4. How to install WordPress Studio on your machine
  5. Creating your first local WordPress site
  6. Creating multiple WordPress sites
  7. Customizing each local site
  8. Using WP-CLI and terminal tools
  9. Managing and organizing multiple local sites
  10. Advanced features and tips
  11. Build better, faster, and safer with WordPress Studio

8 min de lecture

Running multiple WordPress sites on localhost helps you test themes, plugins, and configurations without affecting live environments. Whether you’re developing, designing, or troubleshooting, local sites offer a fast, safe, and flexible workspace.

This guide shows you how to locally manage multiple WordPress sites using WordPress Studio, a free local development tool that runs sites directly on your machine. WordPress Studio includes containerized environments, quick site creation, built-in developer tools, and a clean interface.

You’ll learn how to install WordPress Studio, manage multiple sites, configure each one based on your project needs, and stay organized as you work. Let’s get to it. 

What is localhost?

Before you get started, there are a few basics about how local development works.

Localhost refers to your computer acting as a server, letting you run websites in a private environment without deploying them to the internet. This setup is often used for development, testing, or learning WordPress.

To install and run WordPress locally, you typically need a server stack that includes:

  • A web server like Apache or Nginx
  • A database server like MySQL or MariaDB
  • A scripting engine like PHP to process server-side code

Some local development tools, including WordPress Studio, bundle these components automatically so you don’t have to configure them yourself.

Why run multiple WordPress sites locally?

Running multiple local sites supports a wide range of development and testing workflows. 

Common use cases include:

  • Testing different themes or plugins without affecting live sites
  • Working on separate client projects in isolated environments
  • Simulating site networks by running multiple separate WordPress installs
  • Preparing and troubleshooting local versions of a site before pushing updates online

Why use WordPress Studio instead of traditional stacks?

WordPress Studio homepage

WordPress Studio uses a container-based system to separate site environments and minimize manual setup. Compared to traditional stacks like XAMPP or MAMP, WordPress Studio streamlines the process by:

  • Installing and configuring PHP, MySQL, and Apache automatically
  • Creating local domains without the need to edit virtual hosts or modify the hosts file
  • Reducing the risk of port conflicts or permission issues
  • Including a built-in code editor, WP-CLI access, and debugging tools

WordPress Studio supports modern development workflows and simplifies the process of running multiple local WordPress sites at once.

How to install WordPress Studio on your machine

Before you create your first local site, you need to install WordPress Studio.

Step 1: Download and install WordPress Studio

To get started, visit the official website and download the installer for your platform (macOS or Windows). 

Follow the on-screen instructions to install the software.

installing Sudio on your computer

Then, launch WordPress Studio after installation completes. WordPress Studio installs a containerized runtime behind the scenes, so you don’t need Docker or any other dependency.

Step 2: Grant necessary permissions

The first time WordPress Studio runs, it may request permissions to install background services and manage the local network. Grant these permissions to ensure everything runs correctly.

Once installed, WordPress Studio is ready to create and manage multiple WordPress instances.

Creating your first local WordPress site

WordPress Studio makes this process fast, with just a few inputs.

Step 1: Create a new site

To get started, open WordPress Studio, then input a name under Site Name and click Add site. 

creating a new website in Studio

WordPress Studio automatically creates a new isolated container with WordPress installed. Each site gets its own environment with a dedicated database, a containerized PHP and NGINX stack, and a unique local domain like « site1.studio.local ».

Step 2: Access the local site

Once the environment is created, click Open site to open it in your browser or WP Admin to log into the WordPress dashboard. 

using WP Admin to log into a Studio site

WordPress Studio logs you in automatically, so there’s no need to enter credentials.

WordPress Studio will handle certificate generation and installation. On macOS, you may need to manually trust the certificate to avoid browser warnings, however.

Creating multiple WordPress sites

You can repeat the site creation process as many times as needed. While still viewing your new site’s information within WordPress Studio, click the Add site button on the bottom-left side of the panel. 

Here, you can enter a new site name, then click Add site and WordPress Studio will handle the configuration and provisioning automatically. Each site runs in an isolated container. This means you won’t encounter conflicts between PHP versions or plugins or deal with shared databases. Plus, you’ll benefit from separate file systems.

naming a new website in Studio

You can run all sites at the same time without changing ports or editing any config files, too.

Switching between sites

The WordPress Studio dashboard displays all your local WordPress sites, whether they’re active or inactive. 

From this interface, you can:

  • Start or stop a site environment
  • Open the site in your default browser
  • Access the site’s files in your code editor
  • Go to your site’s WordPress dashboard

WordPress Studio provides full control over each local environment, which means you don’t have to jump between tools to access and work on your sites.

Customizing each local site

WordPress Studio offers per-site customization options, providing flexibility for various development needs.

1. Set PHP and WordPress versions

During or after site creation, you can select the PHP version you want to use. Choose from versions 7.4 through 8.4. You can also specify which WordPress version to install. Select from versions 5.9 and up, including the latest beta releases.

This helps when testing compatibility or replicating production environments. Access these options in the Advanced Settings section during site creation or adjust them later in the site’s Settings tab.

website login information in Studio

2. Use your preferred code editor

WordPress Studio allows you to work with your preferred code editor. Open the site directory directly in editors like Visual Studio Code, Sublime Text, or PHPStorm.

3. Install themes and plugins

Each site you create functions like a regular WordPress installation, which means you can install themes and plugins however you prefer. You can upload a .zip file directly through the WordPress dashboard, search and install options from the official WordPress repository, or use WP-CLI from the WordPress Studio terminal if you want to work from the command line. 

You have full access to the site’s files and settings, so you’re free to experiment, build, and customize as needed.

Using WP-CLI and terminal tools

WordPress Studio includes WP-CLI out of the box so you can manage your WordPress sites directly from the command line. 

To access the terminal for a specific site, click the terminal icon in the WordPress Studio dashboard. This opens a shell session within the site’s container, allowing you to execute WP-CLI commands like:

wp plugin install debug-bar --activate

wp theme install twentytwentyfive --activate

wp db export backup.sql

These commands facilitate advanced operations, scripting, and testing within your local development environment.

Access logs and error output

WordPress Studio provides access to logs for PHP, NGINX, and database processes, which are essential for debugging and monitoring. To view these logs on macOS, open Terminal, then run this code: 

open ~/Library/Logs/Studio

Or, if on a Windows machine, open Command Prompt and run this code:

start %APPDATA%\Studio\logs

These logs assist in identifying problems like plugin or theme errors, deprecated warnings, and performance issues.

Managing and organizing multiple local sites

Effectively managing multiple local WordPress sites in WordPress Studio enhances your development workflow. Here’s how to keep your environments organized and efficient:

1. Use a naming convention

Assign clear and descriptive names to your local sites to easily identify their purpose. For example:

  • clientA-landing.studio.local
  • Plugin-dev-v1.studio.local
  • multisite-test.studio.local

This helps when managing several environments for different use cases. Using the .wp.local top-level domain (TLD) is recommended for WordPress Studio sites.

2. Group related sites using folders

Although WordPress Studio isolates each site, you can organize related site folders manually on your machine. Create a WordPress Studio Projects folder and store each one under a client or project folder. 

This structure keeps related sites grouped together so navigation and management are more straightforward.

3. Back up your environments regularly

WordPress Studio allows you to export your entire site into a .tar.gz file, which includes the database, wp-content folder, and WordPress configuration. 

To export a site:

  • Select the site from the WordPress Studio site view.
  • Go to the Import / Export tab.
  • Click Export entire site to generate the .tar.gz file.
  • Choose the destination and click Save.
importing a Jetpack backup

You can use this backup for version control, sharing with team members, or restoring the site, if needed. You can also import a backup from Jetpack VaultPress Backup, making it more straightforward to bring a live site into your local WordPress Studio environment.

Jetpack VaultPress Backup page with the text "the best real-time WordPress backup plugin"

4. Use Git for version control

If you’re developing themes or plugins, version control helps you track changes, collaborate with others, and keep your codebase clean. 

You can initialize a Git repository inside the wp-content directory, exclude system files with a .gitignore file, and push your work to a remote platform like GitHub. WordPress Studio gives you full access to your site’s file structure, so you can use any Git workflow that fits your project.

Advanced features and tips

Once you’re comfortable working with local sites in WordPress Studio, take advantage of advanced features to customize, extend, and speed up development workflows.

1. Set up multisite

WordPress Studio allows you to enable WordPress Multisite functionality within any local environment. To activate this feature, add the following line to your wp-config.php file, just above the comment that says: « /* That’s all, stop editing! Happy blogging. */ »:

define('WP_ALLOW_MULTISITE', true); 

After saving the file, go to Tools → Network Setup in your WordPress dashboard to configure your multisite network. WordPress Studio fully supports subdomain and subdirectory multisite configurations.

2. Sync with remote environments

WordPress Studio is built for local development, but it works well alongside remote staging or production servers. You can transfer files and data between environments using SFTP, the WordPress dashboard, or WP-CLI. 

For example, you can manually export a database, move theme or plugin files, and update site URLs using the wp search-replace command. This gives you flexibility when working across local and hosted sites.

3. Customize environment settings

WordPress Studio doesn’t include a built-in interface for advanced environment settings, but you can still customize your setup by editing configuration files manually. 

You can enable xDebug by modifying your PHP configuration, define environment variables using a .env file or system-level settings, and adjust PHP limits by editing the php.ini file. These changes give you more control over your local development environment and are helpful when replicating specific server conditions.

Build better, faster, and safer with WordPress Studio

WordPress Studio gives developers a powerful and efficient way to manage local WordPress sites. It removes the friction of traditional local stacks, automates setup, and provides the tools needed to build high-quality themes, plugins, and full websites in a controlled environment.

With support for multiple isolated containers, convenient switching between sites, built-in WP-CLI, and code editing, WordPress Studio by WordPress.com provides a complete development platform. Once configured, use it to manage multiple projects, simulate production environments, and test with confidence — all without leaving your local machine.

J’aime chargement…
Avatar de Jen Swisher

Written by

Jen Swisher

Jen is a Customer Experience Specialist for Jetpack. She has been working with WordPress and Jetpack for over a decade. Before starting at Automattic, Jen helped small businesses, local non-profits, and Fortune 50 companies create engaging web experiences for their customers. She is passionate about teaching others how to create on the web without fear.

Découvrez les avantages de Jetpack

Découvrez comment Jetpack peut vous aider à protéger, accélérer et développer votre site WordPress.

Découvrir les offres

Questions about this post? Ask in the support forum

Partager


Keep reading.

More from Developers, newest first.

Voir tous les articles

Developers Sep 2, 2026

Jetpack 16.1.3: Critical Security Update

Yesterday we released a new version of Jetpack, 16.1.3. This release contains a critical security update. While we have no evidence that this vulnerability has been…

Avatar de Brandon Kraft Brandon Kraft 2 min de lecture

Developers Mar 5, 2026

How to Install WordPress on XAMPP + a Better Alternative

Learn how to install WordPress on XAMPP step by step, plus compare it to a modern alternative built specifically for WordPress developers.

Avatar de Jen Swisher Jen Swisher 8 min de lecture

Developers Mar 3, 2026

How to Install WordPress on a Subdomain (Step-by-Step Guide)

Complete setup guide: How to create one in your host, point DNS, secure your site, and configure key settings. Plus, how subdomains impact your SEO.

Avatar de Jen Swisher Jen Swisher 7 min de lecture

Gérez votre site WordPress, l’IA d’abord.

Free to start, and AI agents are free to connect. Money back within 14 days on yearly plans.

Commencer Obtenir Jetpack gratuitement

Extensions WordPress

  • Akismet Anti-spam↗ (s’ouvre dans un nouvel onglet)
  • Jetpack↗ (s’ouvre dans un nouvel onglet)
  • Jetpack Boost↗ (s’ouvre dans un nouvel onglet)
  • Jetpack CRM↗ (s’ouvre dans un nouvel onglet)
  • Jetpack Protect↗ (s’ouvre dans un nouvel onglet)
  • Jetpack Search↗ (s’ouvre dans un nouvel onglet)
  • Jetpack Social↗ (s’ouvre dans un nouvel onglet)
  • Jetpack VideoPress↗ (s’ouvre dans un nouvel onglet)
  • VaultPress Backup↗ (s’ouvre dans un nouvel onglet)
  • WP Super Cache↗ (s’ouvre dans un nouvel onglet)
  • Télécharger

IA

  • Jetpack AI
  • Skills
  • WordPress MCP

Partenaires

  • Programme partenaires
  • Hébergeurs recommandés
  • Pour les hébergeurs
  • Pour les agences
  • Pour les affiliés

Développeurs

  • Documentation↗ (s’ouvre dans un nouvel onglet)
  • Programme bêta
  • Jetpack sur GitHub↗ (s’ouvre dans un nouvel onglet)

Aide

  • Base de connaissances
  • Forums↗ (s’ouvre dans un nouvel onglet)
  • Avis et témoignages
  • Nous contacter
  • À propos de Jetpack
  • Presse
Sélectionner la langue Français
  • English
  • Deutsch
  • Español
  • Français
  • 日本語

© 2026 Automattic Inc. Tous droits réservés.

  • Conditions d’utilisation↗ (s’ouvre dans un nouvel onglet)
  • Politique de confidentialité↗ (s’ouvre dans un nouvel onglet)
  • RGPD

Créé avec soin par

Télécharger dans l’App Store Disponible sur Google Play
Chargement des commentaires…
  • Rebloguer
  • S'abonner Abonné
    Jetpack
    Rejoignez 53 352 autres abonnés

    Vous avez un compte WordPress.com ? Connectez-vous maintenant.

  • Jetpack
    Copier lien courtVoir la publication dans le Lecteur
    Gérer les abonnementsS’inscrireConnexion
    Signaler ce contenu
    Réduire cette barre
%d