Reputation: 31709
I have purchased a VPS in Dreamhost. Now Im trying to run php composer.phar install
but it says:
Fatal error: Class 'Phar' not found in /home/john/mysite.com/composer.phar on line 13
Since I have found out that I have these directories:
/usr/local/php /usr/local/php53 /usr/local/php54
and, for example, in /usr/local/php53/bin/
I have this:
phar phar.phar php php-cgi php-config phpize
,how can I run php composer.phar install
without errors?
If you need more information about content in folders I will give it of course.
Upvotes: 0
Views: 2406
Reputation: 1107
This works for me:
php -d extension=phar.so composer.phar [... your command ...]
This includes the phar extension for the current runtime. Works for shared / VPC servers.
Upvotes: 2
Reputation: 644
It looks like you might not have the phar extension installed or configured correctly. It might be worth checking the output of a call to phpinfo().
Upvotes: 1