Magento 1.8 – Fix n98-magerun.phar PHP Fatal Error: Class ‘Phar’ Not Found

composerlinuxmagento-1.8magerunPHP

I can't execute n98-magerun.phar, I get PHP Fatal error: Class 'Phar' not found.

I am using PHP 5.5.14 (cli)

Any hints how to solve this?

Best Answer

Check if the phar.so extension is present in your PHP installation. It has to be enabled in your php.ini file.

If it is not, you can either change your php.ini file, or should be able to call n98-magerun like this:

php -d extension=phar.so n98-magerun.phar

Related Topic