I have installed magento 2 several times on my local machine with php 7.2 and os is Ubuntut 18.40 but when i am trying to install magento 1.9 on my machine i am getting this error.

PHP extension "mcrypt" must be loaded.

i have tried each and every solution given on the internet and ran every command,installed 7.1 ,5.1 and re installed 7.2 but this error is still occuring

solutions i have tried are



and many more please give me a solid solution for solving this issue.

Thanks in advance :)


1 Answer 1


This problem is actually for Php 7.2 or greater so i have to run multiple xampp for installing magento 1 on my machine this solved my problem.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.