如何在没有pha​​r支持的情况下在PHP 5.2.8上安装symfony(Composer依赖)?

时间:2013-02-01 17:17:02

标签: php symfony install phar

我一直在尝试在我的网站上安装symfony但是我没有取得什么成功,因为它取决于作曲家。

安装:

php -r "eval('?>'.file_get_contents('https://getcomposer.org/installer'));"

当我尝试安装时(所有安装选项似乎都需要phar支持)我得到了这个输出:

-----------------------------------------------------------
Warning: Unexpected character in input:  '\' (ASCII=92) state=1 in Command line code(1) : eval()'d code on line 378
#!/usr/bin/env php
Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The phar extension is missing.
Install it or recompile php without --disable-phar

Your PHP (5.2.8) is too old, you must upgrade to PHP 5.3.2 or higher.
-----------------------------------------------------------

我没有权限安装不同版本的php,因为我使用的付费虚拟主机有点限制。我有什么选择?

1 个答案:

答案 0 :(得分:6)

Symfony 2不支持php< 5.3.2 http://symfony.com/doc/2.0/reference/requirements.html

如果您无法升级您的php版本,请找到另一个Web主机或使用其他框架。