PHP: Difference between revisions

From Lolly's Wiki
Jump to navigationJump to search
(Die Seite wurde neu angelegt: „Kategorie:PHP ==Install mcrypt on Ubuntu 18.04== <source lang=bash> $ sudo apt -y install gcc make autoconf libc-dev pkg-config libmcrypt-dev php7.2-dev $…“)
 
m (Text replacement - "</source" to "</syntaxhighlight")
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Kategorie:PHP]]
[[Category:PHP]]
==Install mcrypt on Ubuntu 18.04==
==Install mcrypt on Ubuntu 18.04==
<source lang=bash>
<syntaxhighlight lang=bash>
$ sudo apt -y install gcc make autoconf libc-dev pkg-config libmcrypt-dev php7.2-dev
$ sudo apt -y install gcc make autoconf libc-dev pkg-config libmcrypt-dev php7.2-dev
$ sudo pecl install --nodeps mcrypt-snapshot
$ sudo pecl install --nodeps mcrypt-snapshot
</source>
</syntaxhighlight>


<source lang=bash>
<syntaxhighlight lang=bash>
$ echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/fpm/php.ini
$ echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/fpm/php.ini
$ php-fpm7.2 -i | grep mc
$ php-fpm7.2 -i | grep mc
Line 15: Line 15:
mcrypt.algorithms_dir => no value => no value
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value
mcrypt.modes_dir => no value => no value
</source>
</syntaxhighlight>

Latest revision as of 23:56, 25 November 2021

Install mcrypt on Ubuntu 18.04

$ sudo apt -y install gcc make autoconf libc-dev pkg-config libmcrypt-dev php7.2-dev
$ sudo pecl install --nodeps mcrypt-snapshot
$ echo "extension=mcrypt.so" | sudo tee -a /etc/php/7.2/fpm/php.ini
$ php-fpm7.2 -i | grep mc
Registered Stream Filters => zlib.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk, mcrypt.*, mdecrypt.*, bzip2.*, convert.iconv.*
mcrypt
mcrypt support => enabled
mcrypt_filter support => enabled
mcrypt.algorithms_dir => no value => no value
mcrypt.modes_dir => no value => no value