操作系统选择为Centra OS x64
1. 安装Apache httpd 服务
1.1 yum -y installl httpd
1.2. yum install httpd-manual mod_ssl mod_perl mod_auth_mysql
1.3.service httpd start
1.4. chkconfig httpd on
2. 安装mysql 数据库
2.1 yum -y install mysql mysql-server
2.2 service mysqld start
2.3 mysql_secure_installation
2.4 mysql -uroot -p ***
2.5 chkconfig mysqld on
3. 安装php 开发环境
3.1 yum -y install php php-mysql
3.2 yum -y install gd php-gd gd-devel php-xml php-common php-mbstring php-ldap php-pear php-xmlrpc php-imap
3.3 service httpd restart
3.4 echo “<?php phpinfo(); ?>” > /var/www/html/phpinfo.php
4. 安装wordpress 并配置mysql
https://cn.wordpress.org
4.1 wget https://cn.wordpress.org/wordpress-4.7.4-zh_CN.tar.gz
4.2 tar -zxvf wordpress-4.7.4-zh_CN.tar.gz
4.3 cd wordpress
4.4 cp wp-config-sample.php wp-config.php
4.5 vim wp-config.php
4.6 mkdir /var/www/html/blog
4.7 mv ./* /var/www/html/blog/
浏览即可
原文链接:https://www.cnblogs.com/lvdongjie/p/11211810.html