Since Laravel4 requires mcrypt
extension, and PHP7 doesn\'t seem to have mcrypt
extension, is there any workaround for this to work?
do like this:
wget http://jp2.php.net/distributions/php-7.0.3.tar.gz
tar zxf php-7.0.3.tar.gz
cd php-7.0.3/ext/mcrypt
/php7-path/bin/phpize
(when error such as configure: error: mcrypt.h not found. Please reinstall libmcrypt
run apt-get install libmcrypt-dev
)./configure --with-php-config=/php7-path/bin/php-config
(sudo) make && make install
.this will install the mcrypt.so in php-7.0.3/ext/mcrypt/modules
/usr/lib/php/20151012/
what is the shared extensions dir/etc/php/mods-available/
write as extension=mcrypt.so
sudo ln -s /etc/php/mods-available/mcrypt.ini 20-mcrypt.ini
in /etc/php/7.0/fpm/conf.d
sudo ln -s /etc/php/mods-available/mcrypt.ini 20-mcrypt.ini
in /etc/php/7.0/cli/conf.d
sudo service nginx restart
sudo service php7.0-fpm restart