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:
(The library is a client library for LinkedIn).
Should I install composer using ssh protocol on the server? Or is there another solution?
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.