I receive the following error when running any of the magento commands in CL? Any ideas on how to resolve?

Segmentation Fault (Core Dumped)


2 Answers 2


A common reason for this message is infinite recursion.

Try to install xdebug extension (that allow limiting max stacks) and rerun commands


I had this problem. It turned out that commands I was runnnig were for PHP7.1, and on server it was PHP7.3.

Once I ran them like /usr/bin/php71 they were executed without problems.

Hope it helps to someone :)

Your Answer

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

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