在CentOS上安装Wordpress全记录
2018-09-10 本文已影响0人
X_Mingest
Apache
安装
sudo yum install httpd
sudo systemctl enable --now httpd.service
MariaDB
安装
sudo yum install mariadb-server
sudo systemctl enable --now mariadb.service
mysql_secure_installation
配置wordpress数据库
首先使用mysql -u root -p输入之前设置的密码,之后在mariadb终端中使用create database wordpress创建数据库
PHP
安装
sudo yum install php php-mysql
可选组件极其描述与翻译如下
| 组件 | 描述 |
|---|---|
| php-bcmath | A module for PHP applications for using the bcmath library |
| php-dba | A database abstraction layer module for PHP applications |
| php-embedded | PHP library for embedding in applications |
| php-enchant | Enchant spelling extension for PHP applications |
| php-fpm | PHP FastCGI Process Manager |
| php-gd | A module for PHP applications for using the gd graphics library |
| php-intl | Internationalization extension for PHP applications |
| php-ldap | A module for PHP applications that use LDAP |
| php-mbstring | A module for PHP applications which need multi-byte string handling |
| php-mysql | A module for PHP applications that use MySQL databases |
| php-mysqlnd | A module for PHP applications that use MySQL databases |
| php-odbc | A module for PHP applications that use ODBC databases |
| php-pear | PHP Extension and Application Repository framework |
| php-pecl-memcache | Extension to work with the Memcached caching daemon |
| php-pgsql | A PostgreSQL database module for PHP |
| php-process | Modules for PHP script using system process interfaces |
| php-pspell | A module for PHP applications for using pspell interfaces |
| php-recode | A module for PHP applications for using the recode library |
| php-snmp | A module for PHP applications that query SNMP-managed devices |
| php-soap | A module for PHP applications that use the SOAP protocol |
| php-xml | A module for PHP applications which use XML |
| php-xmlrpc | A module for PHP applications which use the XML-RPC protocol |
wordpress
安装
wget $(curl -fsSL https://cn.wordpress.org/download/ | grep -o https://cn.wordpress.org/wordpress-[0-9.]*-zh_CN.tar.gz)
tar -xzvf ${filename}
sudo cp -vrf wordpress/* /var/www/html
sudo systemctl restart httpd.service
之后访问127.0.0.1就会进入wordpress的安装配置向导