Skip to content

Instantly share code, notes, and snippets.

@ademalp
Created January 30, 2023 07:59
Show Gist options
  • Save ademalp/832e48fb9bbf6ad5aa71cb3b28107d72 to your computer and use it in GitHub Desktop.
Save ademalp/832e48fb9bbf6ad5aa71cb3b28107d72 to your computer and use it in GitHub Desktop.
php mcrypt install
cd /usr/local/src
rm -rf mcrypt-*
/usr/local/php72/bin/pecl channel-update pecl.php.net
/usr/local/php72/bin/pecl download mcrypt || /usr/local/php72/bin/pecl download channel://pecl.php.net/mcrypt-1.0.5
tar -zxvf mcrypt-*.tgz && cd mcrypt-*/
/usr/local/php72/bin/phpize
./configure --with-php-config=/usr/local/php72/bin/php-config
make && make install
echo "extension=mcrypt.so" >> /usr/local/php72/lib/php.conf.d/90-custom.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment