Last updated January 09, 2026 PHP has a built-in web server that can be used to run on Heroku web dynos, however this is not recommended. Instead you should use a pre-installed boot script which is referenced in your Procfile to launch a web server program together with the PHP-FPM server. This article explains the different ways in which you can pass arguments to this boot script to customize set

