Deploy a PHP application (such as Laravel or a custom PHP project) from your GitHub repository to your iPanel website.
Steps
-
Create a PHP website in iPanel if you have not already.
[screenshot: php website created]
-
Navigate to your website management page and click the GIT card on the Home tab.
[screenshot: git card on home tab]
-
Connect your GitHub account if not already connected.
[screenshot: connect github if needed]
-
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]
-
Click Clone to download the repository to your server.
[screenshot: clone button]
-
After cloning, click Deploy and confirm the deployment.
[screenshot: deploy button and confirmation]
-
Go to the PHP Manager tab and enable Composer if your project uses it.
[screenshot: enabling composer in php manager]
-
Click Run Composer Install to install your PHP dependencies.
[screenshot: run composer install button]
-
If using Laravel, update the Document Root to
/publicin the Settings tab.[screenshot: setting document root to /public]