Question

Error while deploying php project

My deployment keeps throwing this error after successfully building the project after a new git push:

[2022-03-15 00:33:06] DOCUMENT_ROOT changed to ‘public/’ [2022-03-15 00:33:16] Assuming 512MB of RAM [2022-03-15 00:33:18] PHP memory_limit is 128M Bytes [2022-03-15 00:33:19] Starting php-fpm with 4 workers… [2022-03-15 00:33:35] Starting httpd… [2022-03-15 00:33:42] Process exited unexpectedly: httpd, shutting down… [2022-03-15 00:33:42] Stopping php-fpm gracefully… [2022-03-15 00:33:43] Shutdown complete.

It shows this status: “Deploy Error: Non-Zero Exit Code”

Does anyone know how to fix this?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

It looks like your app needs more than 128MB memory limit. You can define your memory limit by adding a .user.ini file with the following content:

memory_limit=256M

Or if you need more you can change this accordingly.

Let me know how it goes.

Best,

Bobby