imbra - How to Deploy a PHP App From GitHub in iPanel

Deploy a PHP application (such as Laravel or a custom PHP project) from your GitHub repository to your iPanel website.

Steps

  1. Create a PHP website in iPanel if you have not already.

    [screenshot: php website created]

  2. Navigate to your website management page and click the GIT card on the Home tab.

    [screenshot: git card on home tab]

  3. Connect your GitHub account if not already connected.

    [screenshot: connect github if needed]

  4. In the add deployment form, select your GitHub Account, choose your PHP repository, and select the branch.

    [screenshot: add deployment form with php repo selected]

  5. Click Clone to download the repository to your server.

    [screenshot: clone button]

  6. After cloning, click Deploy and confirm the deployment.

    [screenshot: deploy button and confirmation]

  7. Go to the PHP Manager tab and enable Composer if your project uses it.

    [screenshot: enabling composer in php manager]

  8. Click Run Composer Install to install your PHP dependencies.

    [screenshot: run composer install button]

  9. If using Laravel, update the Document Root to /public in the Settings tab.

    [screenshot: setting document root to /public]

Tip: For Laravel projects, remember to set your environment variables and generate an application key after deployment.

Related Articles