How do I install Composer on a shared hosting?(如何在共享主机上安装 Composer?)
问题描述
我有这些东西:
- 文件http://api.odtu.lu/composer.phar
- http://api.odtu.lu/phpinfo.php
- ftp 访问
- cPanel
- FreeBSD 上的 Cron 作业
- 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 云站点上的共享主机上 - 我问过他们).
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 管理等),你可以通过 (s)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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在共享主机上安装 Composer?
基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
