{"id":49570,"date":"2022-03-24T09:53:42","date_gmt":"2022-03-24T09:53:42","guid":{"rendered":"\/tutorials\/?p=49570"},"modified":"2025-03-06T10:24:47","modified_gmt":"2025-03-06T10:24:47","slug":"install-wordpress-locally","status":"publish","type":"post","link":"\/uk\/tutorials\/install-wordpress-locally","title":{"rendered":"How to Install WordPress Locally (3 Methods)"},"content":{"rendered":"<p>Testing new themes and plugins on your live website can cause functionality issues, slow loading times, and even downtime. Without a testing site, securing and optimizing WordPress for speed becomes challenging. Therefore, knowing how to install WordPress locally is essential.<\/p><p>Using a version of WordPress stored on your computer, you can make any changes you like, and your visitors won&rsquo;t see them. This enables you to test software, learn coding skills, and scan for performance bugs safely. It can also serve as a staging environment before going live.&nbsp;<\/p><p>In this guide, we&rsquo;ll introduce you to the process of installing WordPress locally and present three different methods to accomplish it. Let&rsquo;s jump right in!<\/p><p>\n\n\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-why-should-you-want-to-install-wordpress-locally\">Why Should You Want to Install WordPress Locally<\/h2><p><a href=\"\/uk\/tutorials\/what-is-wordpress\">WordPress is<\/a> a flexible and user-friendly platform. It makes building a website and getting it online quick and simple. However, it can also be used to install WordPress locally.<\/p><p>Doing this results in an offline website that&rsquo;s stored on your computer and can only be seen by you or anyone else with access to that device. At first, it may seem counterintuitive to create a private website in this way, but there are many reasons to do so.<\/p><p>For example, you can build a new website locally and then make it available online when it&rsquo;s ready to be published. This will ensure that no search engines or human visitors will see it before it&rsquo;s completed.<\/p><p>However, you may also choose to create a local version of your existing live website. Here are just a few of the uses for this kind of local copy:<\/p><ul class=\"wp-block-list\">\n<li>Test new themes or install <a href=\"\/uk\/tutorials\/best-wordpress-plugins\">WordPress plugins<\/a> to ensure they work properly and don&rsquo;t cause compatibility errors<\/li>\n\n\n\n<li>Try out updates, new features, and third-party tools<\/li>\n\n\n\n<li>Experiment with redesigning part of your site<\/li>\n\n\n\n<li>Conduct troubleshooting, investigate errors and experiment with solutions to <a href=\"\/uk\/tutorials\/how-to-secure-wordpress\">make WordPress more secure<\/a><\/li>\n<\/ul><p>With a local testing environment, you can also <a href=\"\/uk\/tutorials\/learn-coding-online-for-free\">learn how to code<\/a>. Rather than editing your live site and potentially losing data, you can experiment with your local WordPress files in safety.<\/p><p>One additional benefit is that running a local WordPress site on your computer doesn&rsquo;t require an internet connection. This can enable you to develop your website offline, so you don&rsquo;t need to wait for slow internet speeds or have access to a reliable connection.<\/p><p>Creating a local WordPress site is also completely free. It can be an excellent option for beginners who want to develop their website before purchasing a hosting plan or domain. You can learn the technical aspects of running a website with a local site before accumulating any monthly costs.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>If you want to install WordPress on your web server, feel free to check out our complete guide about <a href=\"\/uk\/tutorials\/how-to-install-wordpress\">how to install WordPress<\/a>.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-wordpress-locally\">How to Install WordPress Locally<\/h2><p>If you want to install a local WordPress site, it&rsquo;s important to find the right tool. Since WordPress won&rsquo;t run directly on your computer, you&rsquo;ll need web development software capable of handling this task.<\/p><p>Local WordPress software often includes an <a href=\"\/uk\/tutorials\/what-is-apache\">Apache web server<\/a>, <a href=\"\/uk\/tutorials\/what-is-php\/\">PHP<\/a>, and <a href=\"\/uk\/tutorials\/what-is-mysql\">MySQL<\/a>. These platforms work together to create an environment that supports a local site. By downloading them in a package, you can avoid the hassle of installing them separately.&nbsp;<\/p><p>However, you&rsquo;ll need to install compatible software for your computer. Certain web <a href=\"\/uk\/tutorials\/development-environment\">development environments<\/a> are specifically designed for Windows or Mac, while others support both. Let&rsquo;s take a look at three top options.<\/p><h3 class=\"wp-block-heading\" id=\"h-method-1-install-wordpress-locally-on-windows\">Method 1: Install WordPress Locally on Windows<\/h3><p>For Windows users, we&rsquo;d recommend downloading <a href=\"\/uk\/tutorials\/what-is-wamp\">WampServer<\/a>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver.png\"><img decoding=\"async\" width=\"1024\" height=\"567\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-1024x567.png\" alt=\"WampServer's official homepage.\" class=\"wp-image-49572\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-1024x567.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-300x166.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-150x83.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-768x425.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver.png 1257w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>WampServer is Windows-based software that supports a local web development environment. Anyone can download this free resource to access a local website without an internet connection or a web host.<\/p><p>When you learn the steps to install WordPress on WAMP, you&rsquo;ll be able to use Apache2, PHP, and a MySQL database to create a local site. Then you can manage it with <a href=\"https:\/\/www.phpmyadmin.net\/\" target=\"_blank\" rel=\"noopener\">phpMyAdmin<\/a>.<\/p><p><strong>1. Download WAMP<\/strong><\/p><p>To get started, go to the <a href=\"https:\/\/www.wampserver.com\/en\/#download-wrapper\" target=\"_blank\" rel=\"noopener\">WampServer website<\/a> and navigate to <strong>Downloads<\/strong>. There you&rsquo;ll see two options &ndash; 64 BITS and 32 BITS.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-downloads.png\"><img decoding=\"async\" width=\"1024\" height=\"426\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-downloads-1024x426.png\" alt=\"Two options to download WampServer.\" class=\"wp-image-49573\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-downloads-1024x426.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-downloads-300x125.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-downloads-150x62.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-downloads-768x320.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-downloads.png 1259w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>You&rsquo;ll need to download the best version for your computer based on its OS type. If you don&rsquo;t know what operating system you&rsquo;re using, you can go to <strong>Control Panel -&gt; System and Security -&gt; System<\/strong>, and then look up the <strong>System Type<\/strong> section.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/system-type-section.png\"><img decoding=\"async\" width=\"823\" height=\"227\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/system-type-section.png\" alt=\"The System Type section showing x64-based PC operating system.\" class=\"wp-image-49574\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/system-type-section.png 823w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/system-type-section-300x83.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/system-type-section-150x41.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/system-type-section-768x212.png 768w\" sizes=\"(max-width: 823px) 100vw, 823px\" \/><\/a><\/figure><\/div><p>You can find out whether you have a 64-bit or 32-bit operating system there. Then, download the WampServer file that matches your setup.&nbsp;<\/p><p><strong>2. Define Your Default Browser<\/strong><\/p><p>After downloading the appropriate file, open the saved folder. Click on the WampServer execution file to start the process. This will open the installation wizard.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-installation-wizard.png\"><img decoding=\"async\" width=\"598\" height=\"464\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-installation-wizard.png\" alt=\"WampServer's installation wizard.\" class=\"wp-image-49575\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installation-wizard.png 598w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installation-wizard-300x233.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installation-wizard-150x116.png 150w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/figure><\/div><p>Then follow the installation instructions, which include accepting the License Agreement. You&rsquo;ll also need to set a destination location to install WampServer.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-select-destination-location.png\"><img decoding=\"async\" width=\"598\" height=\"464\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-select-destination-location.png\" alt=\"Selecting the destination location when installing WampServer.\" class=\"wp-image-49577\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-select-destination-location.png 598w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-select-destination-location-300x233.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-select-destination-location-150x116.png 150w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/figure><\/div><p>Proceed through the installation wizard until you reach a screen where you can confirm your choices. Then click on <strong>Install<\/strong>. This will begin extracting files and sending them to your set destination:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-ready-to-install.png\"><img decoding=\"async\" width=\"598\" height=\"464\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-ready-to-install.png\" alt=\"The setup window informing that Wampserver64 is ready to install.\" class=\"wp-image-49578\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-ready-to-install.png 598w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-ready-to-install-300x233.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-ready-to-install-150x116.png 150w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/figure><\/div><p>WampServer will ask you to confirm what default web browser you want it to use during installation. The program defaults to Internet Explorer, but you can designate whatever you prefer.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-installing.png\"><img decoding=\"async\" width=\"598\" height=\"464\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-installing.png\" alt=\"The setup window informing that Wampserver64 is installing.\" class=\"wp-image-49579\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installing.png 598w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installing-300x233.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-installing-150x116.png 150w\" sizes=\"(max-width: 598px) 100vw, 598px\" \/><\/a><\/figure><\/div><p>Once the installation process is complete, WampServer will show you a brief instruction screen explaining how to interact with the software. We&rsquo;ll be showing you how to do that in the next step.<\/p><p><strong>3. Launch phpMyAdmin and Log In<\/strong><\/p><p>If this is your first time using WampServer, you&rsquo;ll need to launch the program from the <strong>Start<\/strong> <strong>menu<\/strong>. After you do this, a new icon will appear in the taskbar.<\/p><p>Make sure the icon is green, which means that everything is functioning correctly. If you see a red or yellow icon, you&rsquo;ll need to resolve the problem by restarting the program.<\/p><p>Then click on <strong>phpMyAdmin<\/strong>, which we will use to manage the MySQL database. You can also access the phpMyAdmin screen by opening your browser and typing in <strong>localhost<\/strong>. That will open the WampServer server configuration page.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-server-configuration.png\"><img decoding=\"async\" width=\"1024\" height=\"748\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wampserver-server-configuration-1024x748.png\" alt=\"WampServer server configuration details.\" class=\"wp-image-49584\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-server-configuration-1024x748.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-server-configuration-300x219.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-server-configuration-150x110.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-server-configuration-768x561.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wampserver-server-configuration.png 1035w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>On your phpMyAdmin login screen, enter <strong>&ldquo;root&rdquo; <\/strong>under the username section. Leave the <strong>password<\/strong> field blank.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpMyAdmin-welcome.png\"><img decoding=\"async\" width=\"743\" height=\"656\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpMyAdmin-welcome.png\" alt=\"The Welcome to phpMyAdmin window.\" class=\"wp-image-49586\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-welcome.png 743w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-welcome-300x265.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-welcome-150x132.png 150w\" sizes=\"(max-width: 743px) 100vw, 743px\" \/><\/a><\/figure><\/div><p>After this, click on <strong>Go<\/strong> to access the phpMyAdmin dashboard.<\/p><p><strong>4. Create a Database and Install WordPress<\/strong><\/p><p>Among the tabs at the top of the page, choose <strong>Databases<\/strong>. To create a new database for your WordPress site, enter a name into the textbox and select <strong>Collation<\/strong> in the following drop-down menu.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpmyadmin-create-database.png\"><img decoding=\"async\" width=\"915\" height=\"317\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpmyadmin-create-database.png\" alt=\"Creating a new database.\" class=\"wp-image-49587\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-create-database.png 915w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-create-database-300x104.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-create-database-150x52.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-create-database-768x266.png 768w\" sizes=\"(max-width: 915px) 100vw, 915px\" \/><\/a><\/figure><\/div><p>Now you&rsquo;ll need to download the platform. Go to the <a href=\"https:\/\/wordpress.org\/\" rel=\"nofollow noopener\" target=\"_blank\">WordPress.org<\/a> website and choose <strong>Get WordPress<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/meet-wordpress.png\"><img decoding=\"async\" width=\"1024\" height=\"469\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/meet-wordpress-1024x469.png\" alt=\"WordPress.org website.\" class=\"wp-image-49589\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/meet-wordpress-1024x469.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/meet-wordpress-300x138.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/meet-wordpress-150x69.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/meet-wordpress-768x352.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/meet-wordpress.png 1250w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Once it downloads as a <strong>ZIP<\/strong> file, extract the WordPress folder and copy it. Then, locate the folder where WAMP is installed &ndash; in our case, it&rsquo;s in <strong>C:\\wamp\\www<\/strong>. Paste the WordPress folder there.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-folder.png\"><img decoding=\"async\" width=\"739\" height=\"263\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-folder.png\" alt=\"The location of your WordPress folder.\" class=\"wp-image-49590\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-folder.png 739w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-folder-300x107.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-folder-150x53.png 150w\" sizes=\"(max-width: 739px) 100vw, 739px\" \/><\/a><\/figure><\/div><p>Rename the WordPress folder to anything you want. For example, you might call it <strong>&ldquo;mytestingsite&rdquo;<\/strong>. Since this will become the URL and title of your local WordPress site, make sure that it is clear and descriptive.&nbsp;<\/p><p><strong>5. Visit Your Testing Site<\/strong><\/p><p>To finish installing a WampServer WordPress, open your web browser and go to <strong>http:\/\/localhost\/mytestingsite<\/strong>. Replace <strong>&ldquo;mytestingsite&rdquo;<\/strong> with the name you chose in the previous step.<\/p><p>To start setting up WordPress, you&rsquo;ll need to choose a language. When filling out the database details, use <strong>&ldquo;root&rdquo;<\/strong> as your username and leave the password space blank.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/database-connection-details.png\"><img decoding=\"async\" width=\"1024\" height=\"726\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/database-connection-details-1024x726.png\" alt=\"Entering your database connection details to start setting up WordPress.\" class=\"wp-image-49592\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/database-connection-details-1024x726.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/database-connection-details-300x213.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/database-connection-details-150x106.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/database-connection-details-768x545.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/database-connection-details.png 1135w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>After this, WordPress will connect to your database, and you can continue to run the installation process. Enter the site&rsquo;s title, username, password, and email address for your WordPress account when you see a welcome screen.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password.png\"><img decoding=\"async\" width=\"734\" height=\"430\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password.png\" alt=\"WordPress installation screen to insert the website information, including site title, username, and password\" class=\"wp-image-72908\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password.png 734w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-300x176.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-150x88.png 150w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/a><\/figure><\/div><p>Finally, click <strong>Log in<\/strong> to access the WordPress dashboard of your local site. After that, you&rsquo;re ready to start conducting any testing and\/or troubleshooting you like.<\/p><p>If you encounter any functional issues that prevent you from going through these steps, you can read through the <a href=\"http:\/\/forum.wampserver.com\/list.php?2\" target=\"_blank\" rel=\"noopener\">WampServer support forums<\/a> for troubleshooting tips. There, you can find resolutions to many common WAMP server problems.&nbsp;<\/p><p>\n\n\n<div class=\"editor\">\n                    <h4 class=\"title\">Expert Tip<\/h4>\n                    <p>While a local test environment gives you control over your WordPress setup, online sandboxes and test sites are gaining traction for quick testing, such as <a href=\"\/uk\/tutorials\/what-is-wordpress-playground\">WordPress Playground<\/a>. Opt for these if you want a fast solution without the technical hassle.<\/p>\n                    <div class=\"d-flex mt-40\">\n                        <div class=\"author-photo\">\n                            <img decoding=\"async\" src=\"https:\/\/secure.gravatar.com\/avatar\/1ac51b8c5ae07cda4b35e33d341c5b24c5a6ba6a1b63fd785ebe1070dd6fdc7c?s=65&d=mm&r=g\" width=\"65\" height=\"65\" class=\"border-radius-50\" alt=\"Editor\" \/>\n                        <\/div>\n                        <div class=\"mt-auto mb-auto\">\n                            <p class=\"author-name\">Leonardus Nugraha<\/p>\n                            <p class=\"author-position\">Content Specialist (WordPress Category)<\/p>\n                        <\/div>\n                    <\/div>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-method-2-install-wordpress-locally-on-macos\">Method 2: Install WordPress Locally on macOS<\/h3><p>To install WordPress for Mac locally, you&rsquo;ll need compatible software. To start installing WordPress locally, we recommend using <a href=\"https:\/\/www.mamp.info\/en\/mac\/\" target=\"_blank\" rel=\"noopener\">MAMP<\/a>. This is one of the best tools to create a local WordPress site on macOS systems.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp.png\"><img decoding=\"async\" width=\"1024\" height=\"455\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-1024x455.png\" alt=\"MAMPS's official website.\" class=\"wp-image-49594\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-1024x455.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-300x133.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-150x67.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-768x341.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp.png 1259w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p><strong>MAMP<\/strong> is a combined software package. In other words, you&rsquo;ll have all the tools you need to create a local WordPress environment. It follows a similar setup process to WAMP, except that it has options to support macOS-based software.<\/p><p>Using <strong>MAMP<\/strong> <strong>PRO<\/strong>, you can even test your WordPress site on a mobile device. With its <a href=\"https:\/\/www.mamp.info\/namo\/en\/?m=1620811225&amp;\" target=\"_blank\" rel=\"noopener\">NAMO application<\/a>, you can edit your website on different devices, such as your smartphone or tablet.<\/p><p>Another benefit of MAMP is that you won&rsquo;t have to start a script or change any configuration files. Since MAMP does not modify any existing systems, you can simply delete the app once you&rsquo;re finished using it.&nbsp;<\/p><p><strong>1. Download and Install MAMP<\/strong><\/p><p>First, go to the <a href=\"https:\/\/www.mamp.info\/en\/mamp\/mac\/\" target=\"_blank\" rel=\"noopener\">MAMP website<\/a> and click on <strong>Free Download<\/strong>. Windows users will see an option to download MAMP for their operating system. However, Mac-based users should choose one of the macOS versions.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-download.png\"><img decoding=\"async\" width=\"1024\" height=\"503\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-download-1024x503.png\" alt=\"The three possible versions of MAMP to download.\" class=\"wp-image-49595\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-download-1024x503.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-download-300x147.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-download-150x74.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-download-768x378.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-download.png 1257w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>When downloading any of these options, you&rsquo;ll be able to access both MAMP and MAMP PRO. However, you can delete MAMP PRO to only use the free version.&nbsp;<\/p><p>Then, open the downloaded MAMP file. This will launch the step-by-step installation instructions.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-installation-instructions.png\"><img decoding=\"async\" width=\"617\" height=\"431\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-installation-instructions.png\" alt=\"MAMP's installation instructions.\" class=\"wp-image-49596\" style=\"width:617px;height:431px\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-instructions.png 617w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-instructions-300x210.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-instructions-150x105.png 150w\" sizes=\"(max-width: 617px) 100vw, 617px\" \/><\/a><\/figure><\/div><p>Start by accepting the license agreement and choosing the disk you want to install MAMP on. Before installation, the program will tell you exactly how much storage space the software uses.<\/p><p>After you follow the installation guide, you should receive a success message telling you that the installation was successful.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-installation-successful.png\"><img decoding=\"async\" width=\"616\" height=\"432\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-installation-successful.png\" alt=\"Summary: The MAMP installation was completed successfully.\" class=\"wp-image-49597\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-successful.png 616w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-successful-300x210.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-installation-successful-150x105.png 150w\" sizes=\"(max-width: 616px) 100vw, 616px\" \/><\/a><\/figure><\/div><p>Once you see this, you are free to close the installation wizard.<\/p><p><strong>2. Customize Your Preferences<\/strong><\/p><p>Now, launch the MAMP app by double-clicking on its icon. Find the <strong>Preferences<\/strong> menu in the upper left-hand corner, and select the <strong>Ports<\/strong> tab.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-preferences.png\"><img decoding=\"async\" width=\"528\" height=\"401\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-preferences.png\" alt=\"The Ports tab under the MAMP Preferences.\" class=\"wp-image-49598\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-preferences.png 528w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-preferences-300x228.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-preferences-150x114.png 150w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><\/a><\/figure><\/div><p>In the Apache Port section, enter <strong>&ldquo;80&rdquo;<\/strong>. This enables you to access your local site using the URL <strong>http:\/\/localhost<\/strong> instead of <strong>http:\/\/localhost:8888<\/strong>. However, keep in mind that using &ldquo;80&rdquo; as your Apache port will always prompt you for your password.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-apache-port.png\"><img decoding=\"async\" width=\"525\" height=\"407\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-apache-port.png\" alt=\"Setting MAMP Apache Port to 80.\" class=\"wp-image-49599\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-apache-port.png 525w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-apache-port-300x233.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-apache-port-150x116.png 150w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/a><\/figure><\/div><p>Keep the <strong>Nginx<\/strong><em> <\/em><strong>Port<\/strong> at <strong>&ldquo;8888&rdquo;<\/strong> and the <strong>MySQL<\/strong><em> <\/em><strong>Port<\/strong> at <strong>&ldquo;8889&rdquo;<\/strong>. After you&rsquo;ve finished customizing the ports, select <strong>OK<\/strong>.&nbsp;<\/p><p>Then, go to the <strong>Web<\/strong><em> <\/em><strong>Server<\/strong> tab. Choose the folder where you want to store your website (the default location will be <strong>Applications\/MAMP\/htdocs<\/strong>).<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-web-server.png\"><img decoding=\"async\" width=\"528\" height=\"407\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-web-server.png\" alt=\"The Server tab under MAMP preferences.\" class=\"wp-image-49600\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-web-server.png 528w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-web-server-300x231.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-web-server-150x116.png 150w\" sizes=\"(max-width: 528px) 100vw, 528px\" \/><\/a><\/figure><\/div><p>You can choose a new folder and name it anything you want. For example, your document root could be <strong>\/Users\/Username\/Sites\/wordpress\/<\/strong>.<\/p><p>After you make your changes, click on <strong>OK<\/strong>.<\/p><p><strong>3. Download WordPress and Move It to the Root Directory<\/strong><\/p><p>Now it&rsquo;s time to download WordPress. Navigate to the <a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress.org<\/a> website and click on <strong>Get<\/strong><em> <\/em><strong>WordPress<\/strong>. Then extract the <strong>ZIP<\/strong> file and copy the WordPress folder.<\/p><p>Go to your <strong>Finder<\/strong> and navigate to <strong>Applications -&gt; MAMP<\/strong>. Find the root directory folder you named in the previous step, and paste the WordPress folder there.<\/p><p>Rename the WordPress folder anything you like. For example, you could use a memorable name such as <strong>&ldquo;testing-site&rdquo;<\/strong>.<\/p><p><strong>4. Create a Database<\/strong><\/p><p>Go back to your MAMP control panel and click on the button labeled <strong>WebStart<\/strong>. This will open a browser and take you to the MAMP welcome page. Find the <strong>Tools<\/strong> drop-down menu, and click on <strong>phpMyAdmin<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-phpMyAdmin.png\"><img decoding=\"async\" width=\"1024\" height=\"316\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/mamp-phpMyAdmin-1024x316.png\" alt=\"The location of phpMyAdmin on your MAMP control panel.\" class=\"wp-image-49601\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-phpMyAdmin-1024x316.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-phpMyAdmin-300x93.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-phpMyAdmin-150x46.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-phpMyAdmin-768x237.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/mamp-phpMyAdmin.png 1254w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>On your <strong>phpMyAdmin<\/strong> page, navigate to the <strong>Databases<\/strong> tab. Under the <strong>Create Database <\/strong>section, enter a database name. Be sure to choose <strong>utf8_general-ci<\/strong> as shown in the following selection.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpmyadmin-databases.png\"><img decoding=\"async\" width=\"747\" height=\"372\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpmyadmin-databases.png\" alt=\"The Databases tab on your phpMyAdmin.\" class=\"wp-image-49602\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-databases.png 747w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-databases-300x149.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpmyadmin-databases-150x75.png 150w\" sizes=\"(max-width: 747px) 100vw, 747px\" \/><\/a><\/figure><\/div><p>After this, click on <strong>Create<\/strong>.<\/p><p><strong>5. Go to the Testing Site<\/strong><\/p><p>Now, let&rsquo;s install WordPress on localhost. To start, open your web browser and enter <strong>http:\/\/localhost<\/strong>. If you&rsquo;ve configured your settings correctly, this will pull up a WordPress welcome page.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-welcome-page.png\"><img decoding=\"async\" width=\"1024\" height=\"642\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-welcome-page-1024x642.png\" alt=\"WordPress welcome page.\" class=\"wp-image-49603\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-welcome-page-1024x642.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-welcome-page-300x188.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-welcome-page-150x94.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-welcome-page-768x481.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-welcome-page.png 1037w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Now you&rsquo;ll need to enter your database information. Start by identifying your database name. Then enter the same username and password we used previously, and add <strong>&ldquo;localhost&rdquo;<\/strong> to the <strong>Database<\/strong> <strong>Host<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-database-host-localhost.png\"><img decoding=\"async\" width=\"1024\" height=\"606\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-database-host-localhost-1024x606.png\" alt=\"Entering your database connection details and setting localhost as your database host.\" class=\"wp-image-49604\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-database-host-localhost-1024x606.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-database-host-localhost-300x178.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-database-host-localhost-150x89.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-database-host-localhost-768x454.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-database-host-localhost.png 1144w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Next, fill in the username, password, and email address you&rsquo;ll use for your WordPress site. Give your site a title and click the <strong>Install<\/strong><em> <\/em><strong>WordPress <\/strong>button.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation.png\"><img decoding=\"async\" width=\"904\" height=\"860\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation.png\" alt=\"WordPress installation screen to insert the website information, including site title, username, and password\" class=\"wp-image-72910\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation.png 904w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-300x285.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-150x143.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-768x731.png 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/a><\/figure><\/div><p>Finally, click the <strong>Log<\/strong><em> <\/em><strong>In<\/strong> button to access your testing site!&nbsp;<\/p><p>If you face any problems when completing these setup steps, consider looking through <a href=\"https:\/\/mampsupportforum.com\/viewforum.php?f=3\" target=\"_blank\" rel=\"noopener\">MAMP support forums<\/a> to find specific advice about troubleshooting and solving common issues.<\/p><h3 class=\"wp-block-heading\" id=\"h-method-3-install-wordpress-locally-with-xampp\">Method 3: Install WordPress Locally with XAMPP<\/h3><p>Similar to WAMP and MAMP, XAMPP comprises <strong>Apache<\/strong> <strong>HTTP<\/strong> <strong>Server<\/strong>, <strong>MySQL<\/strong>, and <strong>PHP<\/strong> software. All of these software packages are free to download and can effectively install WordPress locally.&nbsp;<\/p><p>However, XAMPP is a cross-platform software, meaning that it supports the Windows, macOS, and Linux-based operating systems. Due to its simple interface, beginners will find it easy to learn <a href=\"\/uk\/tutorials\/how-to-use-xampp-wordpress\/\">how to use XAMPP<\/a>. Additionally, it comes with an additional high-level programming language called <strong>Perl<\/strong>.<\/p><p><strong>1. Download XAMPP<\/strong><\/p><p>To start building a local WordPress site with XAMPP, go to the official <a href=\"https:\/\/www.apachefriends.org\/index.html\" target=\"_blank\" rel=\"noopener\">Apache Friends<\/a> website.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp.png\"><img decoding=\"async\" width=\"1024\" height=\"519\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-1024x519.png\" alt=\"The official XAMPP website.\" class=\"wp-image-49606\" style=\"width:840px;height:425px\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-1024x519.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-300x152.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-150x76.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-768x390.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp.png 1256w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Then, navigate to <strong>Click here for other versions<\/strong> to see the different download options.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-download.png\"><img decoding=\"async\" width=\"1024\" height=\"548\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-download-1024x548.png\" alt=\"The different XAMPP versions available to download.\" class=\"wp-image-49608\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-download-1024x548.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-download-300x161.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-download-150x80.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-download-768x411.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-download.png 1255w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Choose the XAMPP version that aligns with your operating system. For this example, we will use XAMPP for Mac OS X.<\/p><p>Under that section, click on <strong>More<\/strong><em> <\/em><strong>Downloads<\/strong>. This will take you to SourceForge, where you can get a downloadable file of the latest version of XAMPP.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-downloadable-file.png\"><img decoding=\"async\" width=\"975\" height=\"675\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-downloadable-file.png\" alt=\"Getting a downloadable file of the latest version of XAMPP.\" class=\"wp-image-49610\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-downloadable-file.png 975w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-downloadable-file-300x208.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-downloadable-file-150x104.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-downloadable-file-768x532.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/a><\/figure><\/div><p>You can click on the newest version and then find the file that ends in either <strong>DMG<\/strong> or <strong>EXE<\/strong>. macOS users will want the <strong>DMG<\/strong> file, while Windows users should download the <strong>EXE<\/strong> file.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-dmg-file.png\"><img decoding=\"async\" width=\"946\" height=\"411\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-dmg-file.png\" alt=\"Downloading the .DMG file for macOS.\" class=\"wp-image-49611\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-dmg-file.png 946w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-dmg-file-300x130.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-dmg-file-150x65.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-dmg-file-768x334.png 768w\" sizes=\"(max-width: 946px) 100vw, 946px\" \/><\/a><\/figure><\/div><p>Since we are downloading XAMPP software for macOS, we chose the former.<\/p><p><strong>2. Choose From the List of Components<\/strong><\/p><p>Once you&rsquo;ve downloaded the correct XAMPP file, double-click on its icon to open the installer. You&rsquo;ll be able to go through a step-by-step setup wizard.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-setup.png\"><img decoding=\"async\" width=\"498\" height=\"410\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-setup.png\" alt=\"Welcome to the XAMPP Setup Wizard.\" class=\"wp-image-49613\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-setup.png 498w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-setup-300x247.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-setup-150x123.png 150w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/a><\/figure><\/div><p>First, select the components you want to install.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-select-components.png\"><img decoding=\"async\" width=\"496\" height=\"412\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-select-components.png\" alt=\"Selecting the components you want to install.\" class=\"wp-image-49614\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-select-components.png 496w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-select-components-300x249.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-select-components-150x125.png 150w\" sizes=\"(max-width: 496px) 100vw, 496px\" \/><\/a><\/figure><\/div><p>When you click on specific components, you&rsquo;ll see additional features such as program languages and server types.<\/p><p>To install WordPress locally, you&rsquo;ll only need to access <strong>Apache<\/strong>, <strong>MySQL<\/strong>, <strong>PHP<\/strong>, and <strong>phpMyAdmin<\/strong>. Although you can leave extra components checked, you won&rsquo;t need them for these steps.&nbsp;<\/p><p>Once you&rsquo;re finished, click on <strong>Next<\/strong><em>.<\/em> This will begin an automatic installation of the XAMPP core files.<\/p><p><strong>3. Launch the Control Panel and Test the Server<\/strong><\/p><p>After XAMPP is finished downloading, you&rsquo;ll be able to access the control panel. Be sure to click on the <strong>Manage<\/strong><em> <\/em><strong>Servers<\/strong> tab to view the status of the Apache Web Server, ProFTPD, and MySQL databases. If any of these are <strong>red<\/strong>, click on <strong>Start<\/strong><em> <\/em><strong>All<\/strong> or <strong>Restart<\/strong><em> <\/em><strong>All<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-manage-servers.png\"><img decoding=\"async\" width=\"666\" height=\"469\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-manage-servers.png\" alt=\"The Manage Servers tab on your XAMPP control panel showing that the status of your databases is green.\" class=\"wp-image-49618\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-manage-servers.png 666w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-manage-servers-300x211.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-manage-servers-150x106.png 150w\" sizes=\"(max-width: 666px) 100vw, 666px\" \/><\/a><\/figure><\/div><p>To check and see if your server is running, search your browser for <strong>http:\/\/localhost<\/strong>. This will open a XAMPP welcome page with applications, PHP information, and your phpMyAdmin.<\/p><p><strong>4. Download WordPress and Add the Folder to XAMPP<\/strong><\/p><p>Before creating a database, you&rsquo;ll need to download WordPress. Go to the <a href=\"https:\/\/wordpress.org\/\" target=\"_blank\" rel=\"noopener\">WordPress.org<\/a> website and download the latest version. Extract the WordPress folder and copy it.<\/p><p>Then navigate to your XAMPP folder and find the <strong>htdocs<\/strong><em> <\/em>folder. Paste the WordPress folder there.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-htdocs.png\"><img decoding=\"async\" width=\"759\" height=\"347\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-htdocs.png\" alt=\"The htdocs folder.\" class=\"wp-image-49620\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-htdocs.png 759w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-htdocs-300x137.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-htdocs-150x69.png 150w\" sizes=\"(max-width: 759px) 100vw, 759px\" \/><\/a><\/figure><\/div><p>Rename the WordPress folder with a recognizable title, such as &ldquo;mytestingsite&rdquo;.<\/p><p><strong>5. Create a Database<\/strong><\/p><p>Now, go back to your XAMPP information page at <strong>http:\/\/localhost<\/strong>. In the top-right corner, click on phpMyAdmin.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-phpmyadmin.png\"><img decoding=\"async\" width=\"1024\" height=\"347\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/xampp-phpmyadmin-1024x347.png\" alt=\"The location of phpMyAdmin on your XAMPP information page.\" class=\"wp-image-49622\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-phpmyadmin-1024x347.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-phpmyadmin-300x102.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-phpmyadmin-150x51.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-phpmyadmin-768x260.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/xampp-phpmyadmin.png 1506w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>Select the <strong>Databases<\/strong> tab and create a new database. You can use any name you want, but be sure that the second drop-down menu is labeled <strong>Collation<\/strong>:<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpMyAdmin-collation.png\"><img decoding=\"async\" width=\"1024\" height=\"520\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/phpMyAdmin-collation-1024x520.png\" alt=\"Creating databases on your phpMyAdmin and labelling the second drop-down menu as collation.\" class=\"wp-image-49624\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-collation-1024x520.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-collation-300x152.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-collation-150x76.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-collation-768x390.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/phpMyAdmin-collation.png 1086w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>After you click on <strong>Create<\/strong>, you&rsquo;ll be able to access your new testing site.<\/p><p><strong>6. Go to Your Testing Site<\/strong><\/p><p>Finally, finish installing WordPress on localhost &ndash; open a new browser window and search for <strong>http:\/\/localhost\/mytestingsite<\/strong>. It&rsquo;s important to replace <strong>&ldquo;mytestingsite&rdquo;<\/strong> with the name you chose earlier.<\/p><p>On this page, WordPress will give you a list of the information it needs to create your testing site. This includes a database name, username, password, host, and table prefix.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-information-list.png\"><img decoding=\"async\" width=\"1024\" height=\"615\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-information-list-1024x615.png\" alt=\"A list of information WordPress needs to create your testing site.\" class=\"wp-image-49628\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-information-list-1024x615.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-information-list-300x180.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-information-list-150x90.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-information-list-768x461.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-information-list.png 1084w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>After you click the <strong>Let&rsquo;s<\/strong><em> <\/em><strong>Go! <\/strong>button, you&rsquo;ll need to enter your database connection details. Simply add the database name you created in phpMyAdmin. Then, enter <strong>&ldquo;root&rdquo;<\/strong> as the username, and keep the password space blank.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-password-space-blank.png\"><img decoding=\"async\" width=\"1013\" height=\"673\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-password-space-blank.png\" alt=\"Entering your database connection details and keeping the password space blank.\" class=\"wp-image-49629\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-password-space-blank.png 1013w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-password-space-blank-300x199.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-password-space-blank-150x100.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-password-space-blank-768x510.png 768w\" sizes=\"(max-width: 1013px) 100vw, 1013px\" \/><\/a><\/figure><\/div><p>For Windows and Linux users, WordPress will automatically store this information in a <strong>wp-config.php<\/strong> file. However, macOS users will be shown manual code you can use to create this file yourself.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-manual-code.png\"><img decoding=\"async\" width=\"1024\" height=\"723\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wordpress-manual-code-1024x723.png\" alt=\"WordPress giving the manual code for macOS users.\" class=\"wp-image-49631\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-manual-code-1024x723.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-manual-code-300x212.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-manual-code-150x106.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-manual-code-768x542.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wordpress-manual-code.png 1081w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><p>To do this, go to your original WordPress folder and find the <strong>wp-config-sample.php<\/strong> file. Then use a text editor such as <strong>TextEdit<\/strong> to open it.<\/p><p>Copy the code that WordPress gave you and paste it into the file. Then, rename the file to <strong>&ldquo;wp-config.php&rdquo;<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"\/uk\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wp-config-php.png\"><img decoding=\"async\" width=\"655\" height=\"421\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/03\/wp-config-php.png\" alt=\"The wp-config.php file.\" class=\"wp-image-49632\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wp-config-php.png 655w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wp-config-php-300x193.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/03\/wp-config-php-150x96.png 150w\" sizes=\"(max-width: 655px) 100vw, 655px\" \/><\/a><\/figure><\/div><p>Finally, move the file into your root directory. After you&rsquo;re finished with it, you can continue with your WordPress installation.<\/p><p>On the next page, enter the title for your testing site. Then create a username, password, and email address to l<a href=\"\/uk\/tutorials\/wordpress\/how-to-login-to-wordpress-dashboard\">og in to WordPress<\/a>. Finally, select <strong>Install WordPress<\/strong>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1.png\"><img decoding=\"async\" width=\"904\" height=\"860\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1.png\" alt=\"WordPress installation screen to insert the website information, including site title, username, and password in the second method of installation\" class=\"wp-image-72911\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1.png 904w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1-300x285.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1-150x143.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2022\/12\/WordPress-installation-screen-to-insert-the-website-information-including-site-title-username-and-password-in-the-second-method-of-installation-1-768x731.png 768w\" sizes=\"(max-width: 904px) 100vw, 904px\" \/><\/a><\/figure><\/div><p>To sign in to your local WordPress site, go to <strong>\/localhost\/mytestingsite\/wp-admin<\/strong>. Be sure to use the login credentials you just created.<\/p><p>If you encounter any connection issues, you can search the <a href=\"https:\/\/community.apachefriends.org\/f\/\" target=\"_blank\" rel=\"noopener\">Apache Friends support forum<\/a>. You can find users who went through similar problems and found solutions for them.&nbsp;<\/p><p>Alternatively, you can create a new topic if a specific error hasn&rsquo;t been discussed.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h4 class=\"title\">Pro Tip<\/h4>\n                    <p>Once you've done developing on a local WordPress site, you can migrate it to a live server so that you don't have to build from scratch again. Follow our guide on <a href=\"\/uk\/tutorials\/how-to-make-a-wordpress-site-live\">how to make a WordPress site live<\/a>.<\/p>\n                <\/div>\n\n\n<?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/uk\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/uk\/tutorials\/wp-content\/uploads\/sites\/51\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>No matter what operating system you have, you can learn to install WordPress locally.&nbsp;<\/p><p><strong>WAMP<\/strong>, <strong>MAMP<\/strong>, and <strong>XAMPP<\/strong> are free, easy-to-use local server environments that make this process simple. You can create a staging site to test software and troubleshoot WordPress performance issues with these tools.<\/p><p>To summarize, here are the best methods for locally installing WordPress.<\/p><ol class=\"wp-block-list\">\n<li><strong>WAMP<\/strong> &ndash; using this free web development environment, Windows users can get the Apache, MySQL, and PHP software needed to install a local version of a WordPress website.<\/li>\n\n\n\n<li><strong>MAMP<\/strong> &ndash; unlike WAMP, MAMP can support both the macOS and Windows operating systems.<\/li>\n\n\n\n<li><strong>XAMPP<\/strong> &ndash; this cross-platform software has a clean interface and high-level programming language that even beginners can use to create their first staging sites.<\/li>\n<\/ol><p>Do you have any questions about the steps to install WordPress locally? Ask us in the comments section below!<\/p><h2 class=\"wp-block-heading\" id=\"h-install-wordpress-locally-faq\">Install WordPress Locally FAQ<\/h2><p>After learning three methods on installing WordPress locally, the following are frequently asked questions.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1676959324598\"><h3 class=\"schema-faq-question\">What to Do if I Want My WordPress Website to Go Online?<\/h3> <p class=\"schema-faq-answer\">First, it&rsquo;s important that you have the right hosting provider. Once you&rsquo;ve chosen the appropriate web host then comes the actual installation of WordPress itself. Most hosts offer tools such as auto-installer or one-click installation for WordPress, which makes setting it up incredibly easy.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676959369552\"><h3 class=\"schema-faq-question\">What Are the Requirements to Install WordPress Offline?<\/h3> <p class=\"schema-faq-answer\">The primary requirement is to have a web server installed depending on the operating system of your computer, such as Apache, MAMP, and LAMP. You will also need to create a database to store data from WordPress, such as MySQL.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1676959396996\"><h3 class=\"schema-faq-question\">What Is the Best Way to Install WordPress?<\/h3> <p class=\"schema-faq-answer\">As there are multiple ways to install WordPress, the best option depends on your technical skill. We recommend using an auto-installer to install WordPress for beginners. However, web developers often find installing locally offers more flexibility.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Testing new themes and plugins on your live website can cause functionality issues, slow loading times, and even downtime. Without a testing site, securing and optimizing WordPress for speed becomes challenging. Therefore, knowing how to install WordPress locally is essential. Using a version of WordPress stored on your computer, you can make any changes you [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/uk\/tutorials\/install-wordpress-locally\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":76,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Install WordPress Locally on Windows, macOS, and Linux","rank_math_description":"Follow this step-by-step guide to install WordPress locally on Windows, MacOS, and Linux \u2013 from downloading to setting up on localhost.","rank_math_focus_keyword":"install wordpress locally","footnotes":""},"categories":[22633],"tags":[],"class_list":["post-49570","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/install-wordpress-locally","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/localhost-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/localhost-wordpress","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-elegir-nombre-de-dominio","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/wordpress-lokal-installieren","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/installare-wordpress-in-locale","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/wordpress-lokaal-installeren","default":0},{"locale":"ja-JP","link":"https:\/\/www.hostinger.com\/jp\/tutorials\/install-wordpress-locally\/","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/install-wordpress-locally","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/install-wordpress-locally","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/install-wordpress-locally","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/productos-para-vender-2","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/tipos-de-comercio-electronico-12","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/productos-para-vender-2","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/localhost-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/install-wordpress-locally","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/install-wordpress-locally","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/install-wordpress-locally","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/install-wordpress-locally","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/49570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/users\/76"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/comments?post=49570"}],"version-history":[{"count":20,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/49570\/revisions"}],"predecessor-version":[{"id":124656,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/posts\/49570\/revisions\/124656"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/media?parent=49570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/categories?post=49570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/uk\/tutorials\/wp-json\/wp\/v2\/tags?post=49570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}