Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
APP Platform PHP web apps configuration
I’m trying to build a simple PHP web app and I’m trying to trace the documentation to a list of available configuration options. All I get is a sample app with an index.php file and “go look at Heroku buildpacks” … https://docs.digitalocean.com/products/app-platform/build-system/cloud-native-buildpacks/php/
However, there is no canonical example of what file (Procfile, app.yml, JSON(?)) I should use and what it can and should contain and the few examples I find over at Heroku are limited and very specific to themselves.
I want to run a simple php web application that uses a subdirectory for all public routes. Does App Platform use NGINX or APACHE? Heroku let’s me choose, but I have a hunch that DO doesn’t work verbatim like Heroku. Can I choose? If so how do I control request routing and configuration? Can I alter PHP-FPM config options as Heroku describes?
The documentation was equally as terse for the Go web application but trial and error was a bit easier as I was only running a binary.
Does a full list of options and recommendations exist for App Platform or is the expectation that I have a full Docker/docker-compose flow where I run my own nginx on the server behind what I presume is already nginx running publicly?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×