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. cmd运行jar

    https://blog.csdn.net/lemon_tree12138/article/details/44081909 https://www.cnblogs.com/LanTianYou/p/ ...

  2. SQL-索引-012

    什么是索引?

  3. 2018-2019-2 20165212《网络对抗技术》Exp2 后门原理与实践

    2018-2019-2 20165212<网络对抗技术>Exp2 后门原理与实践 1.实验内容 (1)使用netcat获取主机操作Shell,cron启动 (2)使用socat获取主机操作 ...

  4. LG1337 [JSOI2004]平衡点 / 吊打XXX

    题意 题目描述 如图:有n个重物,每个重物系在一条足够长的绳子上.每条绳子自上而下穿过桌面上的洞,然后系在一起.图中X处就是公共的绳结.假设绳子是完全弹性的(不会造成能量损失),桌子足够高(因而重物不 ...

  5. Python服务Dokcer化并k8s部署实例

    这篇文章记录了我试验将一个基于python的服务docker化并k8s部署的过程. 服务介绍Docker化设计业务代码改造创建docker镜像K8S部署设计yaml文件运行服务介绍这是一个用 pyth ...

  6. Nginx网站实现ssl安全套接字

    nginx.conf配置 server { listen 443 ssl; server_name www.example.com; ssl on; ssl_certificate cert.pem; ...

  7. mongodb集群配置副本集

    测试环境 操作系统:CentOS 7.2 最小化安装 主服务器IP地址:192.168.197.21 mongo01 从服务器IP地址:192.168.197.22 mongo02 从服务器IP地址: ...

  8. SQL查数据库有哪些触发器,存储过程...

    select name from sysobjects where xtype='TR' --所有触发器select name from sysobjects where xtype='P' --所有 ...

  9. 三元运算&匿名函数lambda

    lambda # 语法: # 参数 : 返回值 # 1.不带参数的lambda表达式 def func(): return '开挂的人生不需要解释' func = lambda : '开挂的人上不需要 ...

  10. Master公式计算递归时间复杂度

    我们在算递归算法的时间复杂度时,Master定理为我们提供了很强大的便利! Master公式在我们的面试编程算法中除了BFPRT算法的复杂度计算不了之外,其他都可以准确计算! 这里用求数组最大值的递归 ...