Internal Server Error When htaccess has php_value display_errors

I just changed servers and noticed immediately that my site wouldn’t open and instead provide the 500 Internal Server Error. I played with my htaccess file and found that this line

php_value display_errors 0

is causing the error. When I delete the site works again. What gives? This line works perfect with my old server and I’ve never had an issue. I need error reporting shut off.

Is there a new way to do it?

Cheers!
Ryan

cb,

The error appears to be that the value is supposed to be a string: http://nz.php.net/manual/en/errorfunc.configuration.php#ini.display-errors.

Regards,

DK

Thanks for the response, but I don’t necessarily understand what you mean.

Cheers!
Ryan

Tried this: php_flag display_errors Off (obviously just guessing now)

still an internal error.

Is there something I need to enable/compile into the new server to allow the htaccess edits?

Ryan

cb,

Yes, put the value in quotes! Did you check the link I put in the last post? It’ll show you by example.

Regards,

DK

My bad, I forgot to mention I tried that but assumed wrong.

Did: php_value display_errors ‘0’

and

php_value display_errors “0”

and

php_value display_errors “Off”

All brought an internal server error.

That’s what I took from the example. Am I missing something else?

Thanks for help
Ryan

Ok,

I think I’ve tried every possible combination of lines and still getting Internal Server Error.

This htaccess file worked perfect before, but it looks like moving past PHP 5.3 is causing the issue (my last was 5.1x)

Where am I being held up?

Remember, I’m just trying to shut off display_errors in the htaccess file.

Cheers!
Ryan

The php in your server might be running php with suPHP environment. suPHP does not allow custom code in php.ini. You need to create php.ini file in your home directory itself.

CB,

If that’s the line which is causing the problems, then I think BreezeHost has probably got the answer (I’ve been wracking my brain over this and can’t come up with anything more logical than that).

Regards,

DK

The symptoms of SuPHP do seem to fit.

Wait, wait. Holy crap. Old server: DSO, new server: suphp

Damn.

Guess I just need to switch that back.

CHeers!
Ryan