This is an example of how to set up a PHP application to deploy on Kinsta’s Application Hosting services from a GitHub repository.
During the deployment process, Kinsta automatically installs dependencies defined in your composer.json file.
- Log in to GitHub and create a new repository from this template (Use this template > Create a new repository): Kinsta – Hello World – PHP.
- In MyKinsta, add an application with the Hello World PHP repository. The Start command can be left blank for the web process as Kinsta automatically detects the required command during the first deployment.
The app is available as soon as the build finishes, and a Hello World page loads at your application’s URL.
Prefer to watch the video version?
Web Server Setup
Kinsta automatically configures an Apache web server that serves your index.php file from the main directory of the project in the usual fashion. Create an index.php file in your project folder as your default index page.