Where to add the APC related code in php.ini

Magistar

Verified User
Joined
May 31, 2014
Messages
105
Hi there. I am following this tutorial:
http://help.directadmin.com/item.php?id=400

Unfortunately it did not exactly tell me where to add the apc related code. I decided to add it to the end of the file like this

Code:
[xsl]
; Write operations from within XSLT are disabled by default.
; XSL_SECPREF_CREATE_DIRECTORY | XSL_SECPREF_WRITE_NETWORK | XSL_SECPREF_WRITE_FILE = 44
; Set it to 0 to allow all operations
;xsl.security_prefs = 44

; Local Variables:
; tab-width: 4
; End:
zend_extension=/usr/local/lib/ioncube_loader_lin_5.4.so

 [APC]
 extension=apc.so
 apc.enabled=1
 apc.shm_size=100M
 apc.ttl=7200
 apc.user_ttl=7200
 apc.enable_cli=1
 apc.max_file_size=5M
 apc.cache_by_default=0

However when I check it is not working:
Code:
[root@vps1 ~]# php -i | grep 'apc'
PHP:  syntax error, unexpected END_OF_LINE, expecting '=' in /usr/local/lib/php.                                          ini on line 1922

Any thoughts on how to resolve this?
 
Ok there was a spacebar in front of each argument (*ouch*). Topic can be closed!
 
Last edited:
Back
Top