【昊鼎王五】在centos7基於nginx搭建WordPress服務器之PHP安裝與配置
前言:
上接https://blog.csdn.net/haoding205/article/details/100173208總綱所述,本節主要講“如何三分鐘在centos7上搭建WordPress服務器之PHP安裝與配置”
一、搭建PHP:
1、安裝前準備:
(1)校對服務器時間
(2) 配置epel源
2、安裝php:
yum install -y php php-common php-fpm php-opcache php-gd php-mysql php-mbstring php-pecl-redis php-pecl-memcached php-devel php-xcache
上面該命令即可安裝拓展:
php-api, php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif, php-fileinfo, php-filter, php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-json, php-libxml, php-openssl, php-pcre, php-pecl-Fileinfo, php-pecl-phar, php-pecl-zip, php-reflection, php-session, php-shmop, php-simplexml, php-sockets, php-spl, php-tokenizer, php-zend-abi, php-zip, php-zlib
確認是否安裝:
查看安裝的php拓展