前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Step by step to install WordPress on CentOS 7

Step by step to install WordPress on CentOS 7

作者头像
MudOnTire
发布2019-05-26 16:29:22
4590
发布2019-05-26 16:29:22
举报
文章被收录于专栏:MudOnTire

1. disable SELinux

代码语言:javascript
复制
$ setenforce 0

$ sed -i 's/enforcing/disabled/g' /etc/selinux/config

2. install required packages

代码语言:javascript
复制
$ yum install httpd php php-common php-mysqlnd php-mbstring php-gd mariadb-server mod_ssl -y

3. enable access to access web server

代码语言:javascript
复制
$ sed -i 's/AllowOverride none/AllowOverride all/g' /etc/httpd/conf/httpd.conf

4. start web server and database

代码语言:javascript
复制
$ systemctl start httpd && systemctl start mariadb

5. create mysql database and users

代码语言:javascript
复制
$ mysql
> CREATE DATABASE wordpress
> GRANT ALL PRIVILEGES ON wordpress.*TO 'wordpress'@'localhost' IDENTIFIED BY '<your password>'
> exit

6. download wordpress

代码语言:javascript
复制
$ curl -O https://wordpress.org/latest.tar.gz
$ tar zxvf latest.tar.gz
$ mkdir /var/www/html/
$ mv wordpress/* /var/www/html/

7. give priority to web server to access wordpress directory

代码语言:javascript
复制
$ chown -R apache:apache /var/www/html

8. change wordpress file access priority to 777

代码语言:javascript
复制
$ chmod -R 777 /var/www/html

9. change wordpress file access method to 'direct' in wp-config.php

代码语言:javascript
复制
define('FSMETHOD', 'direct');

8. go your domain to set things up!

DONE!

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 1. disable SELinux
  • 2. install required packages
  • 3. enable access to access web server
  • 4. start web server and database
  • 5. create mysql database and users
  • 6. download wordpress
  • 7. give priority to web server to access wordpress directory
  • 8. change wordpress file access priority to 777
  • 9. change wordpress file access method to 'direct' in wp-config.php
  • 8. go your domain to set things up!
  • DONE!
相关产品与服务
网站建设
网站建设(Website Design Service,WDS),是帮助您快速搭建企业网站的服务。通过自助模板建站工具及专业设计服务,无需了解代码技术,即可自由拖拽模块,可视化完成网站管理。全功能管理后台操作方便,一次更新,数据多端同步,省时省心。使用网站建设服务,您无需维持技术和设计师团队,即可快速实现网站上线,达到企业数字化转型的目的。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档