0

I uploaded my yii1 project to live server,there was a library (which I have installed it on local machine using composer) give an error (class not found), what I did was:

  1. Ensure that in my file access to autoload file in library correctly.
  2. Contacting with support team of hosting company to install composer on the server, they replied "you have to use dedicated server or vps to complete this action".

(The library is a client library for LinkedIn).

Should I install composer using ssh protocol on the server? Or is there another solution?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
  • If you have shell access then yes, you should be able to install Composer to your user directory and use it from there. – ChrisGPT was on strike Dec 15 '16 at 13:36
  • ok shell access is given from server administrator?, in cpanel at server i found 'ssh access' section, in that section i generated public and private keys,is it useful and how to use it with putty in windows, how can i add this keys?do i need more permissions from server hosting? – Jaber Abdallatef Dec 15 '16 at 13:45
  • It sounds like you've already got the access you need. Google "using putty with openssh keys" and go from there. (You may have to convert the keys to PuTTY's format…) – ChrisGPT was on strike Dec 15 '16 at 13:46

1 Answers1

0

I uploaded my yii1 project to live server

But not including all dependencies...

The unresolved or missing dependency just indicates that you didn't resolve the dependencies correctly before deployment or that the packaging wasn't including the dependency.

Should I install composer using ssh protocol on the server? Or is there another solution?

You don't need Composer on the production machine at all.

Solution: Package your application completely including all dependencies.

Please resolve all Composer dependencies, so that the app runs in the development/packaging stage. Package correctly, then deploy.

Jens A. Koch
  • 39,862
  • 13
  • 113
  • 141