Install WordPress on Centos
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();
?>
“””
· 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.

低调大师中文资讯倾力打造互联网数据资讯、行业资源、电子商务、移动互联网、网络营销平台。
持续更新报道IT业界、互联网、市场资讯、驱动更新,是最及时权威的产业资讯及硬件资讯报道平台。
转载内容版权归作者及来源网站所有,本站原创内容转载请注明来源。
- 上一篇
Weblogic 11g集群中的服务器在启动中出现BEA-000109错误
错误描述 安装完成weblogic集群启动集群节点的时候报如下错误: <BEA-000109><Anerroroccurredwhilesendingmulticastmessage:java.io.IOException:Invalidargument java.io.IOException:Invalidargument异常,无法启动。 ``` 解决办法 在weblogic 域配置文件中 setDomainEnv.sh,在JAVA_OPTION 节加入: -Djava.net.preferIPv4Stack=true。
- 下一篇
如何学习JavaEE,项目又该如何做?
如何学习JavaEE,项目又该如何做? 本文主要分为三个部分: 如何学习java基础 如何学习javaEE 你关心的项目问题 01 java基础学习 建议初学者看视频学习,不推荐看书。入门视频选择非常重要,最好是通俗易懂、深入浅出的教学视频。如果入门视频选的不好,不知所云,容易产生厌倦心理:“从入门到放弃”。关于java书籍,前期的学习个人不推荐直接看书:书本较为枯燥、不直观、容易分心、可能坚持不下来。 02 javaEE入门学习 上面的基础部分的学习主要是为后阶段打好基础。javaEE是java开发学习路上举足轻重的一员,那么javaEE该如何学习呢?框架那么多,该学哪些呢?从哪个框架开始学习呢?从博主以及身边同学的面试来看,javaEE主要需要掌握以下几个部分:servlet、jsp、hibernate、mybatis、springMvc、spring,有余力的同学可以学习spring boot,它是轻量级的spring,互联网公司使用较多,学完spring之后,学习spring boot就很简单了。框架学习顺序,在整理的资料中有写。 servlet和jsp属于基础,高层框架都是建...
相关文章
文章评论
共有0条评论来说两句吧...
文章二维码
点击排行
推荐阅读
最新文章
- Linux系统CentOS6、CentOS7手动修改IP地址
- CentOS关闭SELinux安全模块
- CentOS8安装Docker,最新的服务器搭配容器使用
- SpringBoot2编写第一个Controller,响应你的http请求并返回结果
- Hadoop3单机部署,实现最简伪集群
- SpringBoot2初体验,简单认识spring boot2并且搭建基础工程
- Eclipse初始化配置,告别卡顿、闪退、编译时间过长
- Springboot2将连接池hikari替换为druid,体验最强大的数据库连接池
- Windows10,CentOS7,CentOS8安装Nodejs环境
- 设置Eclipse缩进为4个空格,增强代码规范