1 – Install Apache Http Server
# yum install httpd.x86_64

2 – Install php
# yum install php.x86_64

3 – Modify file /etc/httpd/conf/httpd.conf, add php mime type for mime_module.
<IfModule mime_module>
AddType application/x-httpd-php .php
</IfModule>

4 – Download WordPress and place it on /var/www/html/, the default document root directory.
$ tar -xvf wordpress-4.9.4-zh_CN.tar.gz
# cp -r wordpress/ /var/www/html/

5 – Install mysql extension module for php
# yum install php-mysql.x86_64

6 – Create database for WordPress
> CREATE DATABASE wordpress;

7 – Startup apache, visit WordPress and config infos for WordPress
a) I will input the info about mysql database follow tips.
You also can create a config file name wp-config.php, it’s sample file is wp-config-sample.php.
b) Input basic info for WordPress
note: If you can not visit the website, check the database info, firewall config and selinux config.

Install_WordPress_In_CentOS_7的更多相关文章

随机推荐

  1. poj 3264 倍增 ST表

    #include<iostream> #include<cmath> using namespace std; ; int a[maxn]; ]; ]; int quick(i ...

  2. java.io.EOFException ValueOperations.increment()操作后,获取值时有的bug

    ---恢复内容开始--- 今天使用spring-data-redis包操作redis,就是简单的使用redis的计数功能,在redis中的操作命令如:incr key;get key; 这两步操作使用 ...

  3. C++对象的构造、析构与拷贝构造

    今天下午在研究虚函数的时候遇到了一个问题,觉得很有意思,记录一下. 先看代码: class Base { public: Base(int value) { m_nValue = value; cou ...

  4. 一篇讲解如何调试pg 扩展的文章

    以下链接这片关于pg 扩展调试的文章挺不错,记录下 http://big-elephants.com/2015-10/writing-postgres-extensions-part-iii/     ...

  5. 从gitlab或者github采用git clone和download zip的区别

    不要做伸手党啊大兄弟,这种问题自己稍加理解就知道答案了,实在想不到就上谷歌搜一下嘛,比如这个:git - Github: difference between Clone in desktop and ...

  6. Spark性能优化指南——高级篇

    本文转载自:https://tech.meituan.com/spark-tuning-pro.html 美团技术点评团队) Spark性能优化指南——高级篇 李雪蕤 ·2016-05-12 14:4 ...

  7. DevExpress破解和消除弹出框问题

    在解决方案管理器列表中找到 license.licx 设置属性 将[生成操作]选项改为[无]

  8. XShell停止滚屏,禁止滚动

     Ctrl+S:锁定当前屏幕  Ctrl+Q:解锁当前屏幕 Ctrl+Alt+]  进入命令输入状态

  9. centos7如何使用yum命令

    参照https://www.cnblogs.com/zhongguiyao/p/9029922.html 参照https://blog.csdn.net/shuaigexiaobo/article/d ...

  10. C#获取当前路径的七种方法

    //1.获取模块的完整路径. string path1 = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName; // ...