Syntax error in apc.ini: unexpected '='
- by Ashley
I installed APC on Ubuntu 10.04 and it seems to be working fine but I'm seeing this error in my Apache error.log:
PHP: syntax error, unexpected '=' in /etc/php5/apache2/conf.d/apc.ini on line 2
The contents of the file are:
cat /etc/php5/apache2/conf.d/apc.ini
extension=apc.so
apc.enabled="1"
apc.shm_segments="1"
apc.shm_size="192"
apc.num_files_hint="1024"
And I have also tried it without the quotes (") around the values and get the same error.
I've looked at loads of the tutorials on installing APC that mention apc.ini and they all seem to use one of the two syntax formats I have tried.
I'd appreciate any ideas.
Update:
This still causes it:
cat /etc/php5/apache2/conf.d/apc.ini
extension='apc.so'
apc.enabled='1'
apc.shm_segments='1'
apc.shm_size='192'
apc.num_files_hint='1024'
I changed to:
cat /etc/php5/apache2/conf.d/apc.ini
extension=apc.so
and it still happens (there's no line 2 in the file now!)
I'm assuming a /etc/init.d/apache2 reload will be sufficient to read the new config, is that my mistake?