Search code examples
composer-phpshared-hosting

Workaround to install composer on single shared hosting in hostinger


Without understanding that I needed SSH Access to deploy my Laravel 8 project smoothly, I purchased the Single Shared Hosting tier from Hostinger which does not offer SSH Access. I have to install Composer, but most of the tutorials I have seen requires the use of SSH in doing so.

Deploying the project has to be done before tomorrow morning and I still have no idea what to do next. I am new to this.


Solution

  • Follow these steps:

    • Try to match the PHP version of the server and localhost.
    • Install composer locally. This will generate all library files inside the project. You can check the 'vendor' folder.
    • Upload the whole project folder to the server filesystem.