Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I found the error by trying to change php.ini.

 root:/etc/php5/fpm# php5-fpm -i | grep "post_max"
 PHP:  syntax error, unexpected '|' in /etc/php5/fpm/php.ini on line 110
 post_max_size => 8M => 8M

Line 110 is

 109: error_reporting
 110:       Default Value: E_ALL | ~E_NOTICE

I had it set to E_ALL & ~E_NOTICE but it was erring then as well. Saying unexpected '&'.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

It looks to me as if you've just uncommented some lines in php.ini without understanding that they're not meant to be uncommented; they're advisory text on how to set variables. If you want to change the value of error_reporting, try instead

error_reporting = "E_ALL | ~E_NOTICE"
share|improve this answer
    
Still error, now it shifted the error to the " –  Iscariot Nov 20 '12 at 13:37
3  
@Iscariot did you comment the lines back out? Lines 109 and 110 that you pasted (and other lines like that) are instructions to you, that need to have the comment marks so that php doesn't think its instructions to it. –  DerfK Nov 20 '12 at 13:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.