Install WordPress on Centos

本文涉及的产品
云数据库 RDS MySQL Serverless,0.5-2RCU 50GB
云数据库 RDS MySQL Serverless,价值2615元额度,1个月
简介: Before beginning, a domain, an ESC or a VPS is needed. Once the ECS or the VPS and the domain are prepared, the following procedures can be conducted.

Before beginning, a domain, an ESC or a VPS are needed. Once the ECS or the VPS and the domain are prepared, the following procedures can be conducted.

Detailed steps are as followings:

·        Install LAMP services (Linux, Apache, MySQL, PHP).

input these commands:

1. Install Apache, MySQL, and PHP

yum -y install httpd mysql mysql-server php php-mysql php-gd php-xml

2. Set up httpd and mysqld to start with system

systemctl enable httpd.service

“””

·        Updated on 7.26.2018 mysqld.service failed to start.

yum install mariadb-server mariadb -y

systemctl start mariadb.service

systemctl enable mariadb.service

 

·        Updated on 3.2.2019 Applying php7x, old method no longer used.

Install mariadb

yum install mariadb-server mariadb -y

systemctl start mariadb.service

systemctl enable mariadb.service

 

 

·        Install apache:

yum -y install httpd

systemctl start httpd.service

systemctl enable httpd.service

 

·        Install php:

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y

yum install yum-utils -y

yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm -y

yum-config-manager --enable remi-php72

yum -y install php7.2 php7.2-cli php7.2-fpm php7.2-gd php7.2-json php7.2-mysql

 

yum -y install php72 php72-php-fpm php72-php-mysqlnd php72-php-opcache php72-php-xml php72-php-xmlrpc php72-php-gd php72-php-mbstring php72-php-json

systemctl restart httpd.service

 

·        Test:

vim /var/www/html/info.php

<?php

phpinfo();

?>

http://192.168.1.100/info.php

 

“””

·        Start services

systemctl restart httpd.service
systemctl restart mariadb.service

Set up MySQL

mysql_secure_installation
Set root password? [Y/n] // (Y)
Remove anonymous users? [Y/n] // (Y)
Disallow root login remotely? [Y/n] //(n)
Remove test database and access to it? [Y/n] //(Y)
Reload privilege tables now? [Y/n] //(Y)
login MySQL: mysql -u root -p  (the password is empty, just press enter)

mysql> create database wordpress; //create a database and name it as ‘wordpress’

 

·        Getting MySQL Support In PHP

yum -y install php-mysql

yum -y install php-gd php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-soap curl curl-devel

systemctl restart httpd.service

 

·        Install phpMyAdmin

sudo yum install phpMyAdmin -y

vim /etc/httpd/conf.d/phpMyAdmin.conf

 

php not decoding .php

yum install httpd
yum install httpd-devel

yum install php php-pear

 

·        Install WordPress

wget http://wordpress.org/latest.zip 
unzip latest.zip 
cp -r wordpress/* /var/www/html/

cd /var/www/html/
cp wp-config-sample.php wp-config.php
vim wp-config.php

 

Press ‘i’ to write, insert database name, user name and user password. Others remain the same.

Press ‘Esc’ to exit writing mode. Double press ‘Shift’ + ‘z’ to exit the file.

Then, go to your domain to finish WordPress set up.

I used Wanwang to register a domain and Aliyun to set up an ECS. The discounts for students and Double 11th are very attractive. As for the other services in its store, I have not used them yet.

相关实践学习
基于CentOS快速搭建LAMP环境
本教程介绍如何搭建LAMP环境,其中LAMP分别代表Linux、Apache、MySQL和PHP。
全面了解阿里云能为你做什么
阿里云在全球各地部署高效节能的绿色数据中心,利用清洁计算为万物互联的新世界提供源源不断的能源动力,目前开服的区域包括中国(华北、华东、华南、香港)、新加坡、美国(美东、美西)、欧洲、中东、澳大利亚、日本。目前阿里云的产品涵盖弹性计算、数据库、存储与CDN、分析与搜索、云通信、网络、管理与监控、应用服务、互联网中间件、移动服务、视频服务等。通过本课程,来了解阿里云能够为你的业务带来哪些帮助 &nbsp; &nbsp; 相关的阿里云产品:云服务器ECS 云服务器 ECS(Elastic Compute Service)是一种弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率,使您更专注于核心业务创新。产品详情: https://www.aliyun.com/product/ecs
目录
相关文章
|
6月前
|
弹性计算 Linux 应用服务中间件
手动搭建WordPress(CentOS 8)
WordPress是使用PHP语言开发的博客平台,在支持PHP和MySQL数据库的服务器上,您可以用WordPress架设自己的网站,也可以用作内容管理系统(CMS)。本教程介绍如何在Linux操作系统的ECS实例上搭建WordPress网站。
3962 6
|
8月前
|
关系型数据库 MySQL 应用服务中间件
手动搭建WordPress(CentOS 8)
本场景带您体验如何在CentOS 8.5 64位操作系统的云服务器上搭建并使用WordPress。
320 0
|
Linux 数据库
有域名了第一步,阿里云centos宝塔面板安装WordPress个人博客
有域名了第一步,阿里云centos宝塔面板安装WordPress个人博客
有域名了第一步,阿里云centos宝塔面板安装WordPress个人博客
|
域名解析 弹性计算 关系型数据库
使用阿里云服务器手动搭建Wordpress(基于CentOS 7)
使用阿里云服务器手动搭建Wordpress(基于CentOS 7)
682 0
使用阿里云服务器手动搭建Wordpress(基于CentOS 7)
|
弹性计算 关系型数据库 MySQL
基于 ECS+ CentOS,部署 LAMP环境并安装 WordPress 快速搭建个人博客
基于 ECS+ CentOS,部署 LAMP环境并安装 WordPress 快速搭建个人博客
382 0
|
关系型数据库 MySQL 应用服务中间件
CentOS7.2基于LNMP+WordPress离线安装
CentOS7.2基于LNMP+WordPress离线安装
920 0
CentOS7.2基于LNMP+WordPress离线安装
|
Linux Docker 容器
|
网络协议 关系型数据库 MySQL
centos 7 搭建wordpress 网站详细教程
centos 7 搭建wordpress 网站详细教程
11163 1
|
Linux
Centos下pip3 install pycrypto安装失败的解决办法
Centos下pip3 install pycrypto安装失败的解决办法
1489 0
Centos下pip3 install pycrypto安装失败的解决办法
|
域名解析 弹性计算 关系型数据库
CentOS 上搭建 WordPress 网站
WordPress是使用PHP语言开发的博客平台,在支持PHP和MySQL数据库的服务器上,您可以用WordPress架设自己的网站,也可以用作内容管理系统(CMS)。本文主要为大家介绍如何在CentOS系统的ECS实例上搭建WordPress网站。
2444 0
CentOS 上搭建 WordPress 网站

热门文章

最新文章