0

In my httpd error_log I keep getting the following error:

 syntax error, unexpected END_OF_LINE, expecting '=' in /usr/local/lib/php.ini on line 2

When I look at the php.ini file line 2 reads:

0[PHP]

If I remove the 0 and save the file, when I try to pull up any of the sites hosted on the server I get the following error:

Fatal error: Allowed memory size of 262144 bytes exhausted (tried to allocate 1536 bytes) in /home/SOMENAME/public_html/wp-includes/default-constants.php on line 194

I put the 0 back in and the sites all come up again.

Is there anyone out there that can shed some light on this?

  • 1
    Did you try reading the file? – Michael Hampton Nov 18 '13 at 23:00
  • Well if you have a zero in the file PHP is mostly likely assuming the entire file is corrupt, and just using defaults. By fixing the file, you stop using the defaults, and use what is explicitly defined in your file. Obviously what you have in that file doesn't work. Perhaps use a page with ` – Zoredache Nov 18 '13 at 23:01

1 Answers1

1

Just delete the whole file and reinstall it from your distro's package. That zero should not be there and [PHP] should be line 1 not line 2.

Envite
  • 368
  • 2
  • 14
  • Thanks for your help. I tend to get a little nervous when dealing with this type of things. –  Nov 19 '13 at 17:50