Using Composer (shared Hosting)

Avatar
  • updated
  • Answered

Hi,

I have used the terminal and composer to get a library and it is stored iin the vendor folder at the root of my account.  Question is in my PHP code located on my site what path do I use in my Require statement to acccess the Vendor directories?

Avatar
-1
IMH Support Agent 2
Quote from jim hood

Thanks for the swift reply, I got round the issue by running composer from a directory in publicHTML where I wanted.

No problem, Jim!  Hope you're doing well.  Please let us know if you have any further questions or comments.

Avatar
-1
jim hood
Quote from IMH Support Agent 2

Hello Jim,

Thanks for the question about setting the correct path the library you installed.  Your root is typically like this /home/userna5.  User I am not aware of your account user name, but it's typically same as your cPanel user.  It also depends on if you installed to the primary domain or to an add-on domain.  If you need further assistance with this issue, please contact our live technical support team. They can immediately access your account and give you the information that you need.


If you have any further questions or comments, please let us know.


Kindest Regards,

Arnel C.

Thanks for the swift reply, I got round the issue by running composer from a directory in publicHTML where I wanted.

Avatar
-1
IMH Support Agent 2
  • Answered

Hello Jim,

Thanks for the question about setting the correct path the library you installed.  Your root is typically like this /home/userna5.  User I am not aware of your account user name, but it's typically same as your cPanel user.  It also depends on if you installed to the primary domain or to an add-on domain.  If you need further assistance with this issue, please contact our live technical support team. They can immediately access your account and give you the information that you need.


If you have any further questions or comments, please let us know.


Kindest Regards,

Arnel C.