php-7.2.13的安装,php7.2 安装mcrypt扩展
pecl
apt-get install php-pecl
2.相關擴展
apt-get install libmcrypt-dev libreadline-dev
3.mcrypt
pecl install mcrypt-1.0.1
執行完會看到以下信息。
...
Build process completed successfully
Installing ‘/usr/lib/php/20170718/mcrypt.so‘ ----> this is our path to mcrypt extension lib
install ok: channel://pecl.php.net/mcrypt-1.0.1
configuration option "php_ini" is not set to php.ini location
You should add "extension=mcrypt.so" to php.ini
4.mcrypt.so擴展名添加到php.ini中
在ln -s軟連接到cli和 (fpm or apache2 )
/etc/php/7.2/mods-available (php.ini)
/etc/php/7.2/cli/conf.d/ (cli)
/etc/php/7.2/fpm/conf.d/ (fpm)
/etc/php/7.2/apache2/conf.d/ (apache2)
5.重啟php-fpm,再次查看已經安裝成功
php -i | grep mcrypt
php -m | grep mcrypt
原文:http://blog.51cto.com/jinchen/2141477
總結
以上是生活随笔為你收集整理的php-7.2.13的安装,php7.2 安装mcrypt扩展的全部內容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 导入表格只有一行 帆软_万万没想到!把x
- 下一篇: vs2019Linux守护,Visual
