Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP on OpenShift: How to enable errors and warnings?

Tags:

php

openshift

I have moved my app to OpenShift and now, for convenience of getting it actually work, I'd like to enable in-page errors and warnings. Currently, I see a blank page.

How can I enable errors?

In PHP, it's in php.ini

error_reporting = E_ALL
display_errors = 1
like image 328
Ondra Žižka Avatar asked Dec 26 '22 17:12

Ondra Žižka


1 Answers

On the IRC channel #openshift, I was told that this is not currently not configurable

(05:06:58 PM) pmorie: ozizka-ntb: it looks like it's provided by the cart - i don't believe you can substitute your own

and I need to use both

error_reporting(E_ALL);
ini_set('display_errors', 1);
like image 149
Ondra Žižka Avatar answered Jan 06 '23 02:01

Ondra Žižka