在共享主机上安装composer

时间:2017-03-01 06:00:40

标签: laravel-5.2 composer-php shared-hosting

我在共享主机上安装了composer。 它已成功安装在我的共享主机上。 我已按照本教程进行安装。

链接: - https://www.globo.tech/learning-center/laravel-under-cpanel/

安装后的屏幕截图。

enter image description here

我使用了以下命令,它对我来说很好。

  

php composer.phar

但是当我尝试使用以下命令在我的public_html目录中安装laravel时,

  

composer create-project --prefer-dist laravel / laravel borrowpet" 5.2。*"

它无法正常工作。它显示了作曲家命令,请不要在下面的屏幕截图中找到错误。

enter image description here

请在安装作曲家时告诉我我失踪的内容。

1 个答案:

答案 0 :(得分:2)

使用命令php composer.phar create-project --prefer-dist laravel/laravel borrowpet "5.2.*" 并确保从compser.phar所在的目录中执行命令。

相关问题