PHP
  • 21 Jul 2020
  • 1 Minute To Read
  • Contributors
  • Print
  • Share
  • Dark
    Light

PHP

  • Print
  • Share
  • Dark
    Light

You can run different types of applications on PHP using Hostman: APIs, background workers, cron jobs, private services, and more.

Hostman provides CI/CD for all types of services, as well as great scalability.

To deploy a PHP application, click "Create a service" in the top-left corner in your Dashboard and choose Back-end application.

Screen Shot 2020-06-17 at 10.00.32 AM.png

Connect your Git account and choose the repository to deploy.

Like all back-end applications, a PHP application must run on a specific cloud server. Choose the location and configuration of this cloud server. You can upgrade it in the future.

Screen Shot 2020-06-17 at 10.07.58 AM.png

Choose your framework in the App customization window.

Screen Shot 2020-06-17 at 11.00.07 AM.png

PHP uses a composer dependencies manager. You don't have to include this in the Build command. Hostman detects the composer.json file and installs all dependencies on its own.

Click Deploy and you'll see the deployment process in the log. When it's complete, you'll receive a notification. You can also send these notifications to your Slack.

Usually it takes some time to install the cloud server during the first deployment.

What to do if deployment fails

First of all, check the deployment log. You'll see the stage where something went wrong.

The most common issues are with the launch command. Check that everything is working properly in your development environment. Check that all the packages your application needs are in the composer.json file.

Also, we are here to help, so don't hesitate to ask us about the causes via chat.

Was This Article Helpful?