如何在不使用SSH的情况下安装/使用Composer [英] How to install/use Composer without SSH
问题描述
我有一个共享主机,我不能使用SSH或用php( shell_exec
)调用shell,出于安全原因,我不能因资金问题而升级我的服务器...但是我需要安装 Composer
,并使用SDK来完成我的项目?是否可以在没有SSH的情况下安装/使用 composer
?我已经阅读了有关脱机安装Composer的信息,然后将内容上传到服务器上,但是我不认为这项工作有效...感谢您的阅读!希望大家度过愉快的一天!
guys I have a shared hosting and I can't use SSH or call shells with php (shell_exec
),for security reasons, I can't upgrade my server for money problems...But i need to install Composer
, and work with an SDK for finish my project?Is there any way to install/use composer
without SSH? I have read about install Composer offline, and then upload the contents on the server, but i don't think that this work...
Thanks for read! Hope that you all'll have a nice day!
推荐答案
您曾说过要在不使用SSH的情况下安装Composer 在这种情况下,您必须将其安装在本地系统
中,然后再通过 FTP
及其Works(如果支持主机)轻松地 upload
!!
As You Said You Want to Install Composer Without SSH then
In that case you Have to install it in your local system
than after you can easily upload
it using FTP
and its Works if your host is supported !!
- 首先从此处下载Php Shell: http://phpshell.sourceforge.net/
-
在PHPShell的
config.php
中添加用户&别名:
- First Download Php Shell From Here: http://phpshell.sourceforge.net/
In PHPShell's
config.php
Add User & alias:
php ="php -d suhosin.executor.include.whitelist = phar"
登录到 PHPShell
&类型: curl -sS https://getcomposer.org/installer |php
Login to PHPShell
& Type: curl -sS https://getcomposer.org/installer | php
成功安装后,只需运行Composer: php composer.phar
After Successfully installed, Just Run Composer: php composer.phar
这篇关于如何在不使用SSH的情况下安装/使用Composer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!