I’m trying to deploy a Dockerized app using App Platform. It is building and deploying succesfull, but I can’t seem to get PHP to work.
In the build and deploy logs I see no errors: the PHP container is being build, compose is installing packages etc. When visiting the site static resources are working, (e.g. css files), but PHP files are giving a white screen.
How can I solve this issue?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
I personally have been mainly using the PHP Buildpack on App Platform as that takes away any complexity:
https://docs.digitalocean.com/products/app-platform/reference/buildpacks/php/
This lets you just deploy your PHP application by selecting your GitHub repository and then the Buildpack takes care of building and running your application.
Regards
Hey @lpilon,
Check this article and see if it would help you out:
https://www.digitalocean.com/community/meetup-kits/how-to-create-php-development-environments-with-docker-compose-a-digitalocean-workshop-kit
If the PHP files are giving a white screen it might be a PHP coding error. Try to debug the PHP application in a controlled environment where you can see what PHP error it might be.