PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Tuesday, January 18, 2022

[FIXED] How do I install Composer on a shared hosting?

 January 18, 2022     composer-php, php     No comments   

Issue

I have these things:

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

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

Edit: I do not have SSH access.


Solution

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).

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.



Answered By - Kevin Newman
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing