PHP: Difference between revisions

Jump to navigation Jump to search
505 bytes added ,  24 April 2018
add php7.2
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>

Navigation menu