How to install/use Composer without SSH

大城市里の小女人 提交于 2020-12-30 02:51:17

问题


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!


回答1:


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 FTPand its Works if your host is supported !!


Steps For Shared Hosting Using FTP::

  • 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"

  • Login to PHPShell & Type: curl -sS https://getcomposer.org/installer | php

  • After Successfully installed, Just Run Composer: php composer.phar



来源:https://stackoverflow.com/questions/46612585/how-to-install-use-composer-without-ssh

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!