How To Install WordPress Offline

WordHerd | 9 月 29, 2015 | 4分钟阅读
分享这篇文章

This text explains how and why you must set up WordPress in your pc.

An offline model of WordPress is one the place WordPress is put in regionally in your pc. With a purpose to do that you’ll want to flip your pc into an area server. As soon as that’s accomplished you possibly can then set up WordPress on your own home pc. Earlier than I get into how to do that I need to briefly undergo the three major benefits for putting in WordPress regionally in your pc.

The primary and largest benefit is that you’re not engaged on a stay web site. This implies you possibly can set up plugins, customise your themes and do nearly anything to your website assured within the information that if it goes improper there isn’t any influence in your reside web site.

The second benefit is it hurries up your web site improvement. It’s all the time quicker to work on the native server than in your net host’s servers. It’s because you’ll expertise a little bit of latency whenever you work instantly together with your net host’s servers.

Lastly the third benefit is that you could take your WordPress backups and see if they’re working by testing them out in your native set up of WordPress.

To show your pc into an area server requires Apache, MySQL, and PHP. Putting in these server packages individually could be tough however fortuitously for us there are two free packages that may set up and handle all this for us. For Home windows computer systems there’s XAMPP and for the Mac there’s MAMP. Though XAMPP can work on a Mac MAMP is extra secure on it.

I exploit XAMPP on a Home windows 7 pc so that’s the program I’ll use for this tutorial.

With a purpose to set up WordPress in your pc 5 steps have to be taken.

1. Set up an area server:

  • Obtain the newest model of XAMPP from apachefriends.org/en/xampp.html
  • Through the set up tick the field to create an XAMPP desktop icon and do not change the default set up folder which would be the root of your arduous drive (C:xampp).

2. Create a brand new database and Consumer:

To create a brand new database full the next steps:

  • Open up the XAMPP Management Panel by means of the XAMPP desktop shortcut.
  • Begin the Apache and MySQL providers.
  • Open your browser and sort within the tackle bar ” localhost/phpmyadmin/” (with out the quotes).
  • In phpMyAdmin sort in a database identify and click on the “Create” button.
  • Write the database identify someplace as a result of we’ll be utilizing it afterward.

You now have to create a Consumer for the database by doing the next:

  • Whereas nonetheless in phpMyAdmin click on on the “Privileges” tab then click on on “Add a brand new Consumer”.
  • Enter info within the “Consumer identify “and “Password” fields. For Host choose “Native”.
  • Write the Consumer identify and password someplace as a result of we’ll be utilizing them afterward.
  • In “International Privileges” click on on “Verify All” then click on the” Go ” button on the underside.
  • In “Database-specific privileges”, within the “Add privileges on the next database” subject, choose the database identify you created beforehand.

three. Obtain WordPress:

  • Obtain the newest model of WordPress from wordpress.org/obtain/
  • Extract the WordPress zip file you downloaded to C:xampphtdocs

four. Configure WordPress together with your MySQL database info:

Go to C:xampphtdocswordpress

Open up wp-config-sample.php with a textual content editor and edit the next space with the database particulars from step 2:

/** The identify of the database for WordPress */

outline(‘DB_NAME’, ‘wordpress_db’);

/** MySQL database username */

outline(‘DB_USER’, ‘wordpress_user’);

/** MySQL database password */

outline(‘DB_PASSWORD’, ‘typeyourpasswordhere’);

As soon as the modifying is completed save the file as wp-config.php in the identical folder.

5. Set up WordPress:

To finish the set up of WordPress make it possible for the Apache and MySQL providers are nonetheless operating then open up your browser and sort within the tackle bar:

localhost/wordpress/wp-admin/set up.php

This can begin the WordPress set up course of.

Following the directions and filling within the fields should not take greater than 5 minutes.

After finishing this you need to now have WordPress put in in your pc.

Simply keep in mind that everytime you need to run WordPress it’s a must to just remember to begin the Apache and MySQL providers. The providers could be began and stopped from the XAMPP Management Panel desktop shortcut.

Good luck!

阅读完整文章 >

阅读更多来自这位作者的作品

关键词:WordPress

准备好迁移您的网站了吗?

首先进行免费的无义务网站评估。我们将对您的项目进行评估,推荐合适的平台,并为您提供明确的报价。

保证零数据丢失
完整 SEO 保留与重定向映射
准时且按预算交付
专业化的平台专家,而非泛泛的专家

请告诉我们您的网站信息

"*"*” 表示必填字段

此字段用于验证目的,不应更改。
姓名*