ubuntu
Windows&Linux下设置ngrok开机自启动
Deno 1.0
解决:关于docker闪退的问题
Windows 上的 Docker 引擎
文档管理 - 个人中心
Windows 10 安装 MySQL 8.0 指南
给Django添加Google Adsense 要求的ads.txt
docker命令
如何回滚WordPress插件(初学者版本控制) | ItBook
在Ubuntu 18.04上安装PHP 7.4
docker命令行
在PHP 7.3,Nginx,Apache,使用加密SSL,Cloud SQL(MySQL 5.7)的Google Cloud Platform上,将具有Nginx反向代理的WordPress安装到Ubuntu 18.04的Apache到Apache。
How to install mcrypt PHP module on Ubuntu 18.04 Linux
DjangoCMS手动安装
搭建Git服务器
Ubuntu Server 18.04 LTS 开机自动启动脚本 SVN自动启动 rc.local
通过禁用信号进行更快的DJANGO测试
gitBook的发布流程
ubuntu 18.04 怎么设置字体样式,调整字体大小
iptables过滤URL目标请求的小技巧
rsync复制文件的一些注意事项
如何设置crontab的时区?
本文档使用 MrDoc 发布
-
+
首页
How to install mcrypt PHP module on Ubuntu 18.04 Linux
How to install mcrypt PHP module on Ubuntu 18.04 Linux Lubos RendekSystem Administration14 November 2018 # Objective The objective is to install mcrypt PHP module on Ubuntu 18.04 Linux # Operating System and Software Versions Operating System: - Ubuntu 18.04 Linux Software: - PHP 7.2 or higher # Requirements Privileged access to your Ubuntu System as root or via sudo command is required. # Difficulty EASY # Conventions - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command $ - given linux commands to be executed as a regular non-privileged user # Instructions ## PHP installation Most likely you PHP is already installed but any attempt to install the mcrypt PHP module fails with an error message: E: Package 'php-mcrypt' has no installation candidate If this is so, simply skip this step. Alternatively, perform a basic PHP installation: $ sudo apt install php Next, check whether the mcrypt PHP module is present: $ php -m | grep mcrypt ## Install Prerequisites To install the mcrypt PHP module we first need to satisfy the following prerequisites: $ sudo apt install php-dev libmcrypt-dev php-pear SUBSCRIBE TO NEWSLETTER Subscribe to Linux Career NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials. ## Install mcrypt PHP module Now we are ready to install mcrypt PHP module on our Ubuntu 18.04 system: $ sudo pecl channel-update pecl.php.net $ sudo pecl install mcrypt-1.0.1 ... Build process completed successfully Installing '/usr/lib/php/20170718/mcrypt.so' 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 Lastly, as suggested by the compilation output we need to enable the mcrypt PHP module within appropriate php.ini file. Your configuration may be different, the below serves only as a solution to the default PHP CLI configuration. Open the /etc/php/7.2/cli/php.ini file and insert: extension=mcrypt.so Please note that if you are using Apache or Nginx web-server or another PHP version the location of the loaded php.ini file may be different. All done. When successful, checking for the presence of the mcrypt PHP module should produce the following output: $ php -m | grep mcrypt mcrypt
老糊糊
2020年6月1日 18:11
转发文档
收藏文档
上一篇
下一篇
手机扫码
复制链接
手机扫一扫转发分享
复制链接
Markdown文件
分享
链接
类型
密码
更新密码