Created
January 17, 2021 19:14
-
-
Save ozzpy/3a23c273bd552f355dc51ee8b95502b3 to your computer and use it in GitHub Desktop.
php7.4-mcrypt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
php -v | |
pecl version | |
sudo apt-get install php7.4-dev -y | |
sudo apt-get install php-pear | |
sudo apt-get -y install gcc make autoconf libc-dev pkg-config -y | |
sudo pecl channel-update pecl.php.net | |
sudo apt-get -y install libmcrypt-dev | |
sudo pecl install mcrypt-1.0.3 # 7.4 | |
# php 7.4 | |
sudo bash -c "echo extension=/usr/lib/php/20190902/mcrypt.so > /etc/php/7.4/mods-available/mcrypt.ini" | |
sudo ln -s /etc/php/7.4/mods-available/mcrypt.ini /etc/php/7.4/fpm/conf.d/20-mcrypt.ini | |
sudo ln -s /etc/php/7.4/mods-available/mcrypt.ini /etc/php/7.4/cli/conf.d/20-mcrypt.ini | |
php -i | grep mcrypt | |
################# RAPHF | |
sudo apt install php7.4-raphf | |
# OR | |
sudo pecl install raphf | |
sudo bash -c "echo extension=/usr/lib/php/20190902/raphf.so > /etc/php/7.4/mods-available/raphf.ini" | |
sudo ln -s /etc/php/7.4/mods-available/raphf.ini /etc/php/7.4/fpm/conf.d/20-raphf.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment