Home > CMS Tutorial > WordPress > How to Develop WordPress Locally with DevKinsta

How to Develop WordPress Locally with DevKinsta

Lisa Kudrow
Release: 2025-02-08 09:23:09
Original
838 people have browsed it

DevKinsta: Convenient Local WordPress Development Kit

How to Develop WordPress Locally with DevKinsta

(This article is created in collaboration with Kinsta. Thanks to the partners who support SitePoint!)

Local development refers to building, editing and testing code on a local machine without an internet connection. It has many advantages:

  • Develop personal or client code anytime, anywhere.
  • A few clicks to debug plugins and themes in different environments.
  • Speed ​​development and web design workflows by local adjustments and pushing to a temporary storage environment on demand.

Key Points

  • DevKinsta is a free suite of local WordPress development tools that allow the creation of local WordPress instances containing PHP, Nginx, and MySQL full host stacks. It supports one-click WordPress website creation, local email management, built-in database manager, and seamless integration with MyKinsta.
  • DevKinsta supports three ways to create a local WordPress website: "Create a new WordPress website", "Import from Kinsta", and "Customize the website". The New WordPress Website option uses the default host stack to create a local website; Import from Kinsta clones a website hosted on Kinsta; Custom Website creates a local website with a customizable host stack.
  • DevKinsta provides a lightweight database management tool called Adminer, which provides a web interface to edit database tables, run database queries, import and export backups, and more. It also includes a built-in SMTP server and email capture tool that allows local WordPress websites to send out out emails like live production sites and capture and store sent emails in DevKinsta’s inbox.
  • For users who host WordPress websites on Kinsta, DevKinsta can easily push changes online to the Kinsta staging environment. It also allows managing multiple local WordPress websites, each running in its own containerized environment, with its own customizable PHP version, WordPress version, email inbox and more.

Introduction to DevKinsta

DevKinsta is a free local WordPress development tool suite from Kinsta to create local WordPress instances containing PHP, Nginx, and MySQL full host stacks in minutes. DevKinsta has a reliable and growing list of features such as one-click WordPress website creation, PHP 7.x and 8.x support, local email management, built-in database manager, seamless integration with MyKinsta, and a community of WordPress experts.

DevKinsta supports macOS, Windows, and Ubuntu/Linux and is free to everyone, not just Kinsta customers.

How to download DevKinsta

DevKinsta is available for macOS, Windows, and Ubuntu/Linux. Here is the way to get started:

  1. Get kinsta.com/devkinsta and click the "Download" button.
  2. Add your name and email address in the modal window and click the button.
  3. The download process will start automatically, and depending on your operating system, you will download the .dmg, .exe file or .deb file.
  4. Click on the file and start the installation process.

Docker Desktop is installed as a dependency when DevKinsta is first started. DevKinsta uses Docker Desktop to create a containerized WordPress environment. During the DevKinsta installation, you may see a pop-up message saying "Docker Desktop requires privileged access". If you see the message, click OK and provide your user account password to properly install Docker Desktop. After providing the installation password, DevKinsta will install Docker Desktop with some Docker images. Installation time may vary depending on your internet connection speed, so you can temporarily leave your computer.

System requirements

To successfully install DevKinsta, you need to make sure your local machine meets the following requirements:

  • At least 5 GB disk space, more than 20 GB is recommended.
  • At least 1 GB RAM, more than 2 GB is recommended.
  • Stable Internet connection for download.
  • Virtualization enabled in BIOS.

For more detailed information, be sure to read the recommended installation process in our documentation.

How to Create a Local WordPress Website with DevKinsta

DevKinsta supports three ways to create a local WordPress website:

  1. New WordPress website Allows you to create local websites using the default host stack including Nginx, MySQL, PHP 7.4 and the latest version of WordPress.
  2. Import from Kinsta allows you to clone websites hosted on Kinsta to your local computer in just a few clicks. Once you've finished your work, you can even push the changes back to the Kinsta staging environment!
  3. Customize website allows you to configure specific settings for your local WordPress installation. This option allows you to select a PHP version, specify a database name, and enable WordPress multi-site.

How to Develop WordPress Locally with DevKinsta

Create a new website with DevKinsta

Create a new WordPress website

To start, select the "New WordPress website" option. For this website creation method, you only need to specify the website name, WordPress administrator username, and WordPress administrator password. After filling in these three fields, click "Create Website".

How to Develop WordPress Locally with DevKinsta

Clone your live website using the Import from Kinsta feature

Import from Kinsta

The second option is to import the website environment hosted on Kinsta. To do this, click "Import from Kinsta" and provide your MyKinsta login details. After logging in, select the Kinsta environment you want to clone to your local computer. DevKinsta supports both real-time and staging environments on Kinsta, so be sure to choose the right environment. After clicking on the environment, specify whether the site is a multi-site installation, and then click "Import Site" to start cloning your site.

How to Develop WordPress Locally with DevKinsta

Customize local WordPress installation with DevKinsta

Custom website

The third and last option, “Custom Site”, allows you to configure specific settings for your local WordPress installation. Here are the settings you can adjust using this website creation method: Website name, PHP version (PHP 7.2, 7.3, 7.4, and 8.0), Database name, HTTPS enabled, WordPress website title, WordPress administrator email, WordPress administrator username , WordPress administrator password, WordPress multi-site mode.

After configuring the required settings, click "Create Site" to start the website creation process.

How to manage multiple websites in DevKinsta

For agencies and developers working on multiple projects simultaneously, DevKinsta allows you to deploy and manage multiple local WordPress websites! Each local WordPress website managed by DevKinsta runs in its own containerized environment. This means that each website has its own customizable PHP version, WordPress version, email inbox, and more. To view your DevKinsta website list, click the website icon in the left sidebar.

How to Develop WordPress Locally with DevKinsta

Deploy multiple WordPress local environments using DevKinsta

On this screen, you can see a list of all local WordPress sites. To add another website, just click the "Add Site" button.

How to push changes to Kinsta staging environment

For users who host WordPress websites on Kinsta, DevKinsta can easily push changes online to the Kinsta staging environment. To push a local website to Kinsta, just click the "Press to Stage" button on the "Website Information" page.

How to Develop WordPress Locally with DevKinsta

Push your local WordPress website to the Kinsta staging environment

You may be prompted for MyKinsta credentials. Then, you need to select the target website you want to push to. Remember that if a staging environment exists, this process overwrites the contents of the current staging environment.

Lastly, click "Pull to Stage Storage" to confirm the operation.

After pushing a local WordPress website to Kinsta, you can view the website through the staging environment URL. If necessary, you can push the staging store to a live environment in MyKinsta.

How to use DevKinsta's database management tool

DevKinsta comes with a lightweight database management tool called Adminer. Like phpMyAdmin for our websites hosted on Kinsta, Adminer provides you with a web interface to edit database tables, run database queries, import and export backups, and more. To start Adminer, click the Database Manager button at the top of the Site Information page. Adminer will then open in your default web browser.

How to Develop WordPress Locally with DevKinsta

Click "Database Manager" to access Adminer in DevKinsta

After starting Adminer, you will see the tables for your WordPress database. The following image shows the database of our "kinstalife" test website. In the "Table" column, you can see the default WordPress tables, such as wp_comments, wp_posts, etc.

Adminer also supports database import and export. This is very useful for using database backup files that we include in downloadable backups. To import a database file, click "Import" in the upper left corner of Adminer. Click "Select File" to select a database backup, and then click "Execute" to start the import process. Adminer supports both original .sql files and compressed .sql.gz files.

To export a complete database backup, click "Export" in the upper left corner of Adminer. Select "gzip" for the output format, select "SQL" for the database format, and leave other settings as default settings. Click "Export" to start the backup process. Adminer will then export your WordPress database to a compressed .sql.gz file.

Finally, Adminer supports SQL command execution, which means you can run database queries on your WordPress database. For example, if you try to find the amount of data that is automatically loaded in the database, you can run the following SQL command in Adminer:

SELECT SUM(LENGTH(option_value)) as autoload_size FROM wp_options WHERE autoload='yes';
Copy after login

To run a database query, click "SQL Command" in the upper left corner of Adminer. Specify the database query and click "Execute" to run the command.

Using DevKinsta's Adminer integration, you can provide advanced control over your WordPress database. Whether you need to edit database tables, import or export backups, or run complex SQL commands, DevKinsta has your needs!

How to check out out emails using DevKinsta's email inbox tool

DevKinsta includes a built-in SMTP server and email capture tool. This allows your local WordPress website to send out out emails like a live production site. However, the email sent will be captured and stored in DevKinsta’s email inbox. This gives you the best of both worlds. You can use DevKinsta to test outgoing email features such as marketing automation workflows, WooCommerce order confirmations, and more without spam to visitors and customers’ email inboxes. To access DevKinsta’s email inbox, click the mail icon in the left sidebar.

How to Develop WordPress Locally with DevKinsta

DevKinsta includes a built-in SMTP server and email capture tool

In your email inbox, you will see a list of captured outgoing emails. In the image below, you can see an outgoing email from our kinstalife test site.

To check out out emails, just click on it. For each email, use DevKinsta to check "Sender Address", "Recipient Address", "Text Content", "Delivery Time", and so on.

You can also choose to display emails in HTML, plain text, or original mode. HTML pattern is useful for testing HTML email templates, while original pattern allows you to check email headers directly, such as MIME-Version and X-Mailer.

Where to learn more about DevKinsta

To learn more about DevKinsta, be sure to join the official community forum and read the DevKinsta documentation. We look forward to seeing what you create!

FAQ for Local WordPress Development with DevKinsta (FAQ)

What are the system requirements for DevKinsta?

DevKinsta requires a 64-bit version of Windows 10, macOS 10.14 or higher, or Ubuntu 18.04 or higher. It also requires Docker Desktop to be installed on your system. Docker Desktop requires at least 4GB of RAM, but 8GB is recommended for optimal performance.

How to install DevKinsta on my computer?

To install DevKinsta, you need to download the installer from the official DevKinsta website. After the download is complete, run the installer and follow the on-screen instructions. The installation process is simple and does not require any technical knowledge.

Can I use DevKinsta for commercial projects?

Yes, DevKinsta is available for free for personal and commercial projects. It is a powerful tool that helps you develop and test WordPress websites before deploying them to a live server.

How to create a new WordPress website using DevKinsta?

To create a new WordPress website using DevKinsta, open the app and click the "Create New Website" button. You will be asked to provide some details about the website, such as its name and the version of WordPress you want to use. After filling in these details, click the "Create" button and DevKinsta will set up a new website for you.

Can I import my existing WordPress website into DevKinsta?

Yes, DevKinsta allows you to import existing WordPress websites. To do this, you need to follow the steps above to create a new website, however, instead of setting up a new WordPress installation, select the "Import Site" option. You will then be asked to provide details of the website you want to import.

How to update WordPress and plugins in DevKinsta?

Updating WordPress and plugins in DevKinsta is the same as updating them in a live website. You can do this by going to the WordPress dashboard in the Updates section.

Can I use DevKinsta to test before deploying changes to a live website?

Yes, one of the main advantages of DevKinsta is that it allows you to test in a secure local environment before deploying changes to a live website. This can help you avoid potential problems and ensure your website always runs smoothly.

How to deploy a website from DevKinsta to a live server?

To deploy a website from DevKinsta to a live server, you need to export the website from DevKinsta and import it into the live server. This process may vary by your hosting provider, so it is best to check its documentation for specific instructions.

What should I do if I have problems using DevKinsta?

If you have problems using DevKinsta, you can check out the DevKinsta documentation or the Kinsta Knowledge Base to find solutions. If you can't find a solution, you can contact the DevKinsta support team for help.

Can I use DevKinsta on multiple computers?

Yes, you can install and use DevKinsta on multiple computers. However, remember that each DevKinsta installation is independent, so if you want to handle them from different machines, you will need to manually transfer websites between computers.

The above is the detailed content of How to Develop WordPress Locally with DevKinsta. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template