How to install on shared hosting without Composer available?

Created on 23 February 2023, over 1 year ago
Updated 26 February 2023, over 1 year ago

What options do we have to install Drupal8+ on share hosting ? there is only cpanel access, no way to use composer, if I ftp upload the core, then no way to install the commerce. please advise

πŸ’¬ Support request
Status

Closed: outdated

Version

10.0 ✨

Component
ComposerΒ  β†’

Last updated about 19 hours ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom freelylw

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @freelylw
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    You can execute composer on your laptop then FTP the resulting codebase.

  • Status changed to Fixed over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    I do not think there is another possible way.

  • Status changed to Active over 1 year ago
  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    I would recommend that you find a shared hosting provider with SSH access, more and more places now offer it:

    https://presearch.com/search?q=shared+hosting+providers+SSH+access

  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    SSH or FTP, the answer is the same: build the codebase somewhere else then upload it.

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen

    Sure. It's possible with FTP, but I certainly won't recommend it, and the reason I suggest finding hosting with SSH.

  • πŸ‡¬πŸ‡§United Kingdom freelylw

    I mainly using a vps which has no problem, but one of the web will be on another share hosting which won't works. I normally build the site online directly, everytime module upgrade just one click through the UI, if build locally then upload, will takes 3x more times..

  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    If Composer cannot be executed on the hosting platform you will have to build the codebase some other place then upload it.

    Two strategic initiatives β†’ , Automatic Updates and Project Browser, are targeted at this use-case. But as far as I know at the time I write this, those are not yet completed.

  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    Community members identified shared hosting as a difficult use-case for Composer-based codebases before Drupal 8 launched, in 🌱 Proposed workflow for Composer + module download on cheap hosting / FTP Closed: duplicate . Even that issue says:

    In Drupal 8, if you have modules that introduce composer dependencies in addition to those in core, you need to run composer update with the CLI. This is going to be difficult for the cheap hosting + FTP scenario...

    One solution is to run Composer locally and copy the changes to the server with FTP. But some people might not even be comfortable with that.

  • πŸ‡¬πŸ‡§United Kingdom freelylw

    one of my site is in Drupal9, I have about 40 modules installed through ftp upload, except the commerce module, none of them has any dependences that need to be installed through composer , so I am just curious why force composer for the project when most of the modules don't need it.

  • Status changed to Closed: outdated over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States cilefen

    As I mentioned not requiring Composer is a strategic initiative.

Production build 0.69.0 2024