PHP Warning: PHP Startup: Unable to load dynamic library 'mcrypt.so'

前端 未结 6 1293
广开言路
广开言路 2021-01-05 11:19

I am trying to update laravel using composer update on ubuntu 06.04 but everytime i run composer update this warning always comes up.

PHP Warnin         


        
6条回答
  •  悲&欢浪女
    2021-01-05 12:09

    I faced this problem when I upgraded my PHP to 7.3

    I found mcrypt.so was still present in /etc/php/7.3 that should not be as it is deprecated in php 7.3 so just deleting mcrypt.so from /etc/php/7.3 solved issue.

    I used following commands:

    cd /etc/php/7.3

    sudo rm -rf mcrypt.so

    sudo service apache2 restart

提交回复
热议问题