PHP
To use our example repositories, you must create a Sevalla account. This article includes examples of how to set up the following PHP applications to deploy on Sevalla’s Application Hosting services from a GitHub repository:
PHP
- In Sevalla, click Applications > Add application > select Git repository > Public repository, and complete as follows:
- Repository URL: https://github.com/kinsta/hello-world-php
- Branch: main
- Enter a Name, choose a Location, choose a pod size within Resources, and click Create & deploy.
During deployment, Sevalla automatically detects the Start command for the web process and installs dependencies defined in your composer.json file. The app is available as soon as the deployment finishes, and the Sevalla Welcome page loads at your application’s URL.
Prefer to watch the video version?
Web server setup
Sevalla 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.
Jigsaw
This is an example of how to set up a static site with Jigsaw on Sevalla’s Application Hosting services from a GitHub repository.
Jigsaw is a static site framework that uses Blade templates to create your page layouts and Markdown to build your content within the templates so you can produce simple static sites without complex coding knowledge. More information is available on the Jigsaw website.
- In Sevalla, click Applications > Add application > select Git repository > Public repository, and complete as follows:
- Repository URL: https://github.com/kinsta/hello-world-jigsaw
- Branch: main
- Enter a Name, choose a Location, choose a pod size within Resources, and click Create & deploy.
Jigsaw is based on Laravel; it’s a regular PHP-based application, so during deployment, Sevalla automatically detects the Start command for the web process and installs dependencies defined in your composer.json file. The app is available as soon as the deployment finishes, and a default Jigsaw page loads at your application’s URL.
Jigsaw default page after successful installation.
Buildpacks
If you're using Buildpacks to build the application you’ll need to add these two Buildpacks:
- Node JS
- PHP