PHP7.3 yum安裝@Centos 7
發(fā)布者:itgeeker2019-01-08于PHP7.3 yum安裝@Centos 7留下評(píng)論
使用remi的源來安裝,首先添加源:
yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
然后安裝你想要的模塊:
yum --enablerepo=remi install php73-php php73-php-pear php73-php-bcmath php73-php-pecl-jsond-devel php73-php-mysqlnd php73-php-gd php73-php-common php73-php-fpm php73-php-intl php73-php-cli php73-php php73-php-xml php73-php-opcache php73-php-pecl-apcu php73-php-pdo php73-php-gmp php73-php-process php73-php-pecl-imagick php73-php-devel php73-php-mbstring php73-php-zip php73-php-ldap php73-php-imap php73-php-pecl-mcrypt
運(yùn)行并查看版本捶索, 重啟命令意鲸, 添加自動(dòng)啟動(dòng)催植,鏈接php文件
php73 -v
systemctl restart php73-php-fpm
systemctl enable php73-php-fpm
ln -s /opt/remi/php73/root/usr/bin/php /usr/bin/php
一些配置文件的路徑:
# The current PHP memory limit is below the recommended value of 512MB.
vi /etc/opt/remi/php73/php.ini
memory_limit = 512M
#如果你運(yùn)行的是nginx而不是apache,修改
vi /etc/opt/remi/php73/php-fpm.d/www.conf
user = apache
group = apache
# Replace the values with
user = nginx
group = nginx
卸載所有php7.3
yum remove php73-php*
注意:如果使用nextcloud 14或15版本,remi的此php7.3版本會(huì)引起鎖定在無限登錄界面(?
looping on the login page )