美文网首页
在CentOS上安装Wordpress全记录

在CentOS上安装Wordpress全记录

作者: X_Mingest | 来源:发表于2018-09-10 12:46 被阅读0次

    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的安装配置向导

    相关文章

      网友评论

          本文标题:在CentOS上安装Wordpress全记录

          本文链接:https://www.haomeiwen.com/subject/qehsgftx.html