Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.69 KB | None | 0 0
  1. #!/bin/sh
  2. apt-get install php7.3-dev
  3. apt-get install libmcrypt4
  4. apt-get install libmcrypt-dev
  5.  
  6. cd /usr/local/src
  7. rm -rf mcrypt-*
  8. /usr/local/php73/bin/pecl channel-update pecl.php.net
  9. /usr/local/php73/bin/pecl download mcrypt || /usr/local/php73/bin/pecl download channel://pecl.php.net/mcrypt-1.0.2
  10. /usr/bin/pecl channel-update pecl.php.net
  11. tar -zxvf mcrypt-*.tgz && cd mcrypt-*/
  12. /usr/bin/phpize
  13. ./configure --with-php-config=/usr/bin/php-config
  14. make && make install
  15. make test
  16. cd modules
  17. cp mcrypt* /usr/lib/php/20180731/mcrypt.so
  18. echo "extension=mcrypt.so" >> /etc/php/7.3/cli/conf.d//90-custom.ini
  19. echo "extension=mcrypt.so" >> /etc/php/7.3/fpm/conf.d//90-custom.ini
  20. php -i | grep ^mcrypt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement