CentOS Linux from scratch install WordPress

Source: Internet
Author: User
Tags install wordpress

Preface : This blog build WordPress from scratch, will take steps step by step record down. If you are also a novice, then you are blessed, because my system is CentOS, the seat.

To get your WordPress up and running, you need to install four kinds of software first.

PHP 5.6 or more

MySQL 5.5 or more

Apache

WordPress 4.3.1 (This is currently the latest version)

In addition, first solve my SSH terminal Chinese display garbled problem

(1) in SSH, Telnet terminal Chinese display garbled solution (CentOS 5.3)

#vi/etc/sysconfig/i18n
Lang= the original content "en_US. UTF-8 "
Sysfont= "Latarcyrheb-sun16"
Revision changed to
Lang= "ZH_CN. GB18030 "
Language= "Zh_CN.GB18030:zh_CN.GB2312:zh_CN"
Supported= "ZH_CN. Utf-8:zh_cn:zh:en_us. Utf-8:en_us:en "
Sysfont= "Lat0-sun16"

Disconnect, log back in, and enter the date test.

One, WordPress installation

wget https://wordpress.org/latest.tar.gz

The prompt does not have authentication, so the download fails.

wget https://wordpress.org/latest.tar.gz--no-check-certificate

With the above command, no authentication is required to download successfully.

All right, download it and let it go.

Second, install PHP

CentOS does not have the PHP component installed by default, so we need to enter the command: yum-y install PHP enter.

Without the control, the program will automatically complete the installation and configuration.

Third, install MySQL

(1) Installing MySQL

Installing MySQL under Centos 6.6 is simple,

Yum List Mysql-server

When there is only one time, you can directly

Yum Install Mysql-server

In- line installation

(2) Start MySQL service

Service mysqld Start

If MySQL starts to complete, enter MySQL and you can see the following, then enter \q to exit.

(3) How to delete msyql

Yum remove MySQL mysql-server mysql-libs compat-mysql51
Rm-rf/var/lib/mysql
Rm/etc/my.cnf
See if you have MySQL software:
Rpm-qa|grep MySQL
Some words continue to delete

IV. installation of Apache

(1) First check whether the Apache software is installed on the system (Apache software in the Linux system name is httpd)

Rpm-qa httpd

If there is a return message, it means that it is already installed. If no information is returned, the description is not installed.

(2) Installation

Yum Install Httpd-y

Use the relevant commands to query the location of the directory files where httpd and software installations have been installed

Chkconfig httpd on

Service httpd start startup software

(3) The installation is complete

CentOS Linux from scratch install WordPress

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.