How to use XAMPP to build a local WordPress website

Want to learn WordPress to build a website but don't want to buy a server?

Do you use XAMPP to build a local environment WordPress website on your computer? Setting up a local environment of WordPress on your computer can help you try WordPress, test themes and plugins, and learn WordPress development.

In this article, we will show you how to use XAMPP to easily create a local environment WordPress website.

Why build a local WordPress website?
  Building a local WordPress website is a common practice for developers and website owners, allowing you to test WordPress without having to create an actual website on the Internet.
  The local website is only visible on your computer. You can try different WordPress themes and plugins, test their functions, and learn the basics of WordPress.
  If you already have a WordPress website, you can create a copy of your website and try out new features before implementing it on your website.
  Important note: Only you can see the local website on your computer. If you want to make a live website, you need a domain name and WordPress hosting.

What is XAMMP?
  XAMPP is a software package that includes everything needed to set up a local server environment on your computer.
  In order to create a local WordPress website, you need to set up web server software (Apache), PHP and MySQL on your computer.
  PHP is a programming language, and MySQL is a database management software. Both need to run WordPress.
  For beginners, it is very difficult to install them, which is why XAMPP is needed.
  XAMPP makes it easy for you to build a WordPress website locally. It is suitable for computers based on Windows, Mac and Linux.
  Let's start installing XAMPP and running a local WordPress website.

Install XAMPP on your computer
  First, you need to visit the XAMPP website and click the download button of your operating system.

  Depending on your operating system, the installation wizard and application interface may differ from the screenshots here. In this article, we will show you the Windows version of the software.
  After downloading XAMPP, click and run the installer.

Set up XAMPP

  XAMPP will ask where to install the software and which packages to install, select the default settings, and continue to click "Next" to complete the setup wizard.

Install XAMPP

  Start the XAMPP control panel application.
  Using the XAMPP application, you can run the Apache web server as a local server and MySQL as a database server. Go ahead and click the start button next to Apache and MySQL.

Start Apache and MySQL start local server

  XAMPP will now start Apache and MySQL so that both applications can run on the computer.
  After the application is launched, the name part will be displayed with a green background.

Start xampp
  Now, you are ready to use XAMPP to install and build a local WordPress website.

Use XAMPP to build a local WordPress website
  First, you need to download WordPress. Visit the WordPress.org website and click the "Download WordPress" button;

Download wordpress

  After downloading WordPress, you need to unzip the zip file, and then you will see a wordpress folder, copy this folder.

After WordPress unzip and
  copy the WordPress folder, go to your XAMPP installation folder.
  Windows system address: C:/Program Files/XAMPP/htdocs or C:/Xampp/htdocs folder.
  Mac system address: /Applications/XAMPP/htdocs folder.
  Paste the copied wordpress folder into htdocs.
  You can also rename the wordpress folder to any other name, which can help you easily identify the local site.

Copy WordPress to the htdocs folder
  open the browser, and then enter the following URL in the address bar of the browser
  http://localhost/wordpress; (if you rename the WordPress folder, please replace )

  After entering the URL, the WordPress installation wizard appears, asking to select a language, after selecting, click the "Continue" button
  WordPress welcome page will appear, WordPress needs database name, database user name, password and host information

WordPress installation welcome page
  Next, you need to create a database for your WordPress website.
  Open the browser, enter http://localhost/phpmyadmin/ to
  start XAMPP's pre-installed phpMyAdmin application,
  click on the database, and provide a name for the new database, select utf8mb4_general_ci as the sorting rule. After that, click the "Create" button to continue

phpmyadmin new database
  switch to http://localhost/wordpress; click "start now"

  Enter this page, enter the database name testweb, the user name root, the password is not filled, and other defaults remain unchanged

Fill in the WordPress database and
  click the "Submit" button to continue.
  WordPress requires you to provide information about your website.
  First, enter the title of this site.
  After that, enter the username, password and email address of the administrator account.

WordPress site information configuration  After
  filling in all the information, click the "Install WordPress" button.
  WordPress will now run the installation and prompt you to log in when it is complete.
  You can log in to your website by going to the /localhost/wordpress/wp-admin page and log in with the username/password entered during the installation process.

WordPress site login After
building a local environment WordPress website
  Now, a local WordPress website has been built using XAMPP, which can be operated in real time on the WordPress website.
  Log in to the built WordPress website, click on the theme in the Appearance menu in the sidebar, and then add it; here are some free themes that you can try.

5/5 (1 Review)
Know the blog, all rights reserved 丨 If not specified, it is the original
know blog »(2020) How to use XAMPP to build a local environment WordPress website
, please keep the link: https://www.pythonthree.com /how-to-create-a-local-wordpress-site-using-xampp/

Guess you like

Origin blog.51cto.com/10391203/2601979