Skip to content

Instantly share code, notes, and snippets.

@ozzpy
Created January 17, 2021 19:14
Show Gist options
  • Save ozzpy/3a23c273bd552f355dc51ee8b95502b3 to your computer and use it in GitHub Desktop.
Save ozzpy/3a23c273bd552f355dc51ee8b95502b3 to your computer and use it in GitHub Desktop.
php7.4-mcrypt
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