Localhost/wordpress/wp

     

Installing WordPress on your computer helps you try out WordPress, kiểm tra themes & plugins, and learn WordPress development.

In this article, we will show you how khổng lồ easily create a local WordPress site Using XAMPP..

*

Why Create a Local WordPress Site?

Creating local WordPress sites is a comtháng practice among muốn developers & site owners. It allows you to lớn demo WordPress without creating an actual trang web on the internet.

Local websites are only visible to you on your computer. You can try different WordPress themes và plugins, test their features, & learn the WordPress basics.

If you already have a WordPress trang web, then you can create a local copy of your website on your computer to try out new plugin updates before implementing them on your live website.

Important: Local trang web will only be visible khổng lồ you on your computer. If you want khổng lồ make a live trang web, then you’ll need a domain name name and WordPress hosting.

Follow the step by step instructions in our how khổng lồ start a WordPress blog guide when you are ready khổng lồ create a live sầu website.

Having said that, let’s kiểm tra out how to lớn install WordPress locally on Windows, Mac, or Linux using XAMPP.

What is XAMPP?

XAMPPhường is a software package that includes all things you need khổng lồ phối up a local hệ thống environment on your computer.

In order lớn create a local WordPress site, you need khổng lồ set up a web hệ thống software (Apache), PHPhường, và MySquốc lộ on your computer.

PHP is a programming language và MySQL is a database management software. Both of them are required to run WordPress.

Installing each of them separately is quite difficult for beginners. This is where XAMPP comes in.

XAMPPhường makes it easy for you to build WordPress websites locally. It is available for Windows, Mac, & Linux based computers.

Let’s get started by installing XAMPP. & setting it up lớn run your local WordPress site.

Installing XAMPP.. on Your Computer

First, you need to lớn visit the XAMPP website và cliông xã on the download button for your operating system.

*

Depending on your operating system, your installation wizard and the application interface may differ from the screenshots here. For the sake of this article, we’ll show you the Windows version of the software.

After downloading XAMPP, you will need to lớn cliông xã and run the installer.

*

XAMPPhường will ask where to install the software and which packages you’d lượt thích lớn install. The mặc định settings will work for most users. Keep clicking on the ‘Next’ button khổng lồ finish the thiết lập wizard.

After finishing the wizard, kiểm tra the ‘start the control panel now’ option & then cliông xã on the finish button.

*

This will launch the XAMPPhường control panel tiện ích.

Using the XAMPP.. phầm mềm, you can run Apabít website VPS as your local server and MySquốc lộ as your database server. Go ahead & cliông chồng on the start button next to both Apađậy và MySquốc lộ.

*

XAMPP will now start Apabít & MySQL. You may see a Windows firewall notification, it is important that you cliông xã on the ‘Allow Access’ button for both applications lớn run on your computer.

*

Once both applications are started their names will be highlighted in Green.

Now you are ready khổng lồ create a local trang web and install WordPress using XAMPPhường.

Creating a Local WordPress Site with XAMPP

First, you will need to lớn download WordPress. Visit the WordPress.org trang web and cliông chồng on the ‘Download WordPress’ button.

*

After downloading WordPress, you need lớn extract the zip tệp tin, & you will see a wordpress thư mục. You need khổng lồ copy this folder.

Bạn đang xem: Localhost/wordpress/wp

*

Next, head over to lớn your XAMPP installation thư mục.

On Windows it would be C:/Program Files/XAMPP/htdocs or C:/Xampp/htdocs thư mục.

On Mac, it will be /Applications/XAMPP/htdocs thư mục.

Paste the wordpress folder you copied earlier inside htdocs.

We recommover renaming the wordpress thư mục to websites or anything else. This will help you easily identify your local site.

*

Next, you need khổng lồ open your favorite web browser and enter the following URL in your browser’s address bar.

https://localhost/website1/

If you renamed the WordPress thư mục something else, then replace website1 with your own thư mục name.

This will load the WordPress installation wizard and you’ll be asked to lớn select a language. After selecting a language, click on the ‘Continue’ button.

*

On the next screen, you will see a notice that WordPress needs a database name, database username, password, and host information.

*

Let’s create a database for your WordPress site.

You’ll need lớn open a new browser tab and visit https://localhost/phpmyadmin/.

This will launch the phpMyAdmin app that comes pre-installed with XAMPPhường. It allows you to easily manage your databases using a simpler interface.

You would need lớn cliông xã on Databases, và provide a name for your new database. After that, click on the ‘Create’ button to lớn continue.

*

Now that you have sầu created a database, you can use it for your WordPress site.

Switch baông chồng khổng lồ /localhost/website1/ browser tab and cliông chồng on the ‘Let’s Go’ button.

On the next screen, you will be asked to provide your WordPress database information.

Enter the database name you created earlier. Your username is ‘root’ & you should leave sầu the password field blank. For the database host field, you need lớn use localhost.

*

Once you are done, cliông xã on the ‘Submit’ button khổng lồ continue.

If you are on Windows or Linux, WordPress will now store these settings in your WordPress configuration tệp tin called wp-config.php tệp tin.

However, if you are on Mac, then it will show you the contents of the tệp tin & will ask you lớn create it.

You will need to create this tệp tin in your website’s root folder.

After creating the file, paste the text you copied earlier inside it. Next, you need lớn save the tệp tin and return baông chồng to WordPress installer to continue.

In the next step, WordPress will ask you to provide information about your trang web. First, enter the title you want lớn use for this site.

After that, you need lớn enter a username, password, và gmail address for your admin account.

*

Once you have filled all the information, cliông chồng on the ‘Install WordPress’ button to continue.

WordPress will now run the installation & prompt you to lớn log in once it’s done.

You can login khổng lồ your website by going khổng lồ /localhost/website1/wp-admin page & use the username / password that you entered during installation khổng lồ login.

*

Things khổng lồ Try After Creating a Local WordPress Site

Now that you have created your local WordPress site using XAMPP.., you can work on it like you would vì on a live sầu WordPress site.

Head over to Appearance thực đơn in WordPress admin sidebar, lớn customize your site’s appearance or install a new theme.

Here are some great không lấy phí themes that you can try.

The next thing you would want to lớn try is WordPress plugins.

Plugins are like apps for your WordPress site and allow you to add cool features like contact form, social truyền thông buttons, eCommerce store, etc.

Need help installing plugins? See our step by step guide on how lớn install a WordPress plugin.

Xem thêm: 8 Cách Khắc Phục Lỗi 504 Gateway Time-Out, Cách Khắc Phục Lỗi 504 Gateway Time

Bonus: Moving Local WordPress Site to lớn Live sầu Server

After working on your local WordPress site you may want khổng lồ move sầu it lớn a live sầu hệ thống to make your first WordPress blog or trang web.

To do that you’ll need a domain name and website hosting account. Normally, a tên miền name costs $14.99 and website hosting start from $7.99 per month.

That’s too much if you are just starting out.

Luckily, Bluehost is offering jdomain.vn users a free domain name with generous discount on hosting. Basically, you can get started for $2.75 per month.

→ Click Here to lớn Clayên ổn This Exclusive sầu Bluehost Offer ←

For more hosting recommendations, take a look at our complete WordPress hosting guide.

Once you have sầu signed up for hosting, you can follow our step by step guide on how to move sầu WordPress from local hệ thống khổng lồ live sầu site.

We hope this article helped you learn how to lớn create a local WordPress site using XAMPPhường. You may also want khổng lồ look at alternate ways khổng lồ create local WordPress sites on Windows using WampVPS, & on Mac using MAMPhường.

If you liked this article, then please subscribe to our YouTube Channel for WordPress đoạn Clip tutorials. You can also find us on Twitter & Facebook.


Chuyên mục: Domain Hosting