如何在共享主机上安装Composer? [英] How do I install Composer on a shared hosting?

查看:1195
本文介绍了如何在共享主机上安装Composer?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下这些东西:

  • the file http://api.odtu.lu/composer.phar
  • http://api.odtu.lu/phpinfo.php
  • ftp access
  • cPanel
  • Cron jobs on FreeBSD
  • PHP, Perl, CGI-BIN, Python, Curl.

如何安装Composer? (我的目标是安装 Restler

How can I install Composer? (My aim is to install Restler)

编辑:我没有SSH访问。

I do not have SSH access.

推荐答案

这取决于主机,但你可能根本不能不能在我的共享主机Rackspace Cloud Sites - 我问他们)。

It depends on the host, but you probably simply can't (you can't on my shared host on Rackspace Cloud Sites - I asked them).

你可以做的是在你的开发机上设置一个环境,主机,并通过本地的命令行进行所有的管理。然后当所有的东西都设置好了(你已经拉入所有的依赖,更新,管理git等),你可以通过FTP推到共享的主机。

What you can do is set up an environment on your dev machine that roughly matches your shared host, and do all of your management through the command line locally. Then when everything is set (you've pulled in all the dependencies, updated, managed with git, etc.) you can "push" that to your shared host over (s)FTP.

这篇关于如何在共享主机上安装Composer?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆