Wordpress主题交流群:565616228 进群记得看公告!

10分钟搞定WordPress本地PHP运行环境搭建

文章目录
  1. 搭建WP运行环境
  2. 安装WordPress程序
  3. 本地数据库创建

作为站长搭建网站是我们的必修课,当然用虚拟主机去做一个网站非常方便服务商准备好的环境我们只用把网站源代码上传到指定目录,做一下域名解析就可以正常访问了。那如果是我们想事先在本地对网站程序或者模板进行调试的话,很多站长就束手无策了,毕竟在本地搭建网站运行环境没有客服的指导,而且很多参数都需要我们自己去调试和添加,今天我就教大家如何在本地快速搭建Wordpress程序的运行环境也就是PHP环境,因为WP是基于PHP开发的,这个众所周知了我就不普及常识了,今天的教程包括PHP环境和WP程序的安装还有数据库的创建,当然今天给大家介绍的phpStudy工具非常强大,可以让我们在本地实现很多功能。

localhost-wordpress-phpStudy

搭建WP运行环境

为了我们能在10分钟内搭建好本地运行环境我在这里我给大家推荐一个特别优秀的一个工具phpStudy 点击下载 这是一个php环境配置程序可以自动为我们的电脑配置好WP的运行环境,并且包含多种组合方式以及php版本切换等常用功能。

localhost-wordpress-phpStudy-tow

为什么选择phpStudy?

答:phpStudy工具更新快,功能强大目前支持php版本5.2-7.0随意切换使用,并且集成最新的Apache+Nginx+LightTPD+PHP+MySQL+phpMyAdmin+Zend Optimizer+Zend Loader,一次性安装,无须配置即可使用,是非常方便、好用的PHP调试环境。该程序绿色小巧简易迷你仅有35M,有专门的控制面板。总之大家想在本地运行网站phpStudy是个不错的选择。

上面的下在链接是2016最新版,链接的是官方的资源,请大家放心下载使用,当然直接访问该工具的官方网站进行下载安装也非常方便跟普通程序无异,期间需要大家选择以下安装目录和网站放置目录,尽量避免使用中文的目录名一般就没有任何问题。

注意:如果你要使用PHP5.5-7.0需要安装vc14运行库。官方有已经提供了完善的教程这里我就不赘述了!

安装WordPress程序

下载最新版的wp安装包 点击下载(官网资源)然后把压缩包中wordpress文件夹下面的文件全部拷贝到本地网站目录,在浏览器中输入http://localhost/进行安装,下面的步骤就跟我们在服务器上搭建网站完全相同《 wordpress安装教程视频》在安装时我们需要输入数据库信息,下面我们就一起在本地创建一个数据库。

本地数据库创建

phpStudy程序其实已经给我们安装好了mysql数据库,我们只用登陆数据库管理然后创建一个新的即可,数据库的用户名默认是:root  密码:root 这个密码属于最高权限我们可以用来登录数据库管理面板以及当作wp配置文件中的帐号密码来使用,下面是我录制的一段数据库的创建视频非常简单:

总结:到这里我们安装wordpress所需要的东西都准备齐全了,填写好wp安装时必须填写的项目保存我们一个本地网站就大家好了,只需在浏览器中输入localhost即可访问,网站的操作跟服务器上的相同,只不过只有自己可以浏览别人访问不了。有了它我们就可以在本地把网站调试好上传到服务器就可以直接上线让用户访问了非常方便。

来源:本文由晨星博客原创撰写,欢迎分享本文,转载请保留出处和链接!
评论广告

8条评论

  • Arlenelyday  回复

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil 3.0”:
    captchas breaking of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of demo videos about XEvil in YouTube.
    See you later 😉

    XRumer20170721

  • Arlenelyday  回复

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil”:
    captcha regignizing of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of demo videos about XEvil in YouTube.
    Good luck 😉

    XRumer20170721

  • Arlenelyday  回复

    Absolutely NEW update of SEO/SMM package “XRumer 16.0 + XEvil 3.0”:
    captcha solution of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another size-types of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.
    See you later 😉

    XRumer20170721

  • Arlenelyday  回复

    Revolutional update of SEO/SMM software “XRumer 16.0 + XEvil 3.0”:
    captchas recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of impessive videos about XEvil in YouTube.
    Good luck 😉

    XRumer20170721

  • Flossiedus  回复

    Revolutional update of SEO/SMM package “XRumer 16.0 + XEvil 3.0”:
    captchas recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? There are a lot of impessive videos about XEvil in YouTube.
    Good luck 😉

    XRumer20170725

  • Flossiedus  回复

    Absolutely NEW update of SEO/SMM package “XRumer 16.0 + XEvil 3.0”:
    captchas solution of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM programms: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? You can find a lot of impessive videos about XEvil in YouTube.
    See you later!

    XRumer20170725

  • Flossiedus  回复

    Revolutional update of SEO/SMM package “XRumer 16.0 + XEvil 3.0”:
    captchas solution of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another types of captchas,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other programms.

    Interested? There are a lot of impessive videos about XEvil in YouTube.
    See you later!

    XRumer20170725

  • Flossiedus  回复

    Absolutely NEW update of SEO/SMM software “XRumer 16.0 + XEvil”:
    captcha recognition of Google, Facebook, Bing, Hotmail, SolveMedia, Yandex,
    and more than 8400 another categories of captcha,
    with highest precision (80..100%) and highest speed (100 img per second).
    You can connect XEvil 3.0 to all most popular SEO/SMM software: XRumer, GSA SER, ZennoPoster, Srapebox, Senuke, and more than 100 of other software.

    Interested? There are a lot of introducing videos about XEvil in YouTube.
    Good luck 😉

    XRumer20170725

昵称*

邮箱*

网址