4,500
edits
add php7.2 |
→Installing mcrypt on PHP 7.2: complete procedure |
||
Line 114: | Line 114: | ||
configuration option "php_ini" is not set to php.ini location | configuration option "php_ini" is not set to php.ini location | ||
You should add "extension=mcrypt.so" to php.ini | You should add "extension=mcrypt.so" to php.ini | ||
</source> | |||
# create a <code>/etc/php/7.2/mods-available/mcrypt.ini</code> <source lang="ini"> | |||
; configuration for php mcrypt module | |||
; priority=20 | |||
extension=mcrypt.so | |||
</source> | |||
# create a symlink for mcrypt under fpm <source lang="console"> | |||
root@hydrogen:/etc/php/7.2# cd fpm/conf.d | |||
root@hydrogen:/etc/php/7.2/fpm/conf.d# ln -s ../../mods-available/mcrypt.ini 20-mcrypt.ini | |||
</source> | |||
# restart fpm service <source lang="console"> | |||
root@hydrogen:/etc/php/7.2/fpm/conf.d# systemctl restart php7.2-fpm.service | |||
</source> | </source> |